mac signing
This commit is contained in:
parent
430df8ff41
commit
c4b2893db3
5 changed files with 51 additions and 3 deletions
16
build/afterPack.js
Normal file
16
build/afterPack.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
exports.default = function(context) {
|
||||
const { execSync } = require('child_process')
|
||||
|
||||
console.log('Castlabs-evs update start')
|
||||
execSync('python3 -m pip install --upgrade castlabs-evs')
|
||||
console.log('Castlabs-evs update complete')
|
||||
|
||||
if (process.platform !== 'darwin')
|
||||
return
|
||||
|
||||
console.log('VMP signing start')
|
||||
|
||||
execSync('python3 -m castlabs_evs.vmp -n sign-pkg dist/mac',{stdio: 'inherit'})
|
||||
|
||||
console.log('VMP signing complete')
|
||||
}
|
14
build/entitlements.mac.plist
Normal file
14
build/entitlements.mac.plist
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<!-- https://github.com/electron/electron-notarize#prerequisites -->
|
||||
<key>com.apple.security.cs.allow-jit</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
||||
<true/>
|
||||
<!-- https://github.cm/electron-userland/electron-builder/issues/3940 -->
|
||||
<key>com.apple.security.cs.disable-library-validation</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
9
build/notarize.js
Normal file
9
build/notarize.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
exports.default = function(context) {
|
||||
const { execSync } = require('child_process')
|
||||
|
||||
if (process.platform === "win32") {
|
||||
console.log('VMP signing start')
|
||||
execSync('python3 -m castlabs_evs.vmp sign-pkg ' + context.appOutDir,{stdio: 'inherit'})
|
||||
console.log('VMP signing complete')
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue