Skip to content

Commit

Permalink
🤞 fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
TejasQ committed Mar 6, 2024
1 parent cb0f63c commit 8c51d3c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/tauri.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
target: x86_64-unknown-linux-gnu
bundle-path: ./src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/tauri-cn-github-action_0.0.0_amd64.deb
- platform: windows-latest
target: x86_64-pc-windows-gnu
target: x86_64-pc-windows-msvc
bundle-path: ./src-tauri/target/x86_64-pc-windows-gnu/release/bundle/msi/tauri-cn-github-action_0.0.0_amd64.msi

runs-on: ${{ matrix.platform }}
Expand All @@ -48,15 +48,14 @@ jobs:
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install dependencies (windows only)
run: rustup default stable-msvc
if: runner.os == 'Windows'
- name: Set Rust target
run: rustup target add ${{ matrix.target }}

- name: install frontend dependencies
run: |
rustup target add ${{ matrix.target }}
npm install
npm run tauri build -- -vv --target ${{ matrix.target }}
run: npm install

- name: build
run: npm run tauri build -- -vv --target ${{ matrix.target }}

- name: create draft release
uses: crabnebula-dev/cloud-release@dev
Expand Down

0 comments on commit 8c51d3c

Please sign in to comment.