Comments (13)
I tried this command clang -xc hello.c on a hello world code :
The error is happening after compilation when it tries to create the installer from your app binary. Can you share your tauri.conf.json file? Or at least your productName for now.
from tauri.
I am also having this issue with my SvelteKit application, trying to build for windows on Ubuntu:
tauri info
:
[Γ£ö] Environment
- OS: Ubuntu 22.4.0 X64
Γ£ö webkit2gtk-4.1: 2.44.2
Γ£ö rsvg2: 2.52.5
Γ£ö rustc: 1.78.0 (9b00956e5 2024-04-29)
Γ£ö cargo: 1.78.0 (54d8815d0 2024-03-26)
Γ£ö rustup: 1.27.1 (54dd3d00f 2024-04-24)
Γ£ö Rust toolchain: stable-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
- node: 20.14.0
- yarn: 1.22.19
- npm: 10.7.0
- bun: 1.0.23
[-] Packages
- tauri [RUST]: 2.0.0-beta.22
- tauri-build [RUST]: 2.0.0-beta.17
- wry [RUST]: 0.40.0
- tao [RUST]: 0.28.0
- tauri-cli [RUST]: 2.0.0-beta.20
- @tauri-apps/api [NPM]: 2.0.0-beta.13
- @tauri-apps/cli [NPM]: 2.0.0-beta.20
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../build
- devUrl: http://localhost:5173/
- framework: Svelte
- bundler: Vite
tauri.conf.json:
{
"build": {
"beforeBuildCommand": "bun run build",
"beforeDevCommand": "bun run dev",
"frontendDist": "../build",
"devUrl": "http://localhost:5173"
},
"bundle": {
"active": true,
"category": "DeveloperTool",
"copyright": "",
"targets": "all",
"externalBin": [],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
],
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": ""
},
"longDescription": "",
"macOS": {
"entitlements": null,
"exceptionDomain": "",
"frameworks": [],
"providerShortName": null,
"signingIdentity": null
},
"resources": [],
"shortDescription": "",
"linux": {
"deb": {
"depends": []
}
}
},
"productName": "Game Chronicle",
"version": "0.8.0",
"identifier": "com.gamechronicle.www",
"plugins": {
"updater": {
"endpoints": ["https://github.com/ItsCentric/game-chronicle/releases"],
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEM3OTUyQjJEMjA5Q0VFMzAKUldRdzdwd2dMU3VWeCswV21RQ1Vkd256TzhCN0l4STJ1M0d3Y1YwYzVYYnR1NVFaekxmS1RocGsK"
}
},
"app": {
"windows": [
{
"height": 600,
"resizable": true,
"title": "Game Chronicle",
"width": 800,
"minHeight": 600,
"minWidth": 800,
"label": "main"
},
{
"title": "Game Chronicle Updater",
"label": "updater",
"url": "/updater",
"height": 400,
"width": 600,
"resizable": false,
"decorations": false,
"hiddenTitle": true,
"center": true,
"visible": false
}
],
"security": {
"csp": null
}
}
}
from tauri.
Hmm, i downloaded your repo and can compile it fine 🤔 Can you rerun it with the -vvv
flag? Maybe it tells us a bit more.
from tauri.
Strange, shortly after running the tauri info
command it somehow fixed it even though I didn't change anything
from tauri.
Tnaks @FabianLars for your quick reply. Here is my tauri.conf.json
:
{
"build": {
"beforeBuildCommand": "pnpm run generate",
"beforeDevCommand": "pnpm run dev",
"devPath": "http://localhost:3000",
"distDir": "../.output/public"
},
"package": {
"productName": "MyProject-XR",
"version": "0.1.0"
},
"tauri": {
"allowlist": {
"all": false
},
"bundle": {
"active": true,
"category": "DeveloperTool",
"copyright": "",
"deb": {
"depends": []
},
"externalBin": [],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
],
"identifier": "com.MyProject",
"longDescription": "",
"macOS": {
"entitlements": null,
"exceptionDomain": "",
"frameworks": [],
"providerShortName": null,
"signingIdentity": null
},
"resources": [],
"shortDescription": "",
"targets": "all",
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": ""
}
},
"security": {
"csp": null
},
"updater": {
"active": false
},
"windows": [
{
"fullscreen": false,
"height": 600,
"resizable": true,
"title": "MyProject-XR Virtual",
"width": 800
}
]
}
}
from tauri.
@FabianLars don't you think it is because of this warning ?
@ItsCentric do you have the same warning ?
[email protected]: clang: warning: unknown argument ignored in clang-cl: '-xc'
from tauri.
No, this warning comes from compiling the rust part but the error where it fails is from the nsis installer bundler which happens way after. Also, this warning is "normal" (as in everyone should start seeing it now).
Can you remove the productName and test again? The productName caused issues in cross compiling before so maybe i missed something...
from tauri.
@FabianLars I deleted the key productName
in tauri.conf.json
. I got the same issue.
from tauri.
Whow ! But I have an .exe ! I will test it.
from tauri.
IT WORKS !
from tauri.
Well, the exe should have been there the whole time (if you mean the one in target/release/ not in bundle/nsis/).
That's the rust app the cl warning came from. It can be enough for usecase but for many it isn't as it doesn't support all of Tauris features and won't make sure the webview is installed (not a problem on win11).
from tauri.
I'll see if I can reproduce the error on my end today
from tauri.
Ah, i see. The No such file
error was already fixed on the 1.x branch and will be part of the next release.
You can use it via cargo install tauri-cli --git https://github.com/tauri-apps/tauri --branch 1.x
before that.
from tauri.
Related Issues (20)
- [bug] `cargo tauri dev` not working with `tray-icon` field in `tauri.conf.json` HOT 4
- [bug][v2][only MacOS] no method named `transparent` found for struct `WebviewWindowBuilder` in the current scope HOT 3
- [bug] proxy_url or with_proxy_config not working on windows 11
- [bug] backdrop blur not working when enable window transparent.
- [bug][v2][macos] Can't build Android - vanilla install HOT 1
- [bug] bun create tauri app with invalid folder name HOT 1
- [bug] resource_dir_from() function, used for looking up resource files - not yet implemted for IOS?
- Windows application shortcut abnormality. HOT 4
- [bug] failing to run tauri2 with app extension on the iOS Simulator HOT 3
- [feat]: Reduce boilerplate for command definitions in Tauri v2
- [feat] Generate metainfo for deb file HOT 3
- [bug] tauri.shell.open does not working on differtent linux distribution than building platform with appimage build
- [feat] [v2] How to create a child web view
- [feat] `path.relative` API method HOT 1
- [bug] `plugin` command failing for mobile plugins HOT 1
- [bug] `--target` option in `tauri ios build` doesn't accept target triples
- [bug]
- println don't show in the terminal and how to turn off the ios info(too much) . HOT 2
- [bug] Android apk crash at startup caused by `WryActivity` can't find `create()`
- [bug] nsis deep link doesn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tauri.