mirror of
https://github.com/YILS-LIN/short-video-factory.git
synced 2025-11-25 11:29:34 +08:00
优化MAC构建配置
This commit is contained in:
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -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 }}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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}',
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user