File tree Expand file tree Collapse file tree 3 files changed +13
-15
lines changed
packages/electron-builder-lib Expand file tree Collapse file tree 3 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ export class NsisTarget extends Target {
133133 APP_GUID : guid ,
134134 PRODUCT_NAME : appInfo . productName ,
135135 PRODUCT_FILENAME : appInfo . productFilename ,
136- APP_FILENAME : ( ! oneClick || options . perMachine === true ) && / ^ [ - _ + 0 - 9 a - z A - Z ] + $ / . test ( appInfo . productFilename ) ? appInfo . productFilename : appInfo . sanitizedName ,
136+ APP_FILENAME : ( ! oneClick || options . perMachine === true ) && / ^ [ - _ + 0 - 9 a - z A - Z . ] + $ / . test ( appInfo . productFilename ) ? appInfo . productFilename : appInfo . sanitizedName ,
137137 APP_DESCRIPTION : appInfo . description ,
138138 VERSION : appInfo . version ,
139139
Original file line number Diff line number Diff line change @@ -85,17 +85,4 @@ Name "${PRODUCT_NAME}"
8585 ${endif}
8686
8787 ${StdUtils.ExecShellAsUser} $0 " $launchLink" " open" " $startAppArgs"
88- !macroend
89-
90- !ifndef BUILD_UNINSTALLER
91- Var isTryToKeepShortcuts
92-
93- !macro setIsTryToKeepShortcuts
94- StrCpy $isTryToKeepShortcuts " true"
95- !ifdef allowToChangeInstallationDirectory
96- ${ifNot} ${isUpdated}
97- StrCpy $isTryToKeepShortcuts " false"
98- ${endIf}
99- !endif
100- !macroend
101- !endif
88+ !macroend
Original file line number Diff line number Diff line change 235235 ${endIf}
236236 !endif
237237!macroend
238+
239+ Var /GLOBAL isTryToKeepShortcuts
240+
241+ !macro setIsTryToKeepShortcuts
242+ StrCpy $isTryToKeepShortcuts " true"
243+ !ifdef allowToChangeInstallationDirectory
244+ ${ifNot} ${isUpdated}
245+ StrCpy $isTryToKeepShortcuts " false"
246+ ${endIf}
247+ !endif
248+ !macroend
You can’t perform that action at this time.
0 commit comments