mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-16 22:39:34 +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.deb
|
||||||
dist/vaani-linux-amd64.AppImage
|
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)
|
# Job 4: Create GitHub Release (NEW - runs only on tag pushes)
|
||||||
create_release:
|
create_release:
|
||||||
name: Create GitHub 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
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # Need write access to create release
|
contents: write # Need write access to create release
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
|
||||||
|
|
||||||
FlutterWindow window(project);
|
FlutterWindow window(project);
|
||||||
// 居中
|
// 居中
|
||||||
UINT windowWidth = 832, windowHeight = 640;
|
UINT windowWidth = 1050, windowHeight = 700;
|
||||||
UINT scrWidth, scrHeight, xShaft, yShaft;
|
UINT scrWidth, scrHeight, xShaft, yShaft;
|
||||||
scrWidth = GetSystemMetrics(SM_CXFULLSCREEN);
|
scrWidth = GetSystemMetrics(SM_CXFULLSCREEN);
|
||||||
scrHeight = GetSystemMetrics(SM_CYFULLSCREEN);
|
scrHeight = GetSystemMetrics(SM_CYFULLSCREEN);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue