From 32284e929dd4c6a33fb7dc43cf841c4677b29b42 Mon Sep 17 00:00:00 2001 From: Core Date: Wed, 6 Mar 2024 00:50:15 +0000 Subject: [PATCH] Update action workflow and build command --- .github/workflows/build.yml | 17 ++++++++++++----- package.json | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f14f7f4..36265f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,9 +39,16 @@ jobs: run: yarn exe - name: Upload release assets - uses: softprops/action-gh-release@v1 + uses: svenstaro/upload-release-action@v2 with: - tag_name: "v2.4.9" - files: | - prebuilds/*.tar.gz - ./airtunes2.exe + tag: "v2.4.9" + overwrite: true + file: prebuilds/*.tar.gz + + - name: Upload executable + if: ${{ matrix.os == 'windows-latest' }} + uses: svenstaro/upload-release-action@v2 + with: + tag: "v2.4.9" + overwrite: true + file: ./airtunes2.exe diff --git a/package.json b/package.json index 013244c..bce24d1 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "build": "run-script-os", "build:win32": "prebuild --platform win32 -r electron -t 29.1.0", "build:linux": "prebuild --platform linux -r electron -t 29.1.0", - "build:darwin": "prebuild --platform darwin -a x64 -a arm64 -r electron -t 29.1.0", + "build:darwin": "prebuild --platform darwin -a x64 -r electron -t 29.1.0 && prebuild --platform darwin -a arm64 -r electron -t 29.1.0", "prebuild-install": "prebuild-install || (npm run rebuild || (true || VER>NUL))", "rebuild": "node-gyp configure build", "exe": "pkg --compress Brotli .",