pake-cli 3.5.3 → 3.6.0

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/README.md CHANGED
@@ -137,20 +137,23 @@
137
137
 
138
138
  <br/>
139
139
 
140
- | Mac | Windows/Linux | Function |
141
- | --------------------------- | ------------------------------ | ----------------------------- |
142
- | <kbd>⌘</kbd> + <kbd>[</kbd> | <kbd>Ctrl</kbd> + <kbd>←</kbd> | Return to the previous page |
143
- | <kbd>⌘</kbd> + <kbd>]</kbd> | <kbd>Ctrl</kbd> + <kbd>→</kbd> | Go to the next page |
144
- | <kbd>⌘</kbd> + <kbd>↑</kbd> | <kbd>Ctrl</kbd> + <kbd>↑</kbd> | Auto scroll to top of page |
145
- | <kbd>⌘</kbd> + <kbd>↓</kbd> | <kbd>Ctrl</kbd> + <kbd>↓</kbd> | Auto scroll to bottom of page |
146
- | <kbd>⌘</kbd> + <kbd>r</kbd> | <kbd>Ctrl</kbd> + <kbd>r</kbd> | Refresh Page |
147
- | <kbd>⌘</kbd> + <kbd>w</kbd> | <kbd>Ctrl</kbd> + <kbd>w</kbd> | Hide window, not quit |
148
- | <kbd>⌘</kbd> + <kbd>-</kbd> | <kbd>Ctrl</kbd> + <kbd>-</kbd> | Zoom out the page |
149
- | <kbd>⌘</kbd> + <kbd>+</kbd> | <kbd>Ctrl</kbd> + <kbd>+</kbd> | Zoom in the page |
150
- | <kbd>⌘</kbd> + <kbd>=</kbd> | <kbd>Ctrl</kbd> + <kbd>=</kbd> | Zoom in the Page |
151
- | <kbd>⌘</kbd> + <kbd>0</kbd> | <kbd>Ctrl</kbd> + <kbd>0</kbd> | Reset the page zoom |
152
-
153
- In addition, double-click the title bar to switch to full-screen mode. For Mac users, you can also use the gesture to go to the previous or next page and drag the title bar to move the window.
140
+ | Mac | Windows/Linux | Function |
141
+ | ------------------------------------------ | --------------------------------------------------- | ----------------------------------- |
142
+ | <kbd>⌘</kbd> + <kbd>[</kbd> | <kbd>Ctrl</kbd> + <kbd>←</kbd> | Return to the previous page |
143
+ | <kbd>⌘</kbd> + <kbd>]</kbd> | <kbd>Ctrl</kbd> + <kbd>→</kbd> | Go to the next page |
144
+ | <kbd>⌘</kbd> + <kbd>↑</kbd> | <kbd>Ctrl</kbd> + <kbd>↑</kbd> | Auto scroll to top of page |
145
+ | <kbd>⌘</kbd> + <kbd>↓</kbd> | <kbd>Ctrl</kbd> + <kbd>↓</kbd> | Auto scroll to bottom of page |
146
+ | <kbd>⌘</kbd> + <kbd>r</kbd> | <kbd>Ctrl</kbd> + <kbd>r</kbd> | Refresh Page |
147
+ | <kbd>⌘</kbd> + <kbd>w</kbd> | <kbd>Ctrl</kbd> + <kbd>w</kbd> | Hide window, not quit |
148
+ | <kbd>⌘</kbd> + <kbd>-</kbd> | <kbd>Ctrl</kbd> + <kbd>-</kbd> | Zoom out the page |
149
+ | <kbd>⌘</kbd> + <kbd>=</kbd> | <kbd>Ctrl</kbd> + <kbd>=</kbd> | Zoom in the Page |
150
+ | <kbd>⌘</kbd> + <kbd>0</kbd> | <kbd>Ctrl</kbd> + <kbd>0</kbd> | Reset the page zoom |
151
+ | <kbd>⌘</kbd> + <kbd>L</kbd> | <kbd>Ctrl</kbd> + <kbd>L</kbd> | Copy Current Page URL |
152
+ | <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>H</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>H</kbd> | Go to Home Page |
153
+ | <kbd>⌘</kbd> + <kbd>⌥</kbd> + <kbd>I</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>I</kbd> | Toggle Developer Tools (Debug Only) |
154
+ | <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>⌫</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Del</kbd> | Clear Cache & Restart |
155
+
156
+ In addition, double-click the title bar to switch to full-screen mode. For Mac users, you can also use the gesture to go to the previous or next page and drag the title bar to move the window. The new menu also offers options for navigation, zoom, and window controls.
154
157
 
155
158
  </details>
156
159
 
package/dist/cli.js CHANGED
@@ -23,7 +23,7 @@ import sharp from 'sharp';
23
23
  import * as psl from 'psl';
24
24
 
25
25
  var name = "pake-cli";
26
- var version = "3.5.3";
26
+ var version = "3.6.0";
27
27
  var description = "🤱🏻 Turn any webpage into a desktop app with one command. 🤱🏻 一键打包网页生成轻量桌面应用。";
28
28
  var engines = {
29
29
  node: ">=18.0.0"
@@ -396,12 +396,16 @@ function checkRustInstalled() {
396
396
 
397
397
  async function combineFiles(files, output) {
398
398
  const contents = files.map((file) => {
399
- const fileContent = fs.readFileSync(file);
400
399
  if (file.endsWith('.css')) {
401
- return ("window.addEventListener('DOMContentLoaded', (_event) => { const css = `" +
402
- fileContent +
403
- "`; const style = document.createElement('style'); style.innerHTML = css; document.head.appendChild(style); });");
400
+ const fileContent = fs.readFileSync(file, 'utf-8');
401
+ return `window.addEventListener('DOMContentLoaded', (_event) => {
402
+ const css = ${JSON.stringify(fileContent)};
403
+ const style = document.createElement('style');
404
+ style.innerHTML = css;
405
+ document.head.appendChild(style);
406
+ });`;
404
407
  }
408
+ const fileContent = fs.readFileSync(file);
405
409
  return ("window.addEventListener('DOMContentLoaded', (_event) => { " +
406
410
  fileContent +
407
411
  ' });');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pake-cli",
3
- "version": "3.5.3",
3
+ "version": "3.6.0",
4
4
  "description": "🤱🏻 Turn any webpage into a desktop app with one command. 🤱🏻 一键打包网页生成轻量桌面应用。",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -2588,7 +2588,7 @@ dependencies = [
2588
2588
 
2589
2589
  [[package]]
2590
2590
  name = "pake"
2591
- version = "3.1.2"
2591
+ version = "3.6.0"
2592
2592
  dependencies = [
2593
2593
  "serde",
2594
2594
  "serde_json",
@@ -2598,6 +2598,7 @@ dependencies = [
2598
2598
  "tauri-plugin-http",
2599
2599
  "tauri-plugin-notification",
2600
2600
  "tauri-plugin-oauth",
2601
+ "tauri-plugin-opener",
2601
2602
  "tauri-plugin-shell",
2602
2603
  "tauri-plugin-single-instance",
2603
2604
  "tauri-plugin-window-state",
@@ -4022,9 +4023,9 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
4022
4023
 
4023
4024
  [[package]]
4024
4025
  name = "tauri"
4025
- version = "2.9.0"
4026
+ version = "2.9.4"
4026
4027
  source = "registry+https://github.com/rust-lang/crates.io-index"
4027
- checksum = "7f07c6590706b2fc0ab287b041cf5ce9c435b3850bdae5571e19d9d27584e89d"
4028
+ checksum = "15524fc7959bfcaa051ba6d0b3fb1ef18e978de2176c7c6acb977f7fd14d35c7"
4028
4029
  dependencies = [
4029
4030
  "anyhow",
4030
4031
  "bytes",
@@ -4066,7 +4067,6 @@ dependencies = [
4066
4067
  "tokio",
4067
4068
  "tray-icon",
4068
4069
  "url",
4069
- "urlpattern",
4070
4070
  "webkit2gtk",
4071
4071
  "webview2-com",
4072
4072
  "window-vibrancy",
@@ -4075,9 +4075,9 @@ dependencies = [
4075
4075
 
4076
4076
  [[package]]
4077
4077
  name = "tauri-build"
4078
- version = "2.5.0"
4078
+ version = "2.5.3"
4079
4079
  source = "registry+https://github.com/rust-lang/crates.io-index"
4080
- checksum = "f71be1f494b683ac439e6d61c16ab5c472c6f9c6ee78995b29556d9067c021a1"
4080
+ checksum = "17fcb8819fd16463512a12f531d44826ce566f486d7ccd211c9c8cebdaec4e08"
4081
4081
  dependencies = [
4082
4082
  "anyhow",
4083
4083
  "cargo_toml",
@@ -4097,9 +4097,9 @@ dependencies = [
4097
4097
 
4098
4098
  [[package]]
4099
4099
  name = "tauri-codegen"
4100
- version = "2.5.0"
4100
+ version = "2.5.2"
4101
4101
  source = "registry+https://github.com/rust-lang/crates.io-index"
4102
- checksum = "6c1fe64c74cc40f90848281a90058a6db931eb400b60205840e09801ee30f190"
4102
+ checksum = "9fa9844cefcf99554a16e0a278156ae73b0d8680bbc0e2ad1e4287aadd8489cf"
4103
4103
  dependencies = [
4104
4104
  "base64 0.22.1",
4105
4105
  "brotli",
@@ -4124,9 +4124,9 @@ dependencies = [
4124
4124
 
4125
4125
  [[package]]
4126
4126
  name = "tauri-macros"
4127
- version = "2.5.0"
4127
+ version = "2.5.2"
4128
4128
  source = "registry+https://github.com/rust-lang/crates.io-index"
4129
- checksum = "260c5d2eb036b76206b9fca20b7be3614cfd21046c5396f7959e0e64a4b07f2f"
4129
+ checksum = "3764a12f886d8245e66b7ee9b43ccc47883399be2019a61d80cf0f4117446fde"
4130
4130
  dependencies = [
4131
4131
  "heck 0.5.0",
4132
4132
  "proc-macro2",
@@ -4155,9 +4155,9 @@ dependencies = [
4155
4155
 
4156
4156
  [[package]]
4157
4157
  name = "tauri-plugin-fs"
4158
- version = "2.4.2"
4158
+ version = "2.4.4"
4159
4159
  source = "registry+https://github.com/rust-lang/crates.io-index"
4160
- checksum = "315784ec4be45e90a987687bae7235e6be3d6e9e350d2b75c16b8a4bf22c1db7"
4160
+ checksum = "47df422695255ecbe7bac7012440eddaeefd026656171eac9559f5243d3230d9"
4161
4161
  dependencies = [
4162
4162
  "anyhow",
4163
4163
  "dunce",
@@ -4177,9 +4177,9 @@ dependencies = [
4177
4177
 
4178
4178
  [[package]]
4179
4179
  name = "tauri-plugin-global-shortcut"
4180
- version = "2.3.0"
4180
+ version = "2.3.1"
4181
4181
  source = "registry+https://github.com/rust-lang/crates.io-index"
4182
- checksum = "6df9f0f7bf2fe768b85fee4951c2505a35b72c44df1f6403e74e110bc13c5f58"
4182
+ checksum = "424af23c7e88d05e4a1a6fc2c7be077912f8c76bd7900fd50aa2b7cbf5a2c405"
4183
4183
  dependencies = [
4184
4184
  "global-hotkey",
4185
4185
  "log",
@@ -4192,9 +4192,9 @@ dependencies = [
4192
4192
 
4193
4193
  [[package]]
4194
4194
  name = "tauri-plugin-http"
4195
- version = "2.5.2"
4195
+ version = "2.5.4"
4196
4196
  source = "registry+https://github.com/rust-lang/crates.io-index"
4197
- checksum = "938a3d7051c9a82b431e3a0f3468f85715b3442b3c3a3913095e9fa509e2652c"
4197
+ checksum = "c00685aceab12643cf024f712ab0448ba8fcadf86f2391d49d2e5aa732aacc70"
4198
4198
  dependencies = [
4199
4199
  "bytes",
4200
4200
  "cookie_store",
@@ -4216,9 +4216,9 @@ dependencies = [
4216
4216
 
4217
4217
  [[package]]
4218
4218
  name = "tauri-plugin-notification"
4219
- version = "2.3.1"
4219
+ version = "2.3.3"
4220
4220
  source = "registry+https://github.com/rust-lang/crates.io-index"
4221
- checksum = "d2fbc86b929b5376ab84b25c060f966d146b2fbd59b6af8264027b343c82c219"
4221
+ checksum = "01fc2c5ff41105bd1f7242d8201fdf3efd70749b82fa013a17f2126357d194cc"
4222
4222
  dependencies = [
4223
4223
  "log",
4224
4224
  "notify-rust",
@@ -4248,11 +4248,33 @@ dependencies = [
4248
4248
  "url",
4249
4249
  ]
4250
4250
 
4251
+ [[package]]
4252
+ name = "tauri-plugin-opener"
4253
+ version = "2.5.2"
4254
+ source = "registry+https://github.com/rust-lang/crates.io-index"
4255
+ checksum = "c26b72571d25dee25667940027114e60f569fc3974f8cefbe50c2cbc5fd65e3b"
4256
+ dependencies = [
4257
+ "dunce",
4258
+ "glob",
4259
+ "objc2-app-kit",
4260
+ "objc2-foundation 0.3.2",
4261
+ "open",
4262
+ "schemars 0.8.22",
4263
+ "serde",
4264
+ "serde_json",
4265
+ "tauri",
4266
+ "tauri-plugin",
4267
+ "thiserror 2.0.17",
4268
+ "url",
4269
+ "windows",
4270
+ "zbus",
4271
+ ]
4272
+
4251
4273
  [[package]]
4252
4274
  name = "tauri-plugin-shell"
4253
- version = "2.3.1"
4275
+ version = "2.3.3"
4254
4276
  source = "registry+https://github.com/rust-lang/crates.io-index"
4255
- checksum = "54777d0c0d8add34eea3ced84378619ef5b97996bd967d3038c668feefd21071"
4277
+ checksum = "c374b6db45f2a8a304f0273a15080d98c70cde86178855fc24653ba657a1144c"
4256
4278
  dependencies = [
4257
4279
  "encoding_rs",
4258
4280
  "log",
@@ -4271,9 +4293,9 @@ dependencies = [
4271
4293
 
4272
4294
  [[package]]
4273
4295
  name = "tauri-plugin-single-instance"
4274
- version = "2.3.4"
4296
+ version = "2.3.6"
4275
4297
  source = "registry+https://github.com/rust-lang/crates.io-index"
4276
- checksum = "fb9cac815bf11c4a80fb498666bcdad66d65b89e3ae24669e47806febb76389c"
4298
+ checksum = "dd707f8c86b4e3004e2c141fa24351f1909ba40ce1b8437e30d5ed5277dd3710"
4277
4299
  dependencies = [
4278
4300
  "serde",
4279
4301
  "serde_json",
@@ -4286,9 +4308,9 @@ dependencies = [
4286
4308
 
4287
4309
  [[package]]
4288
4310
  name = "tauri-plugin-window-state"
4289
- version = "2.4.0"
4311
+ version = "2.4.1"
4290
4312
  source = "registry+https://github.com/rust-lang/crates.io-index"
4291
- checksum = "2d5f6fe3291bfa609c7e0b0ee3bedac294d94c7018934086ce782c1d0f2a468e"
4313
+ checksum = "73736611e14142408d15353e21e3cca2f12a3cfb523ad0ce85999b6d2ef1a704"
4292
4314
  dependencies = [
4293
4315
  "bitflags 2.10.0",
4294
4316
  "log",
@@ -4301,9 +4323,9 @@ dependencies = [
4301
4323
 
4302
4324
  [[package]]
4303
4325
  name = "tauri-runtime"
4304
- version = "2.9.0"
4326
+ version = "2.9.2"
4305
4327
  source = "registry+https://github.com/rust-lang/crates.io-index"
4306
- checksum = "3367f0b47df90e9195cd9f04a56b0055a2cba45aa11923c6c253d748778176fc"
4328
+ checksum = "87f766fe9f3d1efc4b59b17e7a891ad5ed195fa8d23582abb02e6c9a01137892"
4307
4329
  dependencies = [
4308
4330
  "cookie",
4309
4331
  "dpi",
@@ -4326,9 +4348,9 @@ dependencies = [
4326
4348
 
4327
4349
  [[package]]
4328
4350
  name = "tauri-runtime-wry"
4329
- version = "2.9.0"
4351
+ version = "2.9.2"
4330
4352
  source = "registry+https://github.com/rust-lang/crates.io-index"
4331
- checksum = "80d91d29ca680c545364cf75ba2f2e3c7ea2ab6376bfa3be26b56fa2463a5b5e"
4353
+ checksum = "7950f3bde6bcca6655bc5e76d3d6ec587ceb81032851ab4ddbe1f508bdea2729"
4332
4354
  dependencies = [
4333
4355
  "gtk",
4334
4356
  "http",
@@ -4353,9 +4375,9 @@ dependencies = [
4353
4375
 
4354
4376
  [[package]]
4355
4377
  name = "tauri-utils"
4356
- version = "2.8.0"
4378
+ version = "2.8.1"
4357
4379
  source = "registry+https://github.com/rust-lang/crates.io-index"
4358
- checksum = "f6b8bbe426abdbf52d050e52ed693130dbd68375b9ad82a3fb17efb4c8d85673"
4380
+ checksum = "76a423c51176eb3616ee9b516a9fa67fed5f0e78baaba680e44eb5dd2cc37490"
4359
4381
  dependencies = [
4360
4382
  "anyhow",
4361
4383
  "brotli",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "pake"
3
- version = "3.1.2"
3
+ version = "3.6.0"
4
4
  description = "🤱🏻 Turn any webpage into a desktop app with Rust."
5
5
  authors = ["Tw93"]
6
6
  license = "MIT"
@@ -15,20 +15,21 @@ crate-type = ["staticlib", "cdylib", "lib"]
15
15
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
16
16
 
17
17
  [build-dependencies]
18
- tauri-build = { version = "2.5.0", features = [] }
18
+ tauri-build = { version = "2.5.3", features = [] }
19
19
 
20
20
  [dependencies]
21
21
  serde_json = "1.0.145"
22
22
  serde = { version = "1.0.228", features = ["derive"] }
23
23
  tokio = { version = "1.48.0", features = ["full"] }
24
- tauri = { version = "2.9.0", features = ["tray-icon", "image-ico", "image-png", "macos-proxy"] }
25
- tauri-plugin-window-state = "2.4.0"
24
+ tauri = { version = "2.9.4", features = ["tray-icon", "image-ico", "image-png", "macos-proxy"] }
25
+ tauri-plugin-window-state = "2.4.1"
26
26
  tauri-plugin-oauth = "2.0.0"
27
- tauri-plugin-http = "2.5.2"
28
- tauri-plugin-global-shortcut = { version = "2.3.0" }
29
- tauri-plugin-shell = "2.3.1"
30
- tauri-plugin-single-instance = "2.3.4"
31
- tauri-plugin-notification = "2.3.1"
27
+ tauri-plugin-http = "2.5.4"
28
+ tauri-plugin-global-shortcut = { version = "2.3.1" }
29
+ tauri-plugin-shell = { version = "2.3.3" }
30
+ tauri-plugin-opener = { version = "2.5.2" }
31
+ tauri-plugin-single-instance = "2.3.6"
32
+ tauri-plugin-notification = "2.3.3"
32
33
 
33
34
  [features]
34
35
  # this feature is used for development builds from development cli