-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
Description
Describe the bug
The build seems to fail. However, I look into the src-tauri\target\release directory, and an app.exe file is there. I ran it and it works perfectly.
C:\Users\villarrealA\Documents\Software\frontend>dir src-tauri\target\release
Volume in drive C is Windows
Volume Serial Number is xxx
Directory of C:\Users\villarrealA\Documents\Software\frontend\src-tauri\target\release
28/06/2021 11:58 <DIR> .
28/06/2021 11:58 <DIR> ..
28/06/2021 11:41 0 .cargo-lock
28/06/2021 11:41 <DIR> .fingerprint
28/06/2021 11:58 4,975 app.d
28/06/2021 12:11 6,685,184 app.exe
28/06/2021 12:11 4,526,080 app.pdb
28/06/2021 11:41 <DIR> build
28/06/2021 12:11 <DIR> deps
28/06/2021 11:41 <DIR> examples
28/06/2021 11:41 <DIR> incremental
4 File(s) 11,216,239 bytes
7 Dir(s) 319,075,692,544 bytes free
To Reproduce
Steps to reproduce the behavior:
Run npm run tauri build
C:\Users\villarrealA\Documents\Software\frontend>npm run tauri build
> @xxx/frontend@1.28.2 tauri
> tauri "build"
app:spawn Running "C:\Users\villarrealA\Documents\Software\frontend\node_modules\@tauri-apps\cli\bin\tauri-cli.exe tauri build" +0ms
Compiling app v0.1.0 (C:\Users\villarrealA\Documents\Software\frontend\src-tauri)
Finished release [optimized] target(s) in 26.32s
Error: The system cannot find the path specified. (os error 3)
app:spawn Command "C:\Users\villarrealA\Documents\Software\frontend\node_modules\@tauri-apps\cli\bin\tauri-cli.exe" failed with exit code: 1 +1ms
Expected behavior
I expected the build to have an exit code 0, with no errors in the output.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform and Versions (required):
Operating System - Windows, version 10.0.19041 X64
Webview2 - 91.0.864.59
Node.js environment
Node.js - 16.4.0
@tauri-apps/cli - 1.0.0-beta.3
@tauri-apps/api - 1.0.0-beta.3
Global packages
npm - 7.18.1
yarn - Not installed
Rust environment
rustc - 1.53.0
cargo - 1.53.0
App directory structure
/.git
/build
/ci
/config
/docs
/lib
/localization
/node_modules
/src
/src-tauri
/test
App
tauri.rs - 1.0.0-beta.2
build-type - bundle
CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
distDir - ../build
devPath - http://localhost:8080
framework - React
bundler - Webpack
Additional context
Using the same repo and setup I also built this on WSL (v1). It works perfectly there.
npm run tauri build
> @xxx/frontend@1.28.2 tauri
> tauri "build"
app:spawn Running "/home/avi/Projects/frontend/node_modules/@tauri-apps/cli/bin/tauri-cli tauri build" +0ms
Compiling app v0.1.0 (/home/avi/Projects/frontend/src-tauri)
Finished release [optimized] target(s) in 28.50s
Bundling xxx-frontend_0.1.0_amd64.deb
Bundling xxx-frontend_0.1.0_amd64.AppImage
Finished 2 bundles at:
/home/avi/Projects/frontend/src-tauri/target/release/bundle/deb/xxx-frontend_0.1.0_amd64.deb
/home/avi/Projects/frontend/src-tauri/target/release/bundle/appimage/xxx-frontend_0.1.0_amd64.AppImage
Stack Trace
Reactions are currently unavailable