mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
feat: add more build log
This commit is contained in:
parent
daa8e7ba7e
commit
8d1f866df2
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
@ -196,7 +196,24 @@ jobs:
|
|||||||
pnpm install
|
pnpm install
|
||||||
pnpm add @mihomo-party/sysproxy-darwin-${{ matrix.arch }}
|
pnpm add @mihomo-party/sysproxy-darwin-${{ matrix.arch }}
|
||||||
pnpm prepare --${{ matrix.arch }}
|
pnpm prepare --${{ matrix.arch }}
|
||||||
|
- name: Verify Code Signing Certificate
|
||||||
|
env:
|
||||||
|
CSC_LINK: ${{ secrets.CSC_LINK }}
|
||||||
|
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
||||||
|
run: |
|
||||||
|
echo "验证代码签名证书..."
|
||||||
|
if [ -n "$CSC_LINK" ]; then
|
||||||
|
echo "CSC_LINK 已设置"
|
||||||
|
else
|
||||||
|
echo "警告: CSC_LINK 未设置"
|
||||||
|
fi
|
||||||
|
if [ -n "$CSC_KEY_PASSWORD" ]; then
|
||||||
|
echo "CSC_KEY_PASSWORD 已设置"
|
||||||
|
else
|
||||||
|
echo "警告: CSC_KEY_PASSWORD 未设置"
|
||||||
|
fi
|
||||||
- name: Build
|
- name: Build
|
||||||
|
timeout-minutes: 60
|
||||||
env:
|
env:
|
||||||
npm_config_arch: ${{ matrix.arch }}
|
npm_config_arch: ${{ matrix.arch }}
|
||||||
npm_config_target_arch: ${{ matrix.arch }}
|
npm_config_target_arch: ${{ matrix.arch }}
|
||||||
@ -205,9 +222,14 @@ 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 }}
|
||||||
|
DEBUG: "electron-builder"
|
||||||
|
CSC_IDENTITY_AUTO_DISCOVERY: "false"
|
||||||
run: |
|
run: |
|
||||||
|
echo "开始构建 macOS 应用..."
|
||||||
|
security list-keychains
|
||||||
|
security find-identity -v -p codesigning
|
||||||
chmod +x build/pkg-scripts/postinstall
|
chmod +x build/pkg-scripts/postinstall
|
||||||
pnpm build:mac --${{ matrix.arch }}
|
pnpm build:mac --${{ matrix.arch }} --publish=never
|
||||||
- name: Setup temporary installer signing keychain
|
- name: Setup temporary installer signing keychain
|
||||||
uses: apple-actions/import-codesign-certs@v3
|
uses: apple-actions/import-codesign-certs@v3
|
||||||
with:
|
with:
|
||||||
@ -271,6 +293,7 @@ jobs:
|
|||||||
pnpm add -D electron@32.2.2
|
pnpm add -D electron@32.2.2
|
||||||
pnpm prepare --${{ matrix.arch }}
|
pnpm prepare --${{ matrix.arch }}
|
||||||
- name: Build
|
- name: Build
|
||||||
|
timeout-minutes: 60
|
||||||
env:
|
env:
|
||||||
npm_config_arch: ${{ matrix.arch }}
|
npm_config_arch: ${{ matrix.arch }}
|
||||||
npm_config_target_arch: ${{ matrix.arch }}
|
npm_config_target_arch: ${{ matrix.arch }}
|
||||||
@ -279,10 +302,15 @@ 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 }}
|
||||||
|
DEBUG: "electron-builder"
|
||||||
|
CSC_IDENTITY_AUTO_DISCOVERY: "false"
|
||||||
run: |
|
run: |
|
||||||
|
echo "开始构建 macOS 10 应用..."
|
||||||
|
security list-keychains
|
||||||
|
security find-identity -v -p codesigning
|
||||||
sed -i "" -e "s/macos/catalina/" electron-builder.yml
|
sed -i "" -e "s/macos/catalina/" electron-builder.yml
|
||||||
chmod +x build/pkg-scripts/postinstall
|
chmod +x build/pkg-scripts/postinstall
|
||||||
pnpm build:mac --${{ matrix.arch }}
|
pnpm build:mac --${{ matrix.arch }} --publish=never
|
||||||
- name: Setup temporary installer signing keychain
|
- name: Setup temporary installer signing keychain
|
||||||
uses: apple-actions/import-codesign-certs@v3
|
uses: apple-actions/import-codesign-certs@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
@ -44,7 +44,7 @@ mac:
|
|||||||
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
|
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
|
||||||
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
|
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
|
||||||
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
|
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
|
||||||
notarize: true
|
notarize: false
|
||||||
artifactName: ${name}-macos-${version}-${arch}.${ext}
|
artifactName: ${name}-macos-${version}-${arch}.${ext}
|
||||||
pkg:
|
pkg:
|
||||||
allowAnywhere: false
|
allowAnywhere: false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user