优化MAC构建配置

This commit is contained in:
YILS
2025-10-22 17:39:58 +08:00
parent d2dfee949b
commit 240c0bce72
4 changed files with 9 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [macos-latest, macos-latest-large, windows-latest, ubuntu-latest] os: [macos-latest, windows-latest, ubuntu-latest]
steps: steps:
- name: Check out Git repository - name: Check out Git repository
@@ -32,6 +32,11 @@ jobs:
if: matrix.os == 'macos-latest' if: matrix.os == 'macos-latest'
run: | run: |
export ELECTRON_BUILDER_EXTRA_ARGS="--universal" export ELECTRON_BUILDER_EXTRA_ARGS="--universal"
npm rebuild --arch=x64 -f ffmpeg-static && mv node_modules/ffmpeg-static/ffmpeg{,-x64}
npm rebuild --arch=arm64 -f ffmpeg-static && mv node_modules/ffmpeg-static/ffmpeg{,-arm64}
cd node_modules/ffmpeg-static
lipo -create ffmpeg-arm64 ffmpeg-x64 -output ffmpeg
cd ../..
pnpm run build pnpm run build
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -2,7 +2,7 @@
All significant changes to this project will be recorded in this file. All significant changes to this project will be recorded in this file.
此项目的所有显著更改都将记录在此文件中。 此项目的所有显著更改都将记录在此文件中。
## [v1.1.2] - 2025-10-22 ## [v1.1.3] - 2025-10-22
### Added ### Added
- Add MAC embedding FFmpeg support - Add MAC embedding FFmpeg support
### Fixed ### Fixed

View File

@@ -14,6 +14,7 @@
target: [ target: [
{ {
target: 'dmg', target: 'dmg',
arch: ['universal'],
}, },
], ],
artifactName: '${name}-${version}-mac-${arch}-installer.${ext}', artifactName: '${name}-${version}-mac-${arch}-installer.${ext}',

View File

@@ -1,7 +1,7 @@
{ {
"name": "short-video-factory", "name": "short-video-factory",
"description": "短视频工厂一键生成产品营销与泛内容短视频AI批量自动剪辑", "description": "短视频工厂一键生成产品营销与泛内容短视频AI批量自动剪辑",
"version": "1.1.2", "version": "1.1.3",
"author": { "author": {
"name": "YILS", "name": "YILS",
"developer": "YILS", "developer": "YILS",