-
Is there some example / template with solved in reply #11256 (reply in thread) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Caution
|
Beta Was this translation helpful? Give feedback.
-
@lukasMega I'm was researching how to craft a GitLab CI for a Windows build and came across this thread. Here is my solution for a GitLab CI YML, maybe it'll help you on your cargo issues. build windows installer:
image: ivangabriele/tauri:debian-bookworm-20
stage: build
environment: staging
before_script:
- cd app # wherever your source is
- apt-get -y install nsis # This was needed to resolve a packaging issue
- apt-get -y install clang # Had to add to resolve a dialog issue on launch
- apt-get -y install lld llvm
- rustup target add x86_64-pc-windows-msvc # Install the 64-bit target
- cargo install --locked --quiet cargo-xwin # Install cargo-xwin
- yarn install --frozen-lockfile # Install app dependencies
script:
- yarn build-windows # Build for Windows 64-bit target
# This is a shortcut command in my package.json that does the following:
# tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc This gets you a Windows x64 installer EXE at this location:
I did use a specific image that I found that contains a lot of the pre-built libraries to help streamline this build process. Maybe toggling over to that image might help your build issues. I hope that helps. |
Beta Was this translation helpful? Give feedback.
-
I have tried 3 different docker images for building Tauri helloworld sample app:
1.
|
Beta Was this translation helpful? Give feedback.
after 5 days, I tried change
npm
toyarn
and it helped. First successful build: https://gitlab.com/lukasMega/tauri-sample-v2/-/jobs/8070254109 🎉I have used nearly the same code as @nakedgremlin provided above #11256 (comment)
the code working