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:
committed by
László Monda
parent
1981311136
commit
d5cc735b85
@@ -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"
|
||||
|
||||
|
||||
BIN
scripts/certs/windows-cert.p12.enc
Normal file
BIN
scripts/certs/windows-cert.p12.enc
Normal file
Binary file not shown.
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user