diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 410cdf1..010c605 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,10 +56,6 @@ jobs: - name: Install Tauri run: cargo install tauri-cli --locked --version ${{ env.TAURI_CLI_VERSION }} - - name: Windows CMD workaround - run: trunk build --release --dist "./../src-tauri/websrc" - if: runner.os == 'Windows' - working-directory: "${{ env.SOURCE_PATH }}/cube_shuffle-wasm" - name: Tauri Build run: cargo tauri build ${{ runner.os == 'macOS' && '--target universal-apple-darwin' || '' }} || true working-directory: "${{ env.SOURCE_PATH }}/src-tauri" diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json index 83c60d7..c76b11a 100644 --- a/src-tauri/tauri.windows.conf.json +++ b/src-tauri/tauri.windows.conf.json @@ -1,5 +1,5 @@ { "build": { - "beforeBuildCommand": "echo https://github.com/tauri-apps/tauri/pull/3334" + "beforeBuildCommand": "rmdir \"src-tauri\\websrc\" /s /q && mkdir \"src-tauri\\websrc\" && cd \"cube_shuffle-wasm\" && trunk build --release --dist \".\\..\\src-tauri\\websrc\"" } } \ No newline at end of file