Replies: 2 comments 2 replies
-
用普通权限运行打包命令,不会提示重新安装rust,提示信息如下: You have not provided an app icon, use the default icon.(use --icon option to assign an icon) [Error: EACCES: permission denied, open '/usr/local/lib/node_modules/pake-cli/src-tauri/tauri.linux.conf.json'] { Node.js v18.12.1 |
Beta Was this translation helpful? Give feedback.
-
感谢! 果然是权限的问题 |
Beta Was this translation helpful? Give feedback.
-
u22-198:~/pake/Pake$ sudo pake https://weekly.tw93.fun --name Weekly --transparent
To build the Linux app, you need to install Rust and Linux package
See more in https://tauri.app/v1/guides/getting-started/prerequisites#installing
✔ We detected that you have not installed Rust. Install it now? … yes
⠦ Downloading Rustinfo: downloading installer
⠸ Downloading Rustinfo: profile set to 'default'
info: default host triple is x86_64-unknown-linux-gnu
warning: Updating existing toolchain, profile choice will be ignored
⠼ Downloading Rustinfo: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
⠹ Downloading Rustinfo: default toolchain set to 'stable-x86_64-unknown-linux-gnu'
stable-x86_64-unknown-linux-gnu unchanged - rustc 1.65.0 (897e37553 2022-11-02)
Rust is installed now. Great!
To get started you may need to restart your current shell.
This would reload your PATH environment variable to include
Cargo's bin directory ($HOME/.cargo/bin).
To configure your current shell, run:
source "$HOME/.cargo/env"
✔ Downloading Rust
You have not provided an app icon, use the default icon.(use --icon option to assign an icon)
npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
added 81 packages, and audited 235 packages in 21s
76 packages are looking for funding
run
npm fund
for detailsfound 0 vulnerabilities
thread '' panicked at 'called
Result::unwrap()
on anErr
value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/interface/rust.rs:762:69note: run with
RUST_BACKTRACE=1
environment variable to display a backtracenode:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: ENOENT: no such file or directory, copyfile '/usr/local/lib/node_modules/pake-cli/src-tauri/target/release/bundle/deb/Weekly_1.0.0_amd64.deb' -> '/home/mj/pake/Pake/Weekly.deb'] {
errno: -2,
code: 'ENOENT',
syscall: 'copyfile',
path: '/usr/local/lib/node_modules/pake-cli/src-tauri/target/release/bundle/deb/Weekly_1.0.0_amd64.deb',
dest: '/home/mj/pake/Pake/Weekly.deb'
}
Node.js v18.12.1
Beta Was this translation helpful? Give feedback.
All reactions