Skip to content

How to cross-compile in GitLab CI? yarn✅ but npm❗err: unexpected argument 'cargo-xwin' found / cargo-xwin command not found #11256

Answered by lukasMega
lukasMega asked this question in Q&A
Discussion options

You must be logged in to vote

after 5 days, I tried change npm to yarn 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
###
### example by @nakedgremlin (https://github.com/tauri-apps/tauri/discussions/11256#discussioncomment-10909210)
###  ♦️ yarn is used instead of npm
###
build windows installer:
  image: ivangabriele/tauri:debian-bookworm-20
  stage: build
  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 …

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@lukasMega
Comment options

Comment options

You must be logged in to vote
4 replies
@nakedgremlin
Comment options

@lukasMega
Comment options

@lukasMega
Comment options

@lukasMega
Comment options

Comment options

You must be logged in to vote
3 replies
@lukasMega
Comment options

Answer selected by lukasMega
@FabianLars
Comment options

@lukasMega
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants