mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 13:10:30 +08:00
fix: builder
This commit is contained in:
parent
9bf2f5159d
commit
54d197f9ce
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -228,7 +228,7 @@ jobs:
|
|||||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||||
CSC_LINK: ${{ secrets.CSC_LINK }}
|
CSC_LINK: ${{ secrets.CSC_LINK }}
|
||||||
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
||||||
CSC_NAME: "Developer ID Application: Prometheus Advertising Corp (489PDK5LP3)"
|
CSC_NAME: "Prometheus Advertising Corp (489PDK5LP3)"
|
||||||
DEBUG: "electron-builder"
|
DEBUG: "electron-builder"
|
||||||
CSC_IDENTITY_AUTO_DISCOVERY: "false"
|
CSC_IDENTITY_AUTO_DISCOVERY: "false"
|
||||||
run: |
|
run: |
|
||||||
@ -395,7 +395,7 @@ jobs:
|
|||||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||||
CSC_LINK: ${{ secrets.CSC_LINK }}
|
CSC_LINK: ${{ secrets.CSC_LINK }}
|
||||||
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
||||||
CSC_NAME: "Developer ID Application: Prometheus Advertising Corp (489PDK5LP3)"
|
CSC_NAME: "Prometheus Advertising Corp (489PDK5LP3)"
|
||||||
DEBUG: "electron-builder"
|
DEBUG: "electron-builder"
|
||||||
CSC_IDENTITY_AUTO_DISCOVERY: "false"
|
CSC_IDENTITY_AUTO_DISCOVERY: "false"
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@ -19,6 +19,13 @@ exports.default = async function(context) {
|
|||||||
const entitlementsPath = path.join(__dirname, 'entitlements.mac.plist');
|
const entitlementsPath = path.join(__dirname, 'entitlements.mac.plist');
|
||||||
const childEntitlementsPath = path.join(__dirname, 'entitlements.mac.child.plist');
|
const childEntitlementsPath = path.join(__dirname, 'entitlements.mac.child.plist');
|
||||||
|
|
||||||
|
// 构造完整的证书名称
|
||||||
|
const fullIdentity = identity.includes('Developer ID Application')
|
||||||
|
? identity
|
||||||
|
: `Developer ID Application: ${identity}`;
|
||||||
|
|
||||||
|
console.log(`使用签名身份: ${fullIdentity}`);
|
||||||
|
|
||||||
// 需要重新签名的框架和二进制文件(使用child entitlements)
|
// 需要重新签名的框架和二进制文件(使用child entitlements)
|
||||||
const frameworksToSign = [
|
const frameworksToSign = [
|
||||||
'Contents/Frameworks/Electron Framework.framework/Versions/A/Helpers/chrome_crashpad_handler',
|
'Contents/Frameworks/Electron Framework.framework/Versions/A/Helpers/chrome_crashpad_handler',
|
||||||
@ -44,7 +51,7 @@ exports.default = async function(context) {
|
|||||||
try {
|
try {
|
||||||
const signCommand = [
|
const signCommand = [
|
||||||
'codesign',
|
'codesign',
|
||||||
'--sign', `"${identity}"`,
|
'--sign', `"${fullIdentity}"`,
|
||||||
'--force',
|
'--force',
|
||||||
'--verbose',
|
'--verbose',
|
||||||
'--options', 'runtime',
|
'--options', 'runtime',
|
||||||
@ -73,7 +80,7 @@ exports.default = async function(context) {
|
|||||||
try {
|
try {
|
||||||
const signCommand = [
|
const signCommand = [
|
||||||
'codesign',
|
'codesign',
|
||||||
'--sign', `"${identity}"`,
|
'--sign', `"${fullIdentity}"`,
|
||||||
'--force',
|
'--force',
|
||||||
'--verbose',
|
'--verbose',
|
||||||
'--options', 'runtime',
|
'--options', 'runtime',
|
||||||
@ -102,7 +109,7 @@ exports.default = async function(context) {
|
|||||||
try {
|
try {
|
||||||
const mainSignCommand = [
|
const mainSignCommand = [
|
||||||
'codesign',
|
'codesign',
|
||||||
'--sign', `"${identity}"`,
|
'--sign', `"${fullIdentity}"`,
|
||||||
'--force',
|
'--force',
|
||||||
'--verbose',
|
'--verbose',
|
||||||
'--options', 'runtime',
|
'--options', 'runtime',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user