From 7b69544626766d8deca757a0060d608bca0820b7 Mon Sep 17 00:00:00 2001 From: NHLOCAL Date: Tue, 17 Dec 2024 08:13:20 +0200 Subject: [PATCH] Update flet-build-exp.yml --- .github/workflows/flet-build-exp.yml | 36 +++++++++++++++------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/.github/workflows/flet-build-exp.yml b/.github/workflows/flet-build-exp.yml index ddc5322..70b0ab8 100644 --- a/.github/workflows/flet-build-exp.yml +++ b/.github/workflows/flet-build-exp.yml @@ -1,38 +1,42 @@ -name: Build Flet Windows +name: Build Flet Windows App on: push: branches: - - flet-build # או כל ענף אחר שאתה רוצה להשתמש בו לבנייה + - flet-build jobs: build-windows: - runs-on: windows-latest # שימוש ב-windows-latest עבור בנייה של 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 3.11 או גרסה עדכנית יותר - - - name: Create and activate virtual environment - run: | - python -m venv .venv - .venv\Scripts\activate # הפעלת הסביבה הווירטואלית ב-Windows + python-version: '3.11' # גרסת פייתון נדרשת - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - pip install flet cython - - name: Build Windows executable + - name: Install Flutter SDK + uses: subosito/flutter-action@v2 + with: + flutter-version: '3.24' + channel: 'stable' + + - name: Verify Flutter Installation + run: flutter doctor + + - name: Build Flet Windows App run: | - flet build windows . + flet build windows --output 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 # שימוש ב *.zip להעלאת קובץ הזיפ \ No newline at end of file + name: flet_windows_app + path: build/windows/*