-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 973 Bytes
/
ci.yml
File metadata and controls
40 lines (31 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build Flet Windows App
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade flet pyinstaller
- name: Install Flutter (Dart 3.9+)
uses: subosito/flutter-action@v2
with:
flutter-version: '3.31.0'
channel: stable
- name: Clear Flutter pub cache (防止旧依赖冲突)
run: flutter pub cache clean
- name: Build Windows app
run: cmd /C "chcp 65001 && set PYTHONIOENCODING=utf-8 && set FLET_NO_RICH=1 && flet build windows"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: windows-build
path: dist/**