feat: update flutter to v3.24 (#865)

This commit is contained in:
Levi authored and GitHub committed 2025-01-06 18:34:50 +08:00
1 parent 1249493a8a
commit ccb3267fba
16 files changed
+350 -238

No files matched your search

+6 -6
View File
@@ -28,7 +28,7 @@ on:
env:
GO_VERSION: "1.23"
FLUTTER_VERSION: "3.16.8"
FLUTTER_VERSION: "3.24.5"
jobs:
# lint:
@@ -73,17 +73,17 @@ jobs:
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
- if: runner.os == 'windows'
- if: runner.os == 'windows-latest'
run: |
go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/windows/libgopeed.dll github.com/GopeedLab/gopeed/bind/desktop
cd ui/flutter
flutter build windows
- if: runner.os == 'macOS'
- if: runner.os == 'macos-latest'
run: |
go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/macos/Frameworks/libgopeed.dylib github.com/GopeedLab/gopeed/bind/desktop
cd ui/flutter
flutter build macos
- if: runner.os == 'Linux'
- if: runner.os == 'ubuntu-latest'
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libayatana-appindicator3-dev
@@ -140,7 +140,7 @@ jobs:
- name: Build
run: |
cd ui/flutter
flutter build web --web-renderer html
flutter build web --no-web-resources-cdn
cd ../../
rm -rf cmd/web/dist
cp -r ui/flutter/build/web cmd/web/dist
@@ -160,7 +160,7 @@ jobs:
- name: Build
run: |
cd ui/flutter
flutter build web --web-renderer html
flutter build web --no-web-resources-cdn
cd ../../
rm -rf cmd/web/dist
cp -r ui/flutter/build/web cmd/web/dist