From 63a6842d30f5e5f530ed1a14bee2653faac63dd1 Mon Sep 17 00:00:00 2001 From: Meghdad Fadaee Date: Sat, 21 Feb 2026 11:22:17 +0330 Subject: [PATCH] update build action --- .github/workflows/build-and-release.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index f3c6cc6..a273243 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -30,15 +30,15 @@ jobs: arch: amd64 runner: windows-latest - # macOS Intel - - os: macos - arch: amd64 - runner: macos-13 + # # macOS Intel + # - os: macos + # arch: amd64 + # runner: macos-13 - # macOS ARM (Apple Silicon) - - os: macos - arch: arm64 - runner: macos-14 + # # macOS ARM (Apple Silicon) + # - os: macos + # arch: arm64 + # runner: macos-14 steps: - uses: actions/checkout@v4 @@ -56,7 +56,14 @@ jobs: run: | pyinstaller main.py --name text-engine - - name: Create project zip + - name: Zip the folder on Windows + if: runner.os == 'Windows' + shell: pwsh + run: | + Compress-Archive -Path dist\text-engine\* -DestinationPath release\text-engine-windows-${{ matrix.arch }}.zip + + - name: Zip the folder on Linux/macOS + if: runner.os != 'Windows' run: | mkdir -p release cd dist