mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-30 06:04:37 +00:00
electron builder fixes
This commit is contained in:
@@ -37,7 +37,8 @@ asarUnpack:
|
|||||||
win:
|
win:
|
||||||
icon: "./build/windows/icon.ico"
|
icon: "./build/windows/icon.ico"
|
||||||
artifactName: tabby-${version}-portable-${env.ARCH}.${ext}
|
artifactName: tabby-${version}-portable-${env.ARCH}.${ext}
|
||||||
rfc3161TimeStampServer: http://timestamp.sectigo.com
|
signtoolOptions:
|
||||||
|
rfc3161TimeStampServer: http://timestamp.sectigo.com
|
||||||
nsis:
|
nsis:
|
||||||
oneClick: false
|
oneClick: false
|
||||||
artifactName: tabby-${version}-setup-${env.ARCH}.${ext}
|
artifactName: tabby-${version}-setup-${env.ARCH}.${ext}
|
||||||
|
@@ -28,9 +28,7 @@ builder({
|
|||||||
},
|
},
|
||||||
mac: {
|
mac: {
|
||||||
identity: !process.env.CI || process.env.CSC_LINK ? undefined : null,
|
identity: !process.env.CI || process.env.CSC_LINK ? undefined : null,
|
||||||
notarize: process.env.APPLE_TEAM_ID ? {
|
notarize: !!process.env.APPLE_TEAM_ID,
|
||||||
teamId: process.env.APPLE_TEAM_ID,
|
|
||||||
} : false,
|
|
||||||
},
|
},
|
||||||
npmRebuild: process.env.ARCH !== 'arm64',
|
npmRebuild: process.env.ARCH !== 'arm64',
|
||||||
publish: process.env.KEYGEN_TOKEN ? [
|
publish: process.env.KEYGEN_TOKEN ? [
|
||||||
|
@@ -28,27 +28,29 @@ builder({
|
|||||||
] : undefined,
|
] : undefined,
|
||||||
forceCodeSigning: !!keypair,
|
forceCodeSigning: !!keypair,
|
||||||
win: {
|
win: {
|
||||||
certificateSha1: process.env.SM_CODE_SIGNING_CERT_SHA1_HASH,
|
signtoolOptions: {
|
||||||
publisherName: process.env.SM_PUBLISHER_NAME,
|
certificateSha1: process.env.SM_CODE_SIGNING_CERT_SHA1_HASH,
|
||||||
signingHashAlgorithms: ['sha256'],
|
publisherName: process.env.SM_PUBLISHER_NAME,
|
||||||
sign: keypair ? async function (configuration) {
|
signingHashAlgorithms: ['sha256'],
|
||||||
console.log('Signing', configuration)
|
sign: keypair ? async function (configuration) {
|
||||||
if (configuration.path) {
|
console.log('Signing', configuration)
|
||||||
try {
|
if (configuration.path) {
|
||||||
const out = execSync(
|
try {
|
||||||
`smctl sign --keypair-alias=${keypair} --input "${String(configuration.path)}"`
|
const out = execSync(
|
||||||
)
|
`smctl sign --keypair-alias=${keypair} --input "${String(configuration.path)}"`
|
||||||
if (out.toString().includes('FAILED')) {
|
)
|
||||||
throw new Error(out.toString())
|
if (out.toString().includes('FAILED')) {
|
||||||
|
throw new Error(out.toString())
|
||||||
|
}
|
||||||
|
console.log(out.toString())
|
||||||
|
} catch (e) {
|
||||||
|
console.error(`Failed to sign ${configuration.path}`)
|
||||||
|
console.error(e)
|
||||||
|
process.exit(1)
|
||||||
}
|
}
|
||||||
console.log(out.toString())
|
|
||||||
} catch (e) {
|
|
||||||
console.error(`Failed to sign ${configuration.path}`)
|
|
||||||
console.error(e)
|
|
||||||
process.exit(1)
|
|
||||||
}
|
}
|
||||||
}
|
} : undefined,
|
||||||
} : undefined,
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user