Skip to content

Commit

Permalink
packaging: improved nsis installer
Browse files Browse the repository at this point in the history
- Enabled Hi-DPI
- Enabled Unicode
  • Loading branch information
itsmattkc committed May 26, 2021
1 parent 91c88b1 commit ab31df3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ jobs:
#$DOWNLOAD_TOOL http://web.archive.org/web/20210226132532/http://download.microsoft.com/download/3/2/2/3224B87F-CFA0-4E70-BDA3-3DE650EFEBA5/vcredist_x64.exe
cp $(cygpath $GITHUB_WORKSPACE)/app/packaging/windows/nsis/* .
cp $(cygpath $GITHUB_WORKSPACE)/LICENSE .
$DOWNLOAD_TOOL https://nsis.sourceforge.io/mediawiki/images/c/c7/ShellExecAsUser.zip
7z x ShellExecAsUser.zip ShellExecAsUser.dll
makensis -V4 -DX64 "-XOutFile $PKGNAME.exe" "-X!AddPluginDir $(pwd -W)" olive.nsi
$DOWNLOAD_TOOL https://nsis.sourceforge.io/mediawiki/images/6/68/ShellExecAsUser_amd64-Unicode.7z
7z e ShellExecAsUser_amd64-Unicode.7z Plugins/x86-unicode/ShellExecAsUser.dll
makensis -V4 -DX64 "-XOutFile $PKGNAME.exe" "-X!AddPluginDir /x86-unicode $(pwd -W)" olive.nsi
# Create Portable ZIP
echo -n > olive-editor/portable
Expand Down
4 changes: 3 additions & 1 deletion app/packaging/windows/nsis/olive.nsi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!include "MUI.nsh"
!include "MUI2.nsh"

!define MUI_ICON "install icon.ico"
!define MUI_UNICON "uninstall icon.ico"
Expand All @@ -12,6 +12,8 @@ SetCompressor lzma

Name ${APP_NAME}

ManifestDPIAware true
Unicode true

!ifdef X64
InstallDir "$PROGRAMFILES64\${APP_NAME}"
Expand Down

0 comments on commit ab31df3

Please sign in to comment.