Skip to content

Commit

Permalink
Merge branch 'win-sign'
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Oct 2, 2018
2 parents 0604b4f + 38a5ab8 commit 4c963c0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions build/gulpfile.vscode.win32.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ function packageInnoSetup(iss, options, cb) {
options = options || {};

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';
}

if (process.argv.some(arg => arg === '--sign')) {
definitions['Sign'] = 'true';
}

const keys = Object.keys(definitions);

keys.forEach(key => assert(typeof definitions[key] === 'string', `Missing value for '${key}' in Inno Setup package step`));
Expand Down
2 changes: 1 addition & 1 deletion build/tfs/win32/product-build-win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ steps:
- powershell: |
. build/tfs/win32/exec.ps1
$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)"
$Root = "$Repo\.."
Expand Down
3 changes: 3 additions & 0 deletions build/win32/code.iss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ VersionInfoVersion={#RawVersion}
ShowLanguageDialog=auto
ArchitecturesAllowed={#ArchitecturesAllowed}
ArchitecturesInstallIn64BitMode={#ArchitecturesInstallIn64BitMode}

#ifdef Sign
SignTool=esrp
#endif

#if "user" == InstallTarget
DefaultDirName={userpf}\{#DirName}
Expand Down

0 comments on commit 4c963c0

Please sign in to comment.