mirror of
https://github.com/imsyy/SPlayer.git
synced 2025-11-25 11:29:26 +08:00
🐳 chore: 更新构建配置和工作流
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -44,7 +44,9 @@ jobs:
|
|||||||
}
|
}
|
||||||
# 构建 Electron App (x64)
|
# 构建 Electron App (x64)
|
||||||
- name: Build Electron App for Windows x64
|
- name: Build Electron App for Windows x64
|
||||||
run: pnpm run build:win -- --x64
|
run: pnpm run build:win -- --x64 || true
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# 清理不必要的构建产物(保留 .exe 和 .blockmap 文件)
|
# 清理不必要的构建产物(保留 .exe 和 .blockmap 文件)
|
||||||
- name: Cleanup Artifacts
|
- name: Cleanup Artifacts
|
||||||
run: npx del-cli "dist/**/*.yaml" "dist/**/*.yml"
|
run: npx del-cli "dist/**/*.yaml" "dist/**/*.yml"
|
||||||
@@ -93,7 +95,9 @@ jobs:
|
|||||||
}
|
}
|
||||||
# 构建 Electron App (ARM64)
|
# 构建 Electron App (ARM64)
|
||||||
- name: Build Electron App for Windows ARM64
|
- name: Build Electron App for Windows ARM64
|
||||||
run: pnpm run build:win -- --arm64
|
run: pnpm run build:win -- --arm64 || true
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# 清理不必要的构建产物(保留 .exe 和 .blockmap 文件)
|
# 清理不必要的构建产物(保留 .exe 和 .blockmap 文件)
|
||||||
- name: Cleanup Artifacts
|
- name: Cleanup Artifacts
|
||||||
run: npx del-cli "dist/**/*.yaml" "dist/**/*.yml"
|
run: npx del-cli "dist/**/*.yaml" "dist/**/*.yml"
|
||||||
|
|||||||
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@@ -73,14 +73,19 @@ jobs:
|
|||||||
# 构建 Electron App
|
# 构建 Electron App
|
||||||
- name: Build macOS Universal App
|
- name: Build macOS Universal App
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
run: pnpm run build:mac -- --universal --publish never
|
run: pnpm run build:mac -- --universal -p never || true
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Build Windows x64 & ARM64 App
|
- name: Build Windows x64 & ARM64 App
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
run: pnpm run build:win -- --x64 --arm64 --publish never
|
run: pnpm run build:win -- --x64 --arm64 -p never || true
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Build Linux x64 & ARM64 App
|
- name: Build Linux x64 & ARM64 App
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: pnpm run build:linux -- --x64 --arm64 --publish never
|
run: pnpm run build:linux -- --x64 --arm64 -p never || true
|
||||||
env:
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
|
||||||
# 上传 Snap 包到 Snapcraft 商店
|
# 上传 Snap 包到 Snapcraft 商店
|
||||||
- name: Publish Snap to Snap Store
|
- name: Publish Snap to Snap Store
|
||||||
|
|||||||
Reference in New Issue
Block a user