Skip to content

Commit

Permalink
feature(portable): allowing splash image to be defined relative to th…
Browse files Browse the repository at this point in the history
…e project directory (#4990)
  • Loading branch information
catdad authored Sep 17, 2020
1 parent 36319d9 commit b087954
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/targets/nsis/NsisTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export class NsisTarget extends Target {
defines.UNPACK_DIR_NAME = portableOptions.unpackDirName || (await executeAppBuilder(["ksuid"]))

if (portableOptions.splashImage != null) {
defines.SPLASH_IMAGE = portableOptions.splashImage
defines.SPLASH_IMAGE = path.resolve(packager.projectDir, portableOptions.splashImage)
}
}
else {
Expand Down
4 changes: 3 additions & 1 deletion packages/app-builder-lib/templates/nsis/portable.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ AutoCloseWindow True
RequestExecutionLevel ${REQUEST_EXECUTION_LEVEL}

Function .onInit
SetSilent silent
!ifndef SPLASH_IMAGE
SetSilent silent
!endif

!insertmacro check64BitAndSetRegView
FunctionEnd
Expand Down

0 comments on commit b087954

Please sign in to comment.