提交 4c963c08 编写于 作者: J Joao Moreno

Merge branch 'win-sign'

...@@ -31,12 +31,15 @@ function packageInnoSetup(iss, options, cb) { ...@@ -31,12 +31,15 @@ function packageInnoSetup(iss, options, cb) {
options = options || {}; options = options || {};
const definitions = options.definitions || {}; const definitions = options.definitions || {};
const debug = process.argv.some(arg => arg === '--debug-inno');
if (debug) { if (process.argv.some(arg => arg === '--debug-inno')) {
definitions['Debug'] = 'true'; definitions['Debug'] = 'true';
} }
if (process.argv.some(arg => arg === '--sign')) {
definitions['Sign'] = 'true';
}
const keys = Object.keys(definitions); const keys = Object.keys(definitions);
keys.forEach(key => assert(typeof definitions[key] === 'string', `Missing value for '${key}' in Inno Setup package step`)); keys.forEach(key => assert(typeof definitions[key] === 'string', `Missing value for '${key}' in Inno Setup package step`));
......
...@@ -143,7 +143,7 @@ steps: ...@@ -143,7 +143,7 @@ steps:
- powershell: | - powershell: |
. build/tfs/win32/exec.ps1 . build/tfs/win32/exec.ps1
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
exec { npm run gulp -- "vscode-win32-$(VSCODE_ARCH)-archive" "vscode-win32-$(VSCODE_ARCH)-system-setup" "vscode-win32-$(VSCODE_ARCH)-user-setup" } exec { npm run gulp -- "vscode-win32-$(VSCODE_ARCH)-archive" "vscode-win32-$(VSCODE_ARCH)-system-setup" "vscode-win32-$(VSCODE_ARCH)-user-setup" --sign }
$Repo = "$(pwd)" $Repo = "$(pwd)"
$Root = "$Repo\.." $Root = "$Repo\.."
......
...@@ -32,7 +32,10 @@ VersionInfoVersion={#RawVersion} ...@@ -32,7 +32,10 @@ VersionInfoVersion={#RawVersion}
ShowLanguageDialog=auto ShowLanguageDialog=auto
ArchitecturesAllowed={#ArchitecturesAllowed} ArchitecturesAllowed={#ArchitecturesAllowed}
ArchitecturesInstallIn64BitMode={#ArchitecturesInstallIn64BitMode} ArchitecturesInstallIn64BitMode={#ArchitecturesInstallIn64BitMode}
#ifdef Sign
SignTool=esrp SignTool=esrp
#endif
#if "user" == InstallTarget #if "user" == InstallTarget
DefaultDirName={userpf}\{#DirName} DefaultDirName={userpf}\{#DirName}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册