Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(nsis-gen): fix Unicode scripts reading
Browse files Browse the repository at this point in the history
  • Loading branch information
evshiron committed Apr 14, 2017
1 parent 4d6a26e commit e9e4083
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/Options.md
Expand Up @@ -48,6 +48,6 @@ Name | Type | Description
--- | --- | ---
icon | string | .ico icon file for NSIS installers. Defaults to `undefined`.
unIcon | string | .ico icon file for NSIS uninstallers. Defaults to `undefined`.
languages | string[] | Languages for NSIS installers. Multiple languages will result in a language selection dialog on startup. Defaults to `[ 'English' ]`.
languages | string[] | Languages for NSIS installers. Multiple languages will result in a language selection dialog on startup. See [/assets/nsis/Contrib/Language files/](../assets/nsis/Contrib/Language files/) for available values. Defaults to `[ 'English' ]`.
diffUpdaters | boolean | Whether to build diff updaters. Defaults to `false`.
hashCalculation | boolean | Whether to calculate hashes for installers and updaters. Defaults to `true`.
12 changes: 7 additions & 5 deletions src/lib/nsis-gen/NsisComposer.ts
Expand Up @@ -95,6 +95,8 @@ ${ await this.makeUninstallSection() }
#
${ NsisComposer.DIVIDER }
Unicode true
Name "${ this.options.appName }"
Caption "${ this.options.appName }"
BrandingText "${ this.options.appName } ${ this.fixedVersion }"
Expand Down Expand Up @@ -168,11 +170,11 @@ ${
${ NsisComposer.DIVIDER }
VIProductVersion "${ this.fixedVersion }"
VIAddVersionKey "ProductName" "${ this.options.appName }"
VIAddVersionKey "CompanyName" "${ this.options.companyName }"
VIAddVersionKey "FileDescription" "${ this.options.description }"
VIAddVersionKey "FileVersion" "${ this.fixedVersion }"
VIAddVersionKey "LegalCopyright" "${ this.options.copyright }"`;
VIAddVersionKey /LANG=0 "ProductName" "${ this.options.appName }"
VIAddVersionKey /LANG=0 "CompanyName" "${ this.options.companyName }"
VIAddVersionKey /LANG=0 "FileDescription" "${ this.options.description }"
VIAddVersionKey /LANG=0 "FileVersion" "${ this.fixedVersion }"
VIAddVersionKey /LANG=0 "LegalCopyright" "${ this.options.copyright }"`;
}

protected async makeHookSection(): Promise<string> {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/nsis-gen/index.ts
Expand Up @@ -17,7 +17,7 @@ export async function nsisBuild(cwd: string, script: string, options: INsisBuild
mute: false,
}) {

const args = [ win32.normalize(resolve(DIR_NSIS, 'makensis.exe')), '/NOCD', win32.normalize(resolve(script)) ];
const args = [ win32.normalize(resolve(DIR_NSIS, 'makensis.exe')), '/NOCD', '/INPUTCHARSET', 'UTF8', win32.normalize(resolve(script)) ];
if(process.platform != 'win32') {
args.unshift('wine');
}
Expand Down

0 comments on commit e9e4083

Please sign in to comment.