diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d92043a..2b1e5b9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,13 +26,17 @@ jobs: - name: Build for macOS/arm64 run: | - wails build -platform darwin/arm64 -ldflags "-X main.Version=$GITHUB_REF_NAME" + wails build -platform darwin/universal -ldflags "-X main.Version=$GITHUB_REF_NAME" + + - name: Zip macOS arm64 binary + run: | + zip -r Dolphin_MacOS.zip ./build/bin/Dolphin.app - name: Upload macOS arm64 binary uses: actions/upload-artifact@v4 with: name: Dolphin_MacOS - path: ./build/bin/Dolphin.app + path: Dolphin_MacOS.zip build-windows-and-linux: environment: @@ -62,22 +66,30 @@ jobs: wails build -platform windows/amd64 -ldflags "-X main.Version=$GITHUB_REF_NAME" --nsis mv ./build/bin ./build/Dolphin_Windows_Amd64-Setup + - name: Zip Windows amd64 installer + run: | + zip -r Dolphin_Windows_Setup.zip ./build/Dolphin_Windows_Amd64-Setup + - name: Build for Linux/amd64 run: | wails build -platform linux/amd64 -ldflags "-X main.Version=$GITHUB_REF_NAME" mv ./build/bin ./build/Dolphin_Linux_Amd64 + - name: Zip Linux amd64 binary + run: | + zip -r Dolphin_Linux.zip ./build/Dolphin_Linux_Amd64 + - name: Upload Windows/amd64 installer uses: actions/upload-artifact@v4 with: name: Dolphin_Windows_Setup - path: ./build/Dolphin_Windows_Amd64-Setup + path: Dolphin_Windows_Setup.zip - name: Upload Linux/amd64 binary uses: actions/upload-artifact@v4 with: name: Dolphin_Linux - path: ./build/Dolphin_Linux_Amd64 + path: Dolphin_Linux.zip create-release: environment: @@ -95,27 +107,27 @@ jobs: uses: actions/download-artifact@v4 with: name: Dolphin_MacOS - path: ./Dolphin_MacOS + path: ./Dolphin_MacOS.zip - name: Download Windows amd64 installer uses: actions/download-artifact@v4 with: name: Dolphin_Windows_Setup - path: ./Dolphin_Windows_Setup + path: ./Dolphin_Windows_Setup.zip - name: Download Linux amd64 binary uses: actions/download-artifact@v4 with: name: Dolphin_Linux - path: ./Dolphin_Linux + path: ./Dolphin_Linux.zip - name: Create Release id: create_release uses: softprops/action-gh-release@v2 with: files: | - ./Dolphin_MacOS - ./Dolphin_Windows_Setup - ./Dolphin_Linux + ./Dolphin_MacOS.zip + ./Dolphin_Windows_Setup.zip + ./Dolphin_Linux.zip env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}