From ac9b505a62f069e3b0d386fd7adcac74e05a2324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=88=9A=28noham=29=C2=B2?= <100566912+NohamR@users.noreply.github.com> Date: Sun, 25 Aug 2024 18:40:35 +0200 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e0f2f56..352a6a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,8 +55,6 @@ jobs: name: GoFileCLI_win-x64 path: | build/*.exe - build/*.bin - build/*.app/**/* build-linux-x64: runs-on: ubuntu-latest @@ -93,11 +91,9 @@ jobs: with: name: GoFileCLI_linux-x64 path: | - build/*.exe build/*.bin - build/*.app/**/* - build-mac-arm64: + build-macos: runs-on: macos-latest steps: @@ -121,18 +117,21 @@ jobs: pip install -r requirements.txt - name: Build Executable with Nuitka - uses: Nuitka/Nuitka-Action@main - with: - nuitka-version: main - script-name: gofilecli.py - onefile: true - macos-target-arch: x86_64 + # --macos-app-icon=resources/icon.icns + run: | + python -m nuitka --standalone --assume-yes-for-downloads --output-dir=dist --macos-create-app-bundle --macos-target-arch=arm64 gofilecli.py + python -m nuitka --standalone --assume-yes-for-downloads --output-dir=dist_x86_64 --macos-create-app-bundle --macos-target-arch=x86_64 gofilecli.py + - name: Upload Artifact[osx-arm64] + uses: actions/upload-artifact@v4 + with: + name: GoFileCLI_osx-x64 + path: | + dist_x86_64/* + - name: Upload Artifact[osx-arm64] uses: actions/upload-artifact@v4 with: name: GoFileCLI_osx-arm64 path: | - build/*.exe - build/*.bin - build/*.app/**/* \ No newline at end of file + build/* \ No newline at end of file