Skip to content

Commit

Permalink
fix(nsis): use correct slash for portable
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdanis authored and develar committed Mar 9, 2018
1 parent 62cf1df commit 0edb668
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

!macro installApplicationFiles
!ifdef APP_BUILD_DIR
File /r "${APP_BUILD_DIR}/*.*"
File /r "${APP_BUILD_DIR}\*.*"
!else
!ifdef APP_PACKAGE_URL
Var /GLOBAL packageFile
Expand Down
8 changes: 4 additions & 4 deletions packages/electron-builder-lib/templates/nsis/portable.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ Section
!ifdef APP_DIR_64
!ifdef APP_DIR_32
${if} ${RunningX64}
File /r "${APP_DIR_64}/*.*"
File /r "${APP_DIR_64}\*.*"
${else}
File /r "${APP_DIR_32}/*.*"
File /r "${APP_DIR_32}\*.*"
${endIf}
!else
File /r "${APP_DIR_64}/*.*"
File /r "${APP_DIR_64}\*.*"
!endif
!else
!ifdef APP_DIR_32
File /r "${APP_DIR_32}/*.*"
File /r "${APP_DIR_32}\*.*"
!else
!insertmacro extractEmbeddedAppPackage
!endif
Expand Down
2 changes: 1 addition & 1 deletion test/src/windows/portableTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test.ifAll.ifNotCiMac("portable", app({
}
}))

test.ifAll.ifNotCi("portable zip", app({
test.ifAll.ifWinCi("portable zip", app({
targets: Platform.WINDOWS.createTarget("portable"),
config: {
publish: null,
Expand Down

0 comments on commit 0edb668

Please sign in to comment.