mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-06 16:40:32 +00:00
fix: mac build
This commit is contained in:
1 parent
af5f739630
commit
7ba87e48fc
2 files changed
+7
-6
No files matched your search
@@ -155,7 +155,7 @@ jobs:
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: macos-arm64-lib
|
||||
path: ui/flutter/macos/Frameworks
|
||||
path: ui/flutter/libs
|
||||
- name: Build
|
||||
env:
|
||||
VERSION: ${{ needs.get-release.outputs.tag_name }}
|
||||
@@ -163,10 +163,11 @@ jobs:
|
||||
PROJECT_DIR=$(pwd)
|
||||
|
||||
# amd64 lib
|
||||
go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/macos/Frameworks/macos-amd64-lib github.com/GopeedLab/gopeed/bind/desktop
|
||||
go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/libs/macos-amd64-lib github.com/GopeedLab/gopeed/bind/desktop
|
||||
# universal binary
|
||||
cd ui/flutter/macos/Frameworks
|
||||
cd ui/flutter/libs
|
||||
lipo -create macos-amd64-lib macos-arm64-lib -output libgopeed.dylib
|
||||
cp libgopeed.dylib ../macos/Frameworks
|
||||
|
||||
cd $PROJECT_DIR/ui/flutter
|
||||
flutter build macos
|
||||
|
||||
Reference in new issue
Block a user