New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tauri build cli.js fails with empty error #3062
Comments
it was caused by corrupted |
I have the same problems, I use I have checked the icns on a macos, there are 10 icons in this icns and it seemed no problem. I tried to remove the icns and tried again. Then the following errors shown. liudonghua@DESKTOP-DELL:/mnt/d/code/rust/hoppscotch-app$ yarn tauri build -t x86_64-unknown-linux-gnu --verbose
yarn run v1.22.17
$ tauri build -t x86_64-unknown-linux-gnu --verbose
app:spawn Running "/mnt/d/code/rust/hoppscotch-app/node_modules/@tauri-apps/cli/bin/tauri-cli tauri build -t x86_64-unknown-linux-gnu --verbose" +0ms
Compiling app v0.1.0 (/mnt/d/code/rust/hoppscotch-app/src-tauri)
Finished release [optimized] target(s) in 3m 48s
Bundling hoppscotch-app_2.1.0_amd64.deb
Error: failed to bundle project
Caused by:
0: Failed to build data folders and files
1: Failed to build data folders and files
2: Failed to create icon files
3: Failed to create icon files
4: `Path matching 'icons/icon.icns' not found`
app:spawn Command "/mnt/d/code/rust/hoppscotch-app/node_modules/@tauri-apps/cli/bin/tauri-cli" failed with exit code: 1 +0ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
liudonghua@DESKTOP-DELL:/mnt/d/code/rust/hoppscotch-app$ And When I just replaced |
I am not sure, why this is close,d but this is still a problem... when building icons with tauricon I get this error message:
more info:
|
Same issue
|
I'm having the same issue as part of a GitHub workflow:
Tried deleting the icons and re-packaging them, but it didn't help. |
Fixed this by adding a {
"tauri": {
"bundle": {
"identifier": "com.daniel-knights.note-boi",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.ico"
]
}
}
} No idea if this is the right approach, though. |
Can you share the icon you're using @Daniel-Knights ? I'd like to fix this issue. |
Sure thing @lucasfernog, it's this one. |
I have the same issue a few months ago. It seemed that the icns is generated using nodejs, but used in rust, maybe this will have some incompatible issues in these processes. |
Tauricon has been updated, it'll generate a ICNS that can be used in the debian bundle now. |
Really appreciate the quick response @lucasfernog, but I think there's a problem with the latest release. I've opened an issue for it here |
tauri-apps#4009) * fix(bundler): debian failing to load icns icon, closes tauri-apps#3062 * fix change file
This issue is still not been fixed error:
|
@adelynx That looks like a completely different issue, it sounds like you still have |
Describe the bug
The build command
yarn tauri:build
fails while bundling files after successful compilation.I tracked it down to line
tauri/tooling/cli.js/src/helpers/rust-cli.ts
Line 31 in c4bb305
which throws empty error when a shell spawn command returns none zero exit code..
yarn tauri:build --verbose
doesnt print any more information..Expected behavior
The error should say something as it currently dooesnt say anything and I dont know whats going on.
Platform and Versions (required):
Additional context
Add any other context about the problem here.
Stack Trace
The text was updated successfully, but these errors were encountered: