pake-cli 2.6.1 → 3.0.0-beta
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 +29 -63
- package/dist/cli.js +143 -173
- package/dist/dev.js +152 -173
- package/dist/dev.js.map +1 -1
- package/package.json +9 -9
- package/src-tauri/Cargo.lock +1728 -2149
- package/src-tauri/Cargo.toml +15 -11
- package/src-tauri/capabilities/default.json +18 -0
- package/src-tauri/gen/schemas/acl-manifests.json +1 -0
- package/src-tauri/gen/schemas/capabilities.json +1 -0
- package/src-tauri/gen/schemas/desktop-schema.json +2326 -0
- package/src-tauri/gen/schemas/macOS-schema.json +2326 -0
- package/src-tauri/icons/icon.png +0 -0
- package/src-tauri/icons/xiaoyuzhou.icns +0 -0
- package/src-tauri/pake.json +4 -2
- package/src-tauri/src/app/config.rs +2 -0
- package/src-tauri/src/app/invoke.rs +13 -12
- package/src-tauri/src/app/menu.rs +25 -20
- package/src-tauri/src/app/window.rs +14 -9
- package/src-tauri/src/inject/custom.js +0 -6
- package/src-tauri/src/inject/event.js +30 -28
- package/src-tauri/src/inject/style.js +14 -1
- package/src-tauri/src/lib.rs +133 -0
- package/src-tauri/src/main.rs +1 -88
- package/src-tauri/src/util.rs +7 -5
- package/src-tauri/tauri.conf.json +12 -29
- package/src-tauri/tauri.linux.conf.json +14 -14
- package/src-tauri/tauri.macos.conf.json +17 -20
- package/src-tauri/tauri.windows.conf.json +17 -20
- package/src-tauri/.pake/pake.json +0 -29
- package/src-tauri/.pake/tauri.conf.json +0 -75
- package/src-tauri/.pake/tauri.macos.conf.json +0 -29
|
@@ -1,39 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
},
|
|
6
|
-
"
|
|
2
|
+
"productName": "WeRead",
|
|
3
|
+
"identifier": "com.pake.weread",
|
|
4
|
+
"version": "2.0.0",
|
|
5
|
+
"plugins": {},
|
|
6
|
+
"app": {
|
|
7
7
|
"security": {
|
|
8
|
-
"csp": null
|
|
9
|
-
"dangerousRemoteDomainIpcAccess": [
|
|
10
|
-
{
|
|
11
|
-
"domain": "weread.qq.com",
|
|
12
|
-
"windows": ["pake"],
|
|
13
|
-
"enableTauriAPI": true
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"updater": {
|
|
18
|
-
"active": false
|
|
8
|
+
"csp": null
|
|
19
9
|
},
|
|
20
|
-
"
|
|
21
|
-
"iconPath": "png/
|
|
22
|
-
"iconAsTemplate": false
|
|
10
|
+
"trayIcon": {
|
|
11
|
+
"iconPath": "png/weread_512.png",
|
|
12
|
+
"iconAsTemplate": false,
|
|
13
|
+
"id": "pake-tray"
|
|
23
14
|
},
|
|
24
|
-
"
|
|
25
|
-
"all": true,
|
|
26
|
-
"fs": {
|
|
27
|
-
"all": true,
|
|
28
|
-
"scope": ["$DOWNLOAD/*"]
|
|
29
|
-
}
|
|
30
|
-
}
|
|
15
|
+
"withGlobalTauri": true
|
|
31
16
|
},
|
|
32
17
|
"build": {
|
|
33
|
-
"withGlobalTauri": true,
|
|
34
|
-
"devPath": "../dist",
|
|
35
|
-
"distDir": "../dist",
|
|
36
18
|
"beforeBuildCommand": "",
|
|
19
|
+
"frontendDist": "../dist",
|
|
37
20
|
"beforeDevCommand": ""
|
|
38
21
|
}
|
|
39
22
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"productName": "weread",
|
|
3
|
+
"bundle": {
|
|
4
|
+
"icon": ["png/weread_512.png"],
|
|
5
|
+
"active": true,
|
|
6
|
+
"category": "DeveloperTool",
|
|
7
|
+
"copyright": "",
|
|
8
|
+
"linux": {
|
|
9
9
|
"deb": {
|
|
10
10
|
"depends": ["curl", "wget"],
|
|
11
11
|
"files": { "/usr/share/applications/com-pake-weread.desktop": "assets/com-pake-weread.desktop" }
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"externalBin": [],
|
|
15
|
+
"longDescription": "",
|
|
16
|
+
"resources": [],
|
|
17
|
+
"shortDescription": "",
|
|
18
|
+
"targets": ["deb", "appimage"]
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"shortDescription": "",
|
|
20
|
-
"targets": ["dmg"]
|
|
21
|
-
}
|
|
2
|
+
"bundle": {
|
|
3
|
+
"icon": ["icons/weread.icns"],
|
|
4
|
+
"active": true,
|
|
5
|
+
"category": "DeveloperTool",
|
|
6
|
+
"copyright": "",
|
|
7
|
+
"externalBin": [],
|
|
8
|
+
"longDescription": "",
|
|
9
|
+
"macOS": {
|
|
10
|
+
"entitlements": null,
|
|
11
|
+
"exceptionDomain": null,
|
|
12
|
+
"frameworks": [],
|
|
13
|
+
"providerShortName": null,
|
|
14
|
+
"signingIdentity": null
|
|
15
|
+
},
|
|
16
|
+
"resources": [],
|
|
17
|
+
"shortDescription": "",
|
|
18
|
+
"targets": ["dmg"]
|
|
22
19
|
}
|
|
23
20
|
}
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"language": ["en-US"],
|
|
20
|
-
"template": "assets/main.wxs"
|
|
21
|
-
}
|
|
2
|
+
"bundle": {
|
|
3
|
+
"icon": ["png/weread_256.ico", "png/weread_32.ico"],
|
|
4
|
+
"active": true,
|
|
5
|
+
"category": "DeveloperTool",
|
|
6
|
+
"copyright": "",
|
|
7
|
+
"externalBin": [],
|
|
8
|
+
"longDescription": "",
|
|
9
|
+
"resources": ["png/weread_32.ico"],
|
|
10
|
+
"shortDescription": "",
|
|
11
|
+
"targets": ["msi"],
|
|
12
|
+
"windows": {
|
|
13
|
+
"certificateThumbprint": null,
|
|
14
|
+
"digestAlgorithm": "sha256",
|
|
15
|
+
"timestampUrl": "",
|
|
16
|
+
"wix": {
|
|
17
|
+
"language": ["en-US"],
|
|
18
|
+
"template": "assets/main.wxs"
|
|
22
19
|
}
|
|
23
20
|
}
|
|
24
21
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"windows": [
|
|
3
|
-
{
|
|
4
|
-
"url": "https://weread.qq.com",
|
|
5
|
-
"url_type": "web",
|
|
6
|
-
"transparent": true,
|
|
7
|
-
"fullscreen": false,
|
|
8
|
-
"width": 1200,
|
|
9
|
-
"height": 780,
|
|
10
|
-
"resizable": true,
|
|
11
|
-
"always_on_top": false,
|
|
12
|
-
"activation_shortcut": "",
|
|
13
|
-
"disabled_web_shortcuts": false,
|
|
14
|
-
"alwaysOnTop": false,
|
|
15
|
-
"disabledWebShortcuts": false
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"user_agent": {
|
|
19
|
-
"macos": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15",
|
|
20
|
-
"linux": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36",
|
|
21
|
-
"windows": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
|
|
22
|
-
},
|
|
23
|
-
"system_tray": {
|
|
24
|
-
"macos": false,
|
|
25
|
-
"linux": true,
|
|
26
|
-
"windows": true
|
|
27
|
-
},
|
|
28
|
-
"inject": []
|
|
29
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tauri": {
|
|
3
|
-
"security": {
|
|
4
|
-
"csp": null,
|
|
5
|
-
"dangerousRemoteDomainIpcAccess": [
|
|
6
|
-
{
|
|
7
|
-
"domain": "weread.qq.com",
|
|
8
|
-
"windows": [
|
|
9
|
-
"pake"
|
|
10
|
-
],
|
|
11
|
-
"enableTauriAPI": true
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"domain": "weread.qq.com",
|
|
15
|
-
"windows": [
|
|
16
|
-
"pake"
|
|
17
|
-
],
|
|
18
|
-
"enableTauriAPI": true
|
|
19
|
-
}
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
"updater": {
|
|
23
|
-
"active": false
|
|
24
|
-
},
|
|
25
|
-
"systemTray": {
|
|
26
|
-
"iconPath": "png/icon_512.png",
|
|
27
|
-
"iconAsTemplate": false
|
|
28
|
-
},
|
|
29
|
-
"allowlist": {
|
|
30
|
-
"all": true,
|
|
31
|
-
"fs": {
|
|
32
|
-
"all": true,
|
|
33
|
-
"scope": [
|
|
34
|
-
"$DOWNLOAD/*"
|
|
35
|
-
]
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"bundle": {
|
|
39
|
-
"icon": [
|
|
40
|
-
"/Users/tw93/www/Pake/src-tauri/icons/icon.icns"
|
|
41
|
-
],
|
|
42
|
-
"identifier": "com.pake.bfde08",
|
|
43
|
-
"active": true,
|
|
44
|
-
"category": "DeveloperTool",
|
|
45
|
-
"copyright": "",
|
|
46
|
-
"externalBin": [],
|
|
47
|
-
"longDescription": "",
|
|
48
|
-
"macOS": {
|
|
49
|
-
"entitlements": null,
|
|
50
|
-
"exceptionDomain": "",
|
|
51
|
-
"frameworks": [],
|
|
52
|
-
"providerShortName": null,
|
|
53
|
-
"signingIdentity": null
|
|
54
|
-
},
|
|
55
|
-
"resources": [
|
|
56
|
-
"icons/weread.icns"
|
|
57
|
-
],
|
|
58
|
-
"shortDescription": "",
|
|
59
|
-
"targets": [
|
|
60
|
-
"dmg"
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"package": {
|
|
65
|
-
"productName": "WeRead",
|
|
66
|
-
"version": "1.0.0"
|
|
67
|
-
},
|
|
68
|
-
"build": {
|
|
69
|
-
"withGlobalTauri": true,
|
|
70
|
-
"devPath": "../dist",
|
|
71
|
-
"distDir": "../dist",
|
|
72
|
-
"beforeBuildCommand": "",
|
|
73
|
-
"beforeDevCommand": ""
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tauri": {
|
|
3
|
-
"bundle": {
|
|
4
|
-
"icon": [
|
|
5
|
-
"/Users/tw93/www/Pake/src-tauri/icons/icon.icns"
|
|
6
|
-
],
|
|
7
|
-
"identifier": "com.pake.bfde08",
|
|
8
|
-
"active": true,
|
|
9
|
-
"category": "DeveloperTool",
|
|
10
|
-
"copyright": "",
|
|
11
|
-
"externalBin": [],
|
|
12
|
-
"longDescription": "",
|
|
13
|
-
"macOS": {
|
|
14
|
-
"entitlements": null,
|
|
15
|
-
"exceptionDomain": "",
|
|
16
|
-
"frameworks": [],
|
|
17
|
-
"providerShortName": null,
|
|
18
|
-
"signingIdentity": null
|
|
19
|
-
},
|
|
20
|
-
"resources": [
|
|
21
|
-
"icons/weread.icns"
|
|
22
|
-
],
|
|
23
|
-
"shortDescription": "",
|
|
24
|
-
"targets": [
|
|
25
|
-
"dmg"
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|