pake-cli 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ecrc.json +1 -1
- package/.vscode/settings.json +3 -7
- package/README.md +22 -2
- package/README_EN.md +1 -1
- package/bin/README.md +1 -1
- package/bin/builders/MacBuilder.ts +1 -1
- package/bin/options/icon.ts +13 -19
- package/bin/utils/shell.ts +8 -8
- package/bin/utils/tlds.ts +1486 -1486
- package/package.json +3 -2
- package/src-tauri/src/main.rs +1 -3
- package/src-tauri/tauri.conf.json +1 -1
- package/dist/cli.js +0 -1918
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pake-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "用 Rust 来打包你的 App,底层使用 Tauri,当前支持微信读书、Flomo、Vercel",
|
|
5
5
|
"bin": {
|
|
6
6
|
"pake": "./cli.js"
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"build:linux": "npm run tauri build --release",
|
|
23
23
|
"tauri": "tauri",
|
|
24
24
|
"cli": "rollup -c rollup.config.js --watch",
|
|
25
|
-
"cli:build": "rollup -c rollup.config.js"
|
|
25
|
+
"cli:build": "rollup -c rollup.config.js",
|
|
26
|
+
"cli:publish": "npm run cli:build && npm publish"
|
|
26
27
|
},
|
|
27
28
|
"type": "module",
|
|
28
29
|
"exports": "./dist/pake.js",
|
package/src-tauri/src/main.rs
CHANGED
|
@@ -118,9 +118,7 @@ fn main() -> wry::Result<()> {
|
|
|
118
118
|
})
|
|
119
119
|
.with_inner_size(wry::application::dpi::LogicalSize::new(width, height));
|
|
120
120
|
#[cfg(target_os = "windows")]
|
|
121
|
-
let
|
|
122
|
-
#[cfg(target_os = "windows")]
|
|
123
|
-
let icon = load_icon(std::path::Path::new(icon_path));
|
|
121
|
+
let icon = load_icon(std::path::Path::new("png/weread_32.ico"));
|
|
124
122
|
|
|
125
123
|
#[cfg(target_os = "windows")]
|
|
126
124
|
let window = common_window
|