diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d0e76c40..623dfd48 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -161,8 +161,14 @@ jobs: VERSION: ${{ needs.get-release.outputs.tag_name }} run: | 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 + # universal binary + cd ui/flutter/macos/Frameworks + lipo -create macos-amd64-lib macos-arm64-lib -output libgopeed.dylib - cd ui/flutter + cd $PROJECT_DIR/ui/flutter flutter build macos cd build/macos/Build/Products/Release cat>appdmg.json<