* style(.editorconfig): Add json rule to editorconfig file * build(build): Add application images These images need to create installers Contains images for: - Win - Mac - Linux * fix(device): Mac is not allow excusive right to use USB * build(npm): Add standard-version script * chore(device): Fix comment in UhkDeviceService * chore(release): 1.0.0-alpha.1 * ci(travis): Change travis to c language and add osx, linux build matrix * build(build): Windows icon size must be at least 256x256 * ci(appveyor): Add temporary GH_TOKEN to test msi installer * build(tsconfig): Optimalize tsconfigs Needed a tsconfig.json in the shared/src library because if it not exist the code builded after the second build on mac, and travis linux. Reproduce the error: - Delete node_modules directory - npm i - npm run build - error occured (ERROR in ./shared/src/polyfills.ts Module build failed: error while parsing tsconfig.json) Created a new tscfonfig.json in the project root folder. The old config files extends this root configs. * build(tsconfig): in tsconfig-electron-main not override module version * chore(editorconfig): Delete json rule * style: Reformat the main package.json to apply editorconfig style
21 lines
891 B
JavaScript
21 lines
891 B
JavaScript
'use strict'
|
|
|
|
const cp = require('child_process')
|
|
const path = require('path')
|
|
|
|
function registerKeyChain() {
|
|
const encryptedFile = path.join(__dirname, '../certs/developer-id-cert.p12.enc')
|
|
const decryptedFile = path.join(__dirname, '../certs/developer-id-cert.p12')
|
|
cp.execSync(`openssl aes-256-cbc -K $encrypted_04061b49eb95_key -iv $encrypted_04061b49eb95_iv -in ${encryptedFile} -out ${decryptedFile} -d`)
|
|
|
|
const keyChain = 'mac-build.keychain'
|
|
cp.execSync(`security create-keychain -p travis ${keyChain}`)
|
|
cp.execSync(`security default-keychain -s ${keyChain}`)
|
|
cp.execSync(`security unlock-keychain -p travis ${keyChain}`)
|
|
cp.execSync(`security set-keychain-settings -t 3600 -u ${keyChain}`)
|
|
|
|
cp.execSync(`security import ${decryptedFile} -k ${keyChain} -P $KEY_PASSWORD -T /usr/bin/codesign`)
|
|
}
|
|
|
|
module.exports.registerKeyChain = registerKeyChain
|