Skip to content

Commit

Permalink
fix(nsis): ia32 Extracting wrong archive
Browse files Browse the repository at this point in the history
Closes #567
  • Loading branch information
develar committed Jul 7, 2016
1 parent 7f06e4c commit 56b3450
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
12 changes: 8 additions & 4 deletions templates/nsis/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,15 @@ Section "install"
RMDir /r $INSTDIR
SetOutPath $INSTDIR

${If} ${RunningX64}
Nsis7z::Extract "$PLUGINSDIR\app-64.7z"
${Else}
!ifdef APP_64
${If} ${RunningX64}
Nsis7z::Extract "$PLUGINSDIR\app-64.7z"
${Else}
Nsis7z::Extract "$PLUGINSDIR\app-32.7z"
${EndIf}
!else
Nsis7z::Extract "$PLUGINSDIR\app-32.7z"
${EndIf}
!endif

# <% if(fileAssociation){ %>
# specify file association
Expand Down
7 changes: 7 additions & 0 deletions test/src/winPackagerTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ test("nsis", () => assertPack("test-app-one", _signed({
}
))

test.ifDevOrLinuxCi("nsis 32", () => assertPack("test-app-one", _signed({
targets: Platform.WINDOWS.createTarget(["nsis"], Arch.ia32),
}), {
useTempDir: true,
}
))

test.ifNotCiOsx("nsis boring", () => assertPack("test-app-one", _signed({
targets: Platform.WINDOWS.createTarget(["nsis"]),
devMetadata: {
Expand Down

0 comments on commit 56b3450

Please sign in to comment.