Skip to content

Commit 240c0bc

Browse files
committed
优化MAC构建配置
1 parent d2dfee9 commit 240c0bc

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
os: [macos-latest, macos-latest-large, windows-latest, ubuntu-latest]
14+
os: [macos-latest, windows-latest, ubuntu-latest]
1515

1616
steps:
1717
- name: Check out Git repository
@@ -32,6 +32,11 @@ jobs:
3232
if: matrix.os == 'macos-latest'
3333
run: |
3434
export ELECTRON_BUILDER_EXTRA_ARGS="--universal"
35+
npm rebuild --arch=x64 -f ffmpeg-static && mv node_modules/ffmpeg-static/ffmpeg{,-x64}
36+
npm rebuild --arch=arm64 -f ffmpeg-static && mv node_modules/ffmpeg-static/ffmpeg{,-arm64}
37+
cd node_modules/ffmpeg-static
38+
lipo -create ffmpeg-arm64 ffmpeg-x64 -output ffmpeg
39+
cd ../..
3540
pnpm run build
3641
env:
3742
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
All significant changes to this project will be recorded in this file.
33
此项目的所有显著更改都将记录在此文件中。
44

5-
## [v1.1.2] - 2025-10-22
5+
## [v1.1.3] - 2025-10-22
66
### Added
77
- Add MAC embedding FFmpeg support
88
### Fixed

electron-builder.json5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
target: [
1515
{
1616
target: 'dmg',
17+
arch: ['universal'],
1718
},
1819
],
1920
artifactName: '${name}-${version}-mac-${arch}-installer.${ext}',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "short-video-factory",
33
"description": "短视频工厂,一键生成产品营销与泛内容短视频,AI批量自动剪辑",
4-
"version": "1.1.2",
4+
"version": "1.1.3",
55
"author": {
66
"name": "YILS",
77
"developer": "YILS",

0 commit comments

Comments
 (0)