From 6e3dc6b657f25b55d83827442c664e28f49eaddb Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Sat, 29 Nov 2025 13:27:15 +0400 Subject: [PATCH] build: copy donut-proxy into the binaries folder --- .github/workflows/release.yml | 10 ++++++++++ .github/workflows/rolling-release.yml | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b00cfef..3b87998 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -174,12 +174,22 @@ jobs: fi # Verify binary was copied ls -la src-tauri/binaries/donut-proxy-${{ matrix.target }}* + # Ensure binary exists and is executable + if [[ "${{ matrix.platform }}" == "windows-latest" ]]; then + test -f src-tauri/binaries/donut-proxy-${{ matrix.target }}.exe || exit 1 + else + test -f src-tauri/binaries/donut-proxy-${{ matrix.target }} || exit 1 + chmod +x src-tauri/binaries/donut-proxy-${{ matrix.target }} + fi # - name: Download Camoufox for testing # run: npx camoufox-js fetch # continue-on-error: true - name: Build frontend + env: + TARGET: ${{ matrix.target }} + PROFILE: release run: pnpm build - name: Build Tauri app diff --git a/.github/workflows/rolling-release.yml b/.github/workflows/rolling-release.yml index cc49c1e..30825c5 100644 --- a/.github/workflows/rolling-release.yml +++ b/.github/workflows/rolling-release.yml @@ -173,12 +173,22 @@ jobs: fi # Verify binary was copied ls -la src-tauri/binaries/donut-proxy-${{ matrix.target }}* + # Ensure binary exists and is executable + if [[ "${{ matrix.platform }}" == "windows-latest" ]]; then + test -f src-tauri/binaries/donut-proxy-${{ matrix.target }}.exe || exit 1 + else + test -f src-tauri/binaries/donut-proxy-${{ matrix.target }} || exit 1 + chmod +x src-tauri/binaries/donut-proxy-${{ matrix.target }} + fi # - name: Download Camoufox for testing # run: npx camoufox-js fetch # continue-on-error: true - name: Build frontend + env: + TARGET: ${{ matrix.target }} + PROFILE: release run: pnpm build - name: Generate nightly timestamp