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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pake-cli",
3
- "version": "0.0.1",
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",
@@ -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 icon_path = concat!(env!("CARGO_MANIFEST_DIR"), "/png/weread_32.ico");
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
@@ -52,7 +52,7 @@
52
52
  "providerShortName": null,
53
53
  "signingIdentity": null
54
54
  },
55
- "resources": [],
55
+ "resources": ["png/weread_32.ico"],
56
56
  "shortDescription": "",
57
57
  "targets": ["deb", "msi", "dmg"],
58
58
  "windows": {