From 4371345c7d6740000102d14f8a7f53baa0b7c454 Mon Sep 17 00:00:00 2001 From: levi Date: Mon, 31 Oct 2022 15:33:54 +0800 Subject: [PATCH] ci: apk build --- .github/workflows/release.yml | 46 +++++++++++++++++-- ui/flutter/.gitignore | 1 + .../android/app/src/debug/AndroidManifest.xml | 12 +++++ .../android/app/src/main/AndroidManifest.xml | 2 +- .../app/src/profile/AndroidManifest.xml | 2 + 5 files changed, 57 insertions(+), 6 deletions(-) create mode 100644 ui/flutter/android/app/src/debug/AndroidManifest.xml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db123556..940d75ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,8 +88,7 @@ jobs: with: name: macos-arm64-lib path: libgopeed.dylib - - build-macos-arm64: + build-macos: runs-on: macos-latest needs: [ release, build-macos-arm64-lib ] steps: @@ -112,11 +111,11 @@ jobs: env: VERSION: ${{ needs.release.outputs.tag_name }} run: | - # go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/macos/Frameworks/libgopeed.dylib github.com/monkeyWie/gopeed/bind/desktop + PROJECT_DIR=$(pwd) cd ui/flutter flutter config --enable-macos-desktop - flutter build macos --release + flutter build macos cd build/macos/Build/Products/Release cat>appdmg.json< + + + + + + + diff --git a/ui/flutter/android/app/src/main/AndroidManifest.xml b/ui/flutter/android/app/src/main/AndroidManifest.xml index 3fbf9cc5..def48017 100644 --- a/ui/flutter/android/app/src/main/AndroidManifest.xml +++ b/ui/flutter/android/app/src/main/AndroidManifest.xml @@ -5,7 +5,7 @@ - diff --git a/ui/flutter/android/app/src/profile/AndroidManifest.xml b/ui/flutter/android/app/src/profile/AndroidManifest.xml index 8dce2fe4..5492f719 100644 --- a/ui/flutter/android/app/src/profile/AndroidManifest.xml +++ b/ui/flutter/android/app/src/profile/AndroidManifest.xml @@ -4,6 +4,8 @@ the Flutter tool needs it to communicate with the running application to allow setting breakpoints, to provide hot reload, etc. --> + +