Skip to content

Commit

Permalink
Update flet-build-exp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLOCAL committed Dec 17, 2024
1 parent f8cb04c commit f5107e7
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions .github/workflows/flet-build-exp.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,48 @@
name: Build Flet Windows
name: Build Flet Windows App

on:
push:
branches:
- flet-build # או כל ענף אחר שאתה רוצה להשתמש בו לבנייה
- flet-build

jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Check out the repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.11' # גרסת פייתון נדרשת

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install Flutter SDK
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24' # או גרסה עדכנית יותר
channel: 'stable' # או 'beta' או 'dev' אם אתה רוצה
flutter-version: '3.24'
channel: 'stable'

- name: Verify Flutter Installation
run: |
flutter --version # הדפס את גרסת Flutter כדי לוודא שהיא מותקנת
echo "PATH is: $env:PATH" # הדפס את ה-PATH כדי לוודא ש-flutter נוסף
run: flutter doctor

- name: Create and activate virtual environment
- name: Set UTF-8 Encoding
run: |
python -m venv .venv
.venv\Scripts\activate
chcp 65001
shell: cmd

- name: Install dependencies
- name: Build Flet Windows App
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install flet --upgrade # עדכון לגרסה העדכנית ביותר
pip install cython
flet build windows --output build/windows
- name: Build Windows executable
run: |
flet build windows .
- name: Upload Windows executable as artifact
- name: Upload Windows Executable as Artifact
uses: actions/upload-artifact@v4
with:
name: my_flet_app_windows
path: build/windows/*.zip
name: flet_windows_app
path: build/windows/*

0 comments on commit f5107e7

Please sign in to comment.