mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-16 06:19:35 +00:00
添加window打包
This commit is contained in:
parent
b3a9d76c78
commit
db97c5c09c
2 changed files with 35 additions and 2 deletions
35
.github/workflows/flutter-ci.yaml
vendored
35
.github/workflows/flutter-ci.yaml
vendored
|
|
@ -158,10 +158,43 @@ jobs:
|
|||
dist/vaani-linux-amd64.deb
|
||||
dist/vaani-linux-amd64.AppImage
|
||||
|
||||
build_windows:
|
||||
runs-on: windows-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Setup Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
flutter-version: "3.32.0"
|
||||
cache: true
|
||||
- name: Restore Packages
|
||||
run: |
|
||||
flutter pub get
|
||||
|
||||
- name: Install flutter_distributor
|
||||
run: dart pub global activate flutter_distributor
|
||||
|
||||
- name: Build Windows
|
||||
run: |
|
||||
flutter_distributor package --platform windows --targets msix,zip --skip-clean
|
||||
|
||||
- name: Upload Windows APP to Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: windows
|
||||
path: |
|
||||
dist/*/*.msix
|
||||
dist/*/*.zip
|
||||
|
||||
# Job 4: Create GitHub Release (NEW - runs only on tag pushes)
|
||||
create_release:
|
||||
name: Create GitHub Release
|
||||
needs: [build_android, build_linux] # Depends on successful builds
|
||||
needs: [build_android, build_linux, build_windows] # Depends on successful builds
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write # Need write access to create release
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue