build: Windows code sign (#581)

* build: Add windows certificate

* temporary bump version

* change CSC_LINK settings

* rdp connection

* remove appveyor RDP block
This commit is contained in:
Róbert Kiss
2018-03-01 17:29:55 +01:00
committed by László Monda
parent 1981311136
commit d5cc735b85
3 changed files with 10 additions and 1 deletions

View File

@@ -1,8 +1,11 @@
os: unstable
clone_folder: c:\projects\uhk-agent
environment:
GH_TOKEN:
secure: 3IebpEKmC39codi1wT6dXx8mql4/mCL1JzZ7lir7GQ5MWRnCxlED2OXbiKHHigDV
CSC_LINK: c:\projects\uhk-agent\scripts\certs\windows-cert.p12
matrix:
- nodejs_version: "8"

Binary file not shown.

View File

@@ -83,7 +83,12 @@ if (process.platform === 'darwin') {
}
if (process.platform === 'darwin') {
// TODO: Remove comment when macOS certificates boughted and exported
//require('./setup-macos-keychain').registerKeyChain();
exec('openssl aes-256-cbc -K $CERT_KEY -iv $CERT_IV -in scripts/certs/mac-cert.p12.enc -out scripts/certs/mac-cert.p12 -d')
} else if (process.platform === 'win32') {
// decrypt windows certificate
exec('openssl aes-256-cbc -K %CERT_KEY% -iv %CERT_IV% -in scripts/certs/windows-cert.p12.enc -out scripts/certs/windows-cert.p12 -d')
//process.env.CSC_LINK = path.join(__dirname, 'certs/mac-cert.p12');
}
@@ -117,7 +122,8 @@ if (TEST_BUILD || gitTag) {
extraResources
},
win: {
extraResources
extraResources,
certificateFile: path.join(__dirname, 'certs/windows-cert.p12')
},
linux: {
extraResources