Pake支持命令行操作 #45
wanghanzhen
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
|
赞赞赞 此外需要考虑下沉浸式头的适配,需要用户注入css,或者是先默认不用沉浸式头,或者我们想办法通用兼容沉浸式头就更好了 identifier 这种变量直接取title 或者title中文转拼音 或者没有的话用随机字母生成即可 用macosicon这个很赞 不知道他有没有 或者提示用户去那里下载 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
此外可以试试 npx 这样都不需要先安装再使用的动作 更友好些 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
安装
如果安装失败提示没有权限,请使用
sudo运行。用法
打包需要用
Rust环境,如果没有Rust,会提示确认安装。打包完成后的应用程序默认为当前工作目录。
url
url 为你需要打包的网页,必须提供。
[options]
提供了一些特定的选项,打包时可以传递对应参数达到定制化的效果。
[name]
应用名称
[icon]
应用icon,MacOS下必须为
.icns和.png文件[height]
打包后的应用窗口高度,默认
800px。[width]
打包后的应用窗口宽度,默认
1280px。[transparent]
是否开启沉浸式头部,默认为
false不开启。[resize]
是否可以拖动大小,默认为
true可拖动。[fullscreen]
是否可以全屏,默认为
true可全屏。注:有些参数比如
icon、title啥的应该是可以抓取 html 结构来当默认值的。identifier和productName默认值怎么取比较好?Beta Was this translation helpful? Give feedback.
All reactions