Open nocke opened 1 year ago
I have the same issue on WIN11, any progress with this?
@szgerg Can you post the full error you're getting? And if you're talking about an actual win11 "client" and not a server/ci the output of the tauri info
command too please.
Also, the only similar issue i found was this: https://github.com/wravery/webview2-rs/issues/7#issuecomment-1071100283, and it even mentioned choco so can you make sure rustfmt is installed too (i don't know anything about choco so no idea how that will look like)
The windows orb in circleci does not seem to persist paths between run commands. I tried literally everything and cannot seem to get cargo into the path. Anyway, we inlined it.
Choco appears to be missing rustfmt
required for the webview library downstream. If you install rustup without yeeting it, then it will just go back to using cargo with choco and die compiling.
After a lot of trial and error, we got this setup working on circleci:
jobs:
build-windows:
executor:
name: win/default
shell: bash.exe
steps:
- checkout
- run: choco uninstall rust
- run: curl https://win.rustup.rs/x86_64 -o rustup-init.exe
- run: ./rustup-init.exe -y --default-toolchain 1.68.2-x86_64-pc-windows-msvc # CONFIGURE ME
- run: nvm install 18.16.0 && nvm use 18.16.0
- restore_cache:
key: v1-dependencies-windows-{{ checksum "package-lock.json" }}
- run:
name: "[Windows] Run NPM"
command: npm install
- save_cache:
key: v1-dependencies-windows-{{ checksum "package-lock.json" }}
paths:
- "node_modules"
- restore_cache:
key: v1-dependencies-windows-{{ checksum "src-tauri/Cargo.lock" }}
- run:
shell: powershell
name: "[Windows] Build Windows Version"
command: |
$env:Path += ";C:\Users\circleci\.cargo\bin\"
$env:CARGO_NET_GIT_FETCH_WITH_CLI = "true"
npm run tauri:build:windows
- save_cache:
key: v1-dependencies-windows-{{ checksum "src-tauri/Cargo.lock" }}
paths:
- "~/.cargo"
I have a fresh tauri 1.3.0 project, using Node 20, rust 1.69.0 and Svelte 3.59 and I am trying to achieve a tripple build using circle.ci:
Linux and MacOS work nice, but Windows has a problem with the webview2 dependency:
What do I need to fix?
All starting nicely:
...more Downloading and Compilation without any warnings or errors, but then...
This is my
.circleci/config.yml
:( and yes, I got a checksum error, until I ignored it. And I also tried the comment out approach for installing webview)