From 2f8678385770b96719819344c0eab5b37b9f383e Mon Sep 17 00:00:00 2001
From: NHLOCAL <NH.LOCAL11@GMAIL.COM>
Date: Wed, 18 Dec 2024 02:57:55 +0200
Subject: [PATCH] =?UTF-8?q?=D7=A7=D7=91=D7=A6=D7=99=D7=9D=20=D7=A2=D7=93?=
 =?UTF-8?q?=D7=9B=D7=A0=D7=99=D7=99=D7=9D=20=D7=9C=D7=91=D7=A0=D7=99=D7=99?=
 =?UTF-8?q?=D7=AA=20=D7=94=D7=AA=D7=95=D7=9B=D7=A0=D7=94?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../{apk-build-official.yml => apk-build.yml} |  2 +-
 .github/workflows/windows-build.yml           | 60 +++++++++++++++++++
 2 files changed, 61 insertions(+), 1 deletion(-)
 rename .github/workflows/{apk-build-official.yml => apk-build.yml} (97%)
 create mode 100644 .github/workflows/windows-build.yml

diff --git a/.github/workflows/apk-build-official.yml b/.github/workflows/apk-build.yml
similarity index 97%
rename from .github/workflows/apk-build-official.yml
rename to .github/workflows/apk-build.yml
index 163fc3a..251ef4b 100644
--- a/.github/workflows/apk-build-official.yml
+++ b/.github/workflows/apk-build.yml
@@ -5,7 +5,7 @@ on:
     branches:
       - flet-build
     paths:
-      - '.github/workflows/apk-build-official.yml'
+      - '.github/workflows/apk-build.yml'
 
 
   # Allows you to run this workflow manually from the Actions tab of the repository
diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml
new file mode 100644
index 0000000..97ba15d
--- /dev/null
+++ b/.github/workflows/windows-build.yml
@@ -0,0 +1,60 @@
+name: Windows Build
+
+on:
+  push:
+    branches:
+      - flet-build
+    paths:
+      - '.github/workflows/windows-build.yml'
+
+  # Allows you to run this workflow manually from the Actions tab of the repository
+  workflow_dispatch:
+
+env:
+  # https://flet.dev/docs/publish#versioning
+  BUILD_NUMBER: 1
+  BUILD_VERSION: 1.0.0
+  PYTHON_VERSION: 3.12.2
+  FLUTTER_VERSION: 3.24.0
+
+jobs:
+  build:
+    runs-on: windows-latest
+
+    steps:
+    - name: Checkout code
+      uses: actions/checkout@v4
+
+    - name: Setup Python ${{ env.PYTHON_VERSION }}
+      uses: actions/setup-python@v5
+      with:
+        python-version: ${{ env.PYTHON_VERSION }}
+
+    - name: Install Python Dependencies
+      run: |
+        python -m pip install --upgrade pip
+        pip install -r requirements.txt
+
+    - name: Setup Flutter ${{ env.FLUTTER_VERSION }}
+      uses: subosito/flutter-action@v2
+      with:
+        flutter-version: ${{ env.FLUTTER_VERSION }}
+
+    - name: Flet Build Windows
+      run: |
+        flutter config --no-analytics
+        flet build windows --v --no-rich-output
+      env:
+        PYTHONIOENCODING: utf-8
+        PYTHONUTF8: 1
+
+
+    - name: Upload Windows Artifact
+      uses: actions/upload-artifact@v4.3.4
+      with:
+        name: windows-build-artifact
+        path: build/windows
+        if-no-files-found: error
+        overwrite: false
+
+