Skip to content

Commit

Permalink
Consolidating fixed path vs ksuid logic for string entries and 'false…
Browse files Browse the repository at this point in the history
…' (or covers empty strings) (electron-userland#5764)
  • Loading branch information
mmaietta committed Jul 24, 2021
1 parent 4935bec commit bf60e46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions packages/app-builder-lib/src/targets/nsis/NsisTarget.ts
Expand Up @@ -251,10 +251,8 @@ export class NsisTarget extends Target {
defines.REQUEST_EXECUTION_LEVEL = requestExecutionLevel || "user"

// https://github.com/electron-userland/electron-builder/issues/5764
if (typeof unpackDirName === "string") {
if (typeof unpackDirName === "string" || !unpackDirName) {
defines.UNPACK_DIR_NAME = unpackDirName || (await executeAppBuilder(["ksuid"]))
} else if (unpackDirName !== false) {
defines.UNPACK_DIR_NAME = await executeAppBuilder(["ksuid"])
}

if (splashImage != null) {
Expand Down
2 changes: 2 additions & 0 deletions test/src/windows/portableTest.ts
Expand Up @@ -39,6 +39,7 @@ test.ifAll.ifNotCi(
publish: null,
portable: {
useZip: true,
unpackDirName: false,
},
compression: "store",
},
Expand All @@ -57,6 +58,7 @@ test.ifNotCiMac(
installerIcon: "foo test space.ico",
},
portable: {
unpackDirName: true,
requestExecutionLevel: "admin",
//tslint:disable-next-line:no-invalid-template-strings
artifactName: "${productName}Portable.${version}.${ext}",
Expand Down

0 comments on commit bf60e46

Please sign in to comment.