-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Describe the bug
The build command yarn tauri:build fails while bundling files after successful compilation.
I tracked it down to line
| rejectCb = () => reject(new Error()) |
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):
Operating System - Arch Linux, version Unknown X64
Node.js environment
Node.js - 16.13.1
@tauri-apps/cli - 1.0.0-beta.6
@tauri-apps/api - 1.0.0-beta.8
Global packages
npm - 8.1.2
yarn - 1.22.17
Rust environment
rustc - 1.53.0
cargo - 1.53.0
App directory structure
/src
/dist
/bdscli
/public
/.git
/bds
/node_modules
/src-tauri
App
tauri.rs - 1.0.0-beta.8
build-type - bundle
CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
distDir - Set automatically by Vue CLI plugin
devPath - Set automatically by Vue CLI plugin
framework - Vue.js (Vue CLI)
bundler - Webpack
Additional context
Add any other context about the problem here.
Stack Trace
DONE Build complete. The src-tauri/target/webpack_dist directory is ready to be deployed.
INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.htmlapp:spawn Running "node_modules/@tauri-apps/cli/bin/tauri-cli tauri build --config {"build":{"distDir":"./target/webpack_dist"}} --verbose" +0ms
Compiling app v0.1.0 (/path/to/app)
Finished release [optimized] target(s) in 52.71s
Bundling bdsgui_0.4.0_amd64.deb
Error: failed to bundle projectCaused 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:invalid RLE-compressed data
5: invalid RLE-compressed dataapp:spawn Command "node_modules/@tauri-apps/cli/bin/tauri-cli" failed with exit code: 1 +0ms
Error
at d (node_modules/@tauri-apps/cli/dist/api/cli.js:1:9522)
at v (node_modules/@tauri-apps/cli/dist/api/cli.js:1:9563)
at ChildProcess. (node_modules/@tauri-apps/cli/dist/api/cli.js:1:10706)
at ChildProcess.emit (node:events:390:28)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.