From 835ff04f0d8162ebe9afc296732a9086a05139e6 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Fri, 15 Aug 2025 15:19:12 -0700 Subject: [PATCH 1/4] Create build-windows-arm64.yml --- .github/workflows/build-windows-arm64.yml | 74 +++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 .github/workflows/build-windows-arm64.yml diff --git a/.github/workflows/build-windows-arm64.yml b/.github/workflows/build-windows-arm64.yml new file mode 100644 index 00000000..fc285b59 --- /dev/null +++ b/.github/workflows/build-windows-arm64.yml @@ -0,0 +1,74 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Build Windows + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: windows-11-arm + defaults: + run: + shell: msys2 {0} + steps: + - uses: msys2/setup-msys2@v2 + with: + path-type: inherit + update: true + install: >- + make + wget + zip + p7zip + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21' + + - name: Install Dependencies + run: > + pacman -Syu && + pacman --noconfirm -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-mpv + + - name: Install Fyne tool + run: go install fyne.io/fyne/v2/cmd/fyne@latest + + - name: Package + run: make package_windows + + - name: Download mpv dll + run: > + wget https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/20250810/mpv-dev-aarch64-20250810-git-01b7edc.7z && + 7z x mpv-dev-aarch64-20250810-git-01b7edc.7z + + - name: Download smtc dll + run: > + wget https://github.com/supersonic-app/smtc-dll/releases/download/v0.1.2/SMTC_arm64.dll && + mv SMTC_arm64.dll SMTC.dll + + - name: Generate zip bundle + run: zip Supersonic-windows.zip Supersonic.exe libmpv-2.dll SMTC.dll + + - name: Generate installer + uses: Minionguyjpro/Inno-Setup-Action@v1.2.2 + with: + path: win_inno_installscript.iss + + - name: Upload zip + uses: actions/upload-artifact@v4 + with: + name: Supersonic_windows_x64.zip + path: Supersonic-windows.zip + + - name: Upload installer + uses: actions/upload-artifact@v4 + with: + name: Supersonic_windows_x64_installer.exe + path: Output/supersonic-installer.exe From 39ca8eacd96e6e38f9a28895586f8a5415ebc6c6 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Fri, 15 Aug 2025 15:32:11 -0700 Subject: [PATCH 2/4] use msystem CLANGARM64 --- .github/workflows/build-windows-arm64.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-windows-arm64.yml b/.github/workflows/build-windows-arm64.yml index fc285b59..1edbafa0 100644 --- a/.github/workflows/build-windows-arm64.yml +++ b/.github/workflows/build-windows-arm64.yml @@ -1,7 +1,7 @@ # This workflow will build a golang project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go -name: Build Windows +name: Build Windows ARM64 on: push: @@ -18,6 +18,7 @@ jobs: steps: - uses: msys2/setup-msys2@v2 with: + msystem: CLANGARM64 path-type: inherit update: true install: >- From df279764c823c80c402e00e2a29c302301c6bfd3 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Fri, 15 Aug 2025 15:38:40 -0700 Subject: [PATCH 3/4] change pacman packages to aarch64 versions --- .github/workflows/build-windows-arm64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-windows-arm64.yml b/.github/workflows/build-windows-arm64.yml index 1edbafa0..76682df4 100644 --- a/.github/workflows/build-windows-arm64.yml +++ b/.github/workflows/build-windows-arm64.yml @@ -36,7 +36,7 @@ jobs: - name: Install Dependencies run: > pacman -Syu && - pacman --noconfirm -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-mpv + pacman --noconfirm -S mingw-w64-clang-aarch64-toolchain mingw-w64-clang-aarch64-mpv - name: Install Fyne tool run: go install fyne.io/fyne/v2/cmd/fyne@latest From 77d0261c54aca61115f1cf71d3b4565b8aa95c6d Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Fri, 15 Aug 2025 18:31:59 -0700 Subject: [PATCH 4/4] set CC and CXX to clang for windows arm64 --- .github/workflows/build-windows-arm64.yml | 2 +- Makefile | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-windows-arm64.yml b/.github/workflows/build-windows-arm64.yml index 76682df4..48412f86 100644 --- a/.github/workflows/build-windows-arm64.yml +++ b/.github/workflows/build-windows-arm64.yml @@ -42,7 +42,7 @@ jobs: run: go install fyne.io/fyne/v2/cmd/fyne@latest - name: Package - run: make package_windows + run: make package_windows_arm64 - name: Download mpv dll run: > diff --git a/Makefile b/Makefile index b4cb9458..891b2532 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,9 @@ zip_macos: package_windows: fyne package -os windows -tags migrated_fynedo +package_windows_arm64: + CC=clang CXX=clang++ fyne package -os windows -tags migrated_fynedo + package_linux: fyne package -os linux -tags migrated_fynedo