Pake
Pake copied to clipboard
Mac下 pake命令失败
flashcat@192 ~ % node -v v16.15.0 flashcat@192 ~ % npm -v 8.5.5 flashcat@192 ~ %
复现步骤: sudo npm install -g pake-cli sudo pake demo.flashcat.cloud --name Flashcat
pake https://demo.flashcat.cloud --name Flashcat 试试这样

看错误,你这个环境有问题,执行一下试试
此外 @wanghanzhen 可以将这个考虑放进去
看错误,你这个环境有问题,执行一下试试
此外 @wanghanzhen 可以将这个考虑放进去
@tw93 加上也是同样的报错。
跟我这个电脑是m1芯片有关系吗?
跟我这个电脑是m1芯片有关系吗?
我的是 Intel 芯片。
跟我这个电脑是m1芯片有关系吗?
你是m1,需要先执行一下 rustup target add x86_64-apple-darwin
,再使用试试看呢,用permission错误的话加上sudo试试。
跟我这个电脑是m1芯片有关系吗?
我的是 Intel 芯片。
加上sudo试试看
跟我这个电脑是m1芯片有关系吗?
我的是 Intel 芯片。
加上sudo试试看
@wanghanzhen 试过了,很多错误日志
378 | | .map
379 | | .serialize_value(&Content::TupleStruct(self.name, self.fields)));
| |________________________________________________________________________________- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/lib.rs:260:13
|
260 | Err(err) => return Err(err),
| ^^^ not found in this scope
|
::: /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/private/ser.rs:377:13
|
377 | / try!(self
378 | | .map
379 | | .serialize_value(&Content::TupleStruct(self.name, self.fields)));
| |________________________________________________________________________________- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/lib.rs:260:32
|
260 | Err(err) => return Err(err),
| ^^^ help: a local variable with a similar name exists: `err`
|
::: /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/private/ser.rs:377:13
|
377 | / try!(self
378 | | .map
379 | | .serialize_value(&Content::TupleStruct(self.name, self.fields)));
| |________________________________________________________________________________- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0405]: cannot find trait `Sized` in this scope
--> /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/private/ser.rs:407:32
|
407 | fn serialize_field<T: ?Sized>(
| ^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/lib.rs:259:13
|
259 | Ok(val) => val,
| ^^ not found in this scope
|
::: /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/private/ser.rs:415:25
|
415 | let value = try!(value.serialize(ContentSerializer::<M::Error>::new()));
| ----------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/lib.rs:260:13
|
260 | Err(err) => return Err(err),
| ^^^ not found in this scope
|
::: /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/private/ser.rs:415:25
|
415 | let value = try!(value.serialize(ContentSerializer::<M::Error>::new()));
| ----------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/lib.rs:260:32
|
260 | Err(err) => return Err(err),
| ^^^ help: a local variable with a similar name exists: `err`
|
::: /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/private/ser.rs:415:25
|
415 | let value = try!(value.serialize(ContentSerializer::<M::Error>::new()));
| ----------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
--> /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/private/ser.rs:417:13
|
417 | Ok(())
| ^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/lib.rs:259:13
|
259 | Ok(val) => val,
| ^^ not found in this scope
|
::: /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/private/ser.rs:421:13
|
421 | / try!(self
422 | | .map
423 | | .serialize_value(&Content::Struct(self.name, self.fields)));
| |___________________________________________________________________________- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/lib.rs:260:13
|
260 | Err(err) => return Err(err),
| ^^^ not found in this scope
|
::: /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/private/ser.rs:421:13
|
421 | / try!(self
422 | | .map
423 | | .serialize_value(&Content::Struct(self.name, self.fields)));
| |___________________________________________________________________________- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/lib.rs:260:32
|
260 | Err(err) => return Err(err),
| ^^^ help: a local variable with a similar name exists: `err`
|
::: /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/private/ser.rs:421:13
|
421 | / try!(self
422 | | .map
423 | | .serialize_value(&Content::Struct(self.name, self.fields)));
| |___________________________________________________________________________- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/lib.rs:259:13
|
259 | Ok(val) => val,
| ^^ not found in this scope
|
::: /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/private/ser.rs:503:37
|
503 | let mut tuple = try!(serializer.serialize_tuple(elements.len()));
| ------------------------------------------------ in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/lib.rs:260:13
|
260 | Err(err) => return Err(err),
| ^^^ not found in this scope
|
::: /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/private/ser.rs:503:37
|
503 | let mut tuple = try!(serializer.serialize_tuple(elements.len()));
| ------------------------------------------------ in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/lib.rs:260:32
|
260 | Err(err) => return Err(err),
| ^^^ help: a local variable with a similar name exists: `err`
|
::: /Users/eason.qin/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/private/ser.rs:503:37
|
503 | let mut tuple = try!(serializer.serialize_tuple(elements.len()));
| ------------------------------------------------ in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
@qinf 方便的话提供一下rust的版本和打包输出的日志文件
跟我这个电脑是m1芯片有关系吗?
你是m1,需要先执行一下
rustup target add x86_64-apple-darwin
,再使用试试看呢,用permission错误的话加上sudo试试。
感谢回复,加上后,可以sudo pake https://demo.flashcat.cloud --name Flashcat
打包成功,只不过app打开后白屏。
https://demo.flashcat.cloud
这个网站证书貌似不太对劲,导致curl/wget无法解析,你可以换一个网站试试。
https://demo.flashcat.cloud
这个网站证书貌似不太对劲,导致curl/wget无法解析,你可以换一个网站试试。
http的可以不?curl https://demo.flashcat.cloud
确实不行,但是把协议改错http的可以打开?我打包后还是白屏,是http的不能用?
http的我试了可以打开的。 我用的windows,然后直接拿它的ip地址所在跳转后的结果进行打包。 打包命令如下:
pake http://119.45.249.92/login --icon=baidu_256.ico
建议你可以准备一个icns图标,然后用--cons改成你的图标名称。
效果如下:
http的我试了可以打开的。 我用的windows,然后直接拿它的ip地址所在跳转后的结果进行打包。 打包命令如下:
pake http://119.45.249.92/login --icon=baidu_256.ico
建议你可以准备一个icns图标,然后用--cons改成你的图标名称。
效果如下:
我也用了你这pake http://119.45.249.92/login
可以打包成功,但是还是打开白屏。我不知跟我mac m1 是不是有关。 你能帮忙把你打包出来的发我email([email protected])我试试 是不是打包成功了,但是打不开,还是打包的就失败了。(纯属兴趣哈,如果不方便就算了)
http的我试了可以打开的。 我用的windows,然后直接拿它的ip地址所在跳转后的结果进行打包。 打包命令如下:
pake http://119.45.249.92/login --icon=baidu_256.ico
建议你可以准备一个icns图标,然后用--cons改成你的图标名称。 效果如下:
我也用了你这
pake http://119.45.249.92/login
可以打包成功,但是还是打开白屏。我不知跟我mac m1 是不是有关。 你能帮忙把你打包出来的发我email([email protected])我试试 是不是打包成功了,但是打不开,还是打包的就失败了。(纯属兴趣哈,如果不方便就算了) 我是windows哈。@tw93 你可以帮他打包一个试试。
rustup target add x86_64-apple-darwin
sudo rustup target add x86_64-apple-darwin
M1 芯片下确实可以的
https://demo.flashcat.cloud
http的我试了可以打开的。 我用的windows,然后直接拿它的ip地址所在跳转后的结果进行打包。 打包命令如下:
pake http://119.45.249.92/login --icon=baidu_256.ico
建议你可以准备一个icns图标,然后用--cons改成你的图标名称。 效果如下:
我也用了你这
pake http://119.45.249.92/login
可以打包成功,但是还是打开白屏。我不知跟我mac m1 是不是有关。 你能帮忙把你打包出来的发我email([email protected])我试试 是不是打包成功了,但是打不开,还是打包的就失败了。(纯属兴趣哈,如果不方便就算了)
用MAC mini intel版试了一下,确实白屏。 Debug看了一下,还是网站的问题,首先域名https证书是有问题的,去掉https后,tauri 提示react语法有问题,导致网站无法打开。 总的来说,网站兼容性不太行,只不过浏览器可以允许这种错误,而tauri不允许,所以就没办法了,换个网站吧。