@tauri-apps/cli 1.1.0 → 1.2.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/CHANGELOG.md +16 -0
- package/Cargo.toml +1 -1
- package/package.json +12 -12
- package/schema.json +243 -21
- package/tauri.js +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## \[1.2.0]
|
|
4
|
+
|
|
5
|
+
- Detect JSON5 and TOML configuration files in the dev watcher.
|
|
6
|
+
- [e7ccbd85](https://www.github.com/tauri-apps/tauri/commit/e7ccbd8573f6b9124e80c0b67fa2365729c3c196) feat(cli): detect JSON5 and TOML configuration files in the dev watcher ([#5439](https://www.github.com/tauri-apps/tauri/pull/5439)) on 2022-10-19
|
|
7
|
+
- Log dev watcher file change detection.
|
|
8
|
+
- [9076d5d2](https://www.github.com/tauri-apps/tauri/commit/9076d5d2e76d432aef475ba403e9ab5bd3b9d2b0) feat(cli): add prompt information when file changing detected, closes [#5417](https://www.github.com/tauri-apps/tauri/pull/5417) ([#5428](https://www.github.com/tauri-apps/tauri/pull/5428)) on 2022-10-19
|
|
9
|
+
- Fix crash when nodejs binary has the version in its name, for example `node18` or when running through deno.
|
|
10
|
+
- [7a231cd1](https://www.github.com/tauri-apps/tauri/commit/7a231cd1c99101f63354b13bb36223568d2f0a11) fix(cli): detect deno ([#5475](https://www.github.com/tauri-apps/tauri/pull/5475)) on 2022-10-28
|
|
11
|
+
- Changed the project template to not enable all APIs by default.
|
|
12
|
+
- [582c25a0](https://www.github.com/tauri-apps/tauri/commit/582c25a0f0fa2725d786ec4edd0defe7811ad6e8) refactor(cli): disable api-all on templates ([#5538](https://www.github.com/tauri-apps/tauri/pull/5538)) on 2022-11-03
|
|
13
|
+
|
|
14
|
+
## \[1.1.1]
|
|
15
|
+
|
|
16
|
+
- Fix wrong cli metadata that caused new projects (created through `tauri init`) fail to build
|
|
17
|
+
- [db26aaf2](https://www.github.com/tauri-apps/tauri/commit/db26aaf2b44ce5335c9223c571ef2b2175e0cd6d) fix: fix wrong cli metadata ([#5214](https://www.github.com/tauri-apps/tauri/pull/5214)) on 2022-09-16
|
|
18
|
+
|
|
3
19
|
## \[1.1.0]
|
|
4
20
|
|
|
5
21
|
- Allow adding `build > beforeBundleCommand` in tauri.conf.json to run a shell command before the bundling phase.
|
package/Cargo.toml
CHANGED
|
@@ -8,7 +8,7 @@ crate-type = ["cdylib"]
|
|
|
8
8
|
|
|
9
9
|
[dependencies]
|
|
10
10
|
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
|
|
11
|
-
napi = { version = "2.
|
|
11
|
+
napi = { version = "2.10", default-features = false, features = ["napi4"] }
|
|
12
12
|
napi-derive = "2.9"
|
|
13
13
|
tauri-cli = { path = ".." }
|
|
14
14
|
log = "0.4.17"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tauri-apps/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Command line interface for building Tauri apps",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "opencollective",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@napi-rs/cli": "2.
|
|
40
|
+
"@napi-rs/cli": "2.12.0",
|
|
41
41
|
"cross-env": "7.0.3",
|
|
42
42
|
"cross-spawn": "7.0.3",
|
|
43
43
|
"fs-extra": "10.1.0",
|
|
44
|
-
"jest": "
|
|
44
|
+
"jest": "29.2.2",
|
|
45
45
|
"jest-transform-toml": "1.0.0",
|
|
46
46
|
"prettier": "2.7.1"
|
|
47
47
|
},
|
|
@@ -64,14 +64,14 @@
|
|
|
64
64
|
"format:check": "prettier --check ./package.json ./tauri.js"
|
|
65
65
|
},
|
|
66
66
|
"optionalDependencies": {
|
|
67
|
-
"@tauri-apps/cli-win32-x64-msvc": "1.
|
|
68
|
-
"@tauri-apps/cli-darwin-x64": "1.
|
|
69
|
-
"@tauri-apps/cli-linux-x64-gnu": "1.
|
|
70
|
-
"@tauri-apps/cli-darwin-arm64": "1.
|
|
71
|
-
"@tauri-apps/cli-linux-arm64-gnu": "1.
|
|
72
|
-
"@tauri-apps/cli-linux-arm64-musl": "1.
|
|
73
|
-
"@tauri-apps/cli-linux-arm-gnueabihf": "1.
|
|
74
|
-
"@tauri-apps/cli-linux-x64-musl": "1.
|
|
75
|
-
"@tauri-apps/cli-win32-ia32-msvc": "1.
|
|
67
|
+
"@tauri-apps/cli-win32-x64-msvc": "1.2.0",
|
|
68
|
+
"@tauri-apps/cli-darwin-x64": "1.2.0",
|
|
69
|
+
"@tauri-apps/cli-linux-x64-gnu": "1.2.0",
|
|
70
|
+
"@tauri-apps/cli-darwin-arm64": "1.2.0",
|
|
71
|
+
"@tauri-apps/cli-linux-arm64-gnu": "1.2.0",
|
|
72
|
+
"@tauri-apps/cli-linux-arm64-musl": "1.2.0",
|
|
73
|
+
"@tauri-apps/cli-linux-arm-gnueabihf": "1.2.0",
|
|
74
|
+
"@tauri-apps/cli-linux-x64-musl": "1.2.0",
|
|
75
|
+
"@tauri-apps/cli-win32-ia32-msvc": "1.2.0"
|
|
76
76
|
}
|
|
77
77
|
}
|
package/schema.json
CHANGED
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
"default": {
|
|
29
29
|
"allowlist": {
|
|
30
30
|
"all": false,
|
|
31
|
+
"app": {
|
|
32
|
+
"all": false,
|
|
33
|
+
"hide": false,
|
|
34
|
+
"show": false
|
|
35
|
+
},
|
|
31
36
|
"clipboard": {
|
|
32
37
|
"all": false,
|
|
33
38
|
"readText": false,
|
|
@@ -100,10 +105,15 @@
|
|
|
100
105
|
"print": false,
|
|
101
106
|
"requestUserAttention": false,
|
|
102
107
|
"setAlwaysOnTop": false,
|
|
108
|
+
"setCursorGrab": false,
|
|
109
|
+
"setCursorIcon": false,
|
|
110
|
+
"setCursorPosition": false,
|
|
111
|
+
"setCursorVisible": false,
|
|
103
112
|
"setDecorations": false,
|
|
104
113
|
"setFocus": false,
|
|
105
114
|
"setFullscreen": false,
|
|
106
115
|
"setIcon": false,
|
|
116
|
+
"setIgnoreCursorEvents": false,
|
|
107
117
|
"setMaxSize": false,
|
|
108
118
|
"setMinSize": false,
|
|
109
119
|
"setPosition": false,
|
|
@@ -203,7 +213,8 @@
|
|
|
203
213
|
"type": [
|
|
204
214
|
"string",
|
|
205
215
|
"null"
|
|
206
|
-
]
|
|
216
|
+
],
|
|
217
|
+
"pattern": "^[^/\\:*?\"<>|]+$"
|
|
207
218
|
},
|
|
208
219
|
"version": {
|
|
209
220
|
"description": "App version. It is a semver version number or a path to a `package.json` file containing the `version` field.",
|
|
@@ -290,6 +301,11 @@
|
|
|
290
301
|
"description": "The allowlist configuration.",
|
|
291
302
|
"default": {
|
|
292
303
|
"all": false,
|
|
304
|
+
"app": {
|
|
305
|
+
"all": false,
|
|
306
|
+
"hide": false,
|
|
307
|
+
"show": false
|
|
308
|
+
},
|
|
293
309
|
"clipboard": {
|
|
294
310
|
"all": false,
|
|
295
311
|
"readText": false,
|
|
@@ -362,10 +378,15 @@
|
|
|
362
378
|
"print": false,
|
|
363
379
|
"requestUserAttention": false,
|
|
364
380
|
"setAlwaysOnTop": false,
|
|
381
|
+
"setCursorGrab": false,
|
|
382
|
+
"setCursorIcon": false,
|
|
383
|
+
"setCursorPosition": false,
|
|
384
|
+
"setCursorVisible": false,
|
|
365
385
|
"setDecorations": false,
|
|
366
386
|
"setFocus": false,
|
|
367
387
|
"setFullscreen": false,
|
|
368
388
|
"setIcon": false,
|
|
389
|
+
"setIgnoreCursorEvents": false,
|
|
369
390
|
"setMaxSize": false,
|
|
370
391
|
"setMinSize": false,
|
|
371
392
|
"setPosition": false,
|
|
@@ -498,6 +519,13 @@
|
|
|
498
519
|
}
|
|
499
520
|
]
|
|
500
521
|
},
|
|
522
|
+
"userAgent": {
|
|
523
|
+
"description": "The user agent for the webview",
|
|
524
|
+
"type": [
|
|
525
|
+
"string",
|
|
526
|
+
"null"
|
|
527
|
+
]
|
|
528
|
+
},
|
|
501
529
|
"fileDropEnabled": {
|
|
502
530
|
"description": "Whether the file drop is enabled or not on the webview. By default it is enabled.\n\nDisabling it is required to use drag and drop on the frontend on Windows.",
|
|
503
531
|
"default": true,
|
|
@@ -584,7 +612,7 @@
|
|
|
584
612
|
"type": "boolean"
|
|
585
613
|
},
|
|
586
614
|
"focus": {
|
|
587
|
-
"description": "Whether the window will be initially
|
|
615
|
+
"description": "Whether the window will be initially focused or not.",
|
|
588
616
|
"default": true,
|
|
589
617
|
"type": "boolean"
|
|
590
618
|
},
|
|
@@ -628,6 +656,32 @@
|
|
|
628
656
|
"type": "null"
|
|
629
657
|
}
|
|
630
658
|
]
|
|
659
|
+
},
|
|
660
|
+
"titleBarStyle": {
|
|
661
|
+
"description": "The style of the macOS title bar.",
|
|
662
|
+
"default": "Visible",
|
|
663
|
+
"allOf": [
|
|
664
|
+
{
|
|
665
|
+
"$ref": "#/definitions/TitleBarStyle"
|
|
666
|
+
}
|
|
667
|
+
]
|
|
668
|
+
},
|
|
669
|
+
"hiddenTitle": {
|
|
670
|
+
"description": "If `true`, sets the window title to be hidden on macOS.",
|
|
671
|
+
"default": false,
|
|
672
|
+
"type": "boolean"
|
|
673
|
+
},
|
|
674
|
+
"acceptFirstMouse": {
|
|
675
|
+
"description": "Whether clicking an inactive window also clicks through to the webview.",
|
|
676
|
+
"default": false,
|
|
677
|
+
"type": "boolean"
|
|
678
|
+
},
|
|
679
|
+
"tabbingIdentifier": {
|
|
680
|
+
"description": "Defines the window [tabbing identifier] for macOS.\n\nWindows with matching tabbing identifiers will be grouped together. If the tabbing identifier is not set, automatic tabbing will be disabled.\n\n[tabbing identifier]: <https://developer.apple.com/documentation/appkit/nswindow/1644704-tabbingidentifier>",
|
|
681
|
+
"type": [
|
|
682
|
+
"string",
|
|
683
|
+
"null"
|
|
684
|
+
]
|
|
631
685
|
}
|
|
632
686
|
},
|
|
633
687
|
"additionalProperties": false
|
|
@@ -648,10 +702,47 @@
|
|
|
648
702
|
},
|
|
649
703
|
"Theme": {
|
|
650
704
|
"description": "System theme.",
|
|
651
|
-
"
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
705
|
+
"oneOf": [
|
|
706
|
+
{
|
|
707
|
+
"description": "Light theme.",
|
|
708
|
+
"type": "string",
|
|
709
|
+
"enum": [
|
|
710
|
+
"Light"
|
|
711
|
+
]
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"description": "Dark theme.",
|
|
715
|
+
"type": "string",
|
|
716
|
+
"enum": [
|
|
717
|
+
"Dark"
|
|
718
|
+
]
|
|
719
|
+
}
|
|
720
|
+
]
|
|
721
|
+
},
|
|
722
|
+
"TitleBarStyle": {
|
|
723
|
+
"description": "How the window title bar should be displayed.",
|
|
724
|
+
"oneOf": [
|
|
725
|
+
{
|
|
726
|
+
"description": "A normal title bar.",
|
|
727
|
+
"type": "string",
|
|
728
|
+
"enum": [
|
|
729
|
+
"Visible"
|
|
730
|
+
]
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"description": "Makes the title bar transparent, so the window background color is shown instead.\n\nUseful if you don't need to have actual HTML under the title bar. This lets you avoid the caveats of using `TitleBarStyle::Overlay`. Will be more useful when Tauri lets you set a custom window background color.",
|
|
734
|
+
"type": "string",
|
|
735
|
+
"enum": [
|
|
736
|
+
"Transparent"
|
|
737
|
+
]
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"description": "Shows the title bar as a transparent overlay over the window's content.\n\nKeep in mind: - The height of the title bar is different on different OS versions, which can lead to window the controls and title not being where you don't expect. - You need to define a custom drag region to make your window draggable, however due to a limitation you can't drag the window when it's not in focus (https://github.com/tauri-apps/tauri/issues/4316). - The color of the window title depends on the system theme.",
|
|
741
|
+
"type": "string",
|
|
742
|
+
"enum": [
|
|
743
|
+
"Overlay"
|
|
744
|
+
]
|
|
745
|
+
}
|
|
655
746
|
]
|
|
656
747
|
},
|
|
657
748
|
"CliConfig": {
|
|
@@ -925,6 +1016,13 @@
|
|
|
925
1016
|
"description": "The application identifier in reverse domain name notation (e.g. `com.tauri.example`). This string must be unique across applications since it is used in system configurations like the bundle ID and path to the webview data directory. This string must contain only alphanumeric characters (A–Z, a–z, and 0–9), hyphens (-), and periods (.).",
|
|
926
1017
|
"type": "string"
|
|
927
1018
|
},
|
|
1019
|
+
"publisher": {
|
|
1020
|
+
"description": "The application's publisher. Defaults to the second element in the identifier string. Currently maps to the Manufacturer property of the Windows Installer.",
|
|
1021
|
+
"type": [
|
|
1022
|
+
"string",
|
|
1023
|
+
"null"
|
|
1024
|
+
]
|
|
1025
|
+
},
|
|
928
1026
|
"icon": {
|
|
929
1027
|
"description": "The app's icons",
|
|
930
1028
|
"default": [],
|
|
@@ -1066,14 +1164,49 @@
|
|
|
1066
1164
|
},
|
|
1067
1165
|
"BundleType": {
|
|
1068
1166
|
"description": "A bundle referenced by tauri-bundler.",
|
|
1069
|
-
"
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1167
|
+
"oneOf": [
|
|
1168
|
+
{
|
|
1169
|
+
"description": "The debian bundle (.deb).",
|
|
1170
|
+
"type": "string",
|
|
1171
|
+
"enum": [
|
|
1172
|
+
"deb"
|
|
1173
|
+
]
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"description": "The AppImage bundle (.appimage).",
|
|
1177
|
+
"type": "string",
|
|
1178
|
+
"enum": [
|
|
1179
|
+
"appimage"
|
|
1180
|
+
]
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"description": "The Microsoft Installer bundle (.msi).",
|
|
1184
|
+
"type": "string",
|
|
1185
|
+
"enum": [
|
|
1186
|
+
"msi"
|
|
1187
|
+
]
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"description": "The macOS application bundle (.app).",
|
|
1191
|
+
"type": "string",
|
|
1192
|
+
"enum": [
|
|
1193
|
+
"app"
|
|
1194
|
+
]
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"description": "The Apple Disk Image bundle (.dmg).",
|
|
1198
|
+
"type": "string",
|
|
1199
|
+
"enum": [
|
|
1200
|
+
"dmg"
|
|
1201
|
+
]
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"description": "The Tauri updater bundle.",
|
|
1205
|
+
"type": "string",
|
|
1206
|
+
"enum": [
|
|
1207
|
+
"updater"
|
|
1208
|
+
]
|
|
1209
|
+
}
|
|
1077
1210
|
]
|
|
1078
1211
|
},
|
|
1079
1212
|
"AppImageConfig": {
|
|
@@ -1528,10 +1661,15 @@
|
|
|
1528
1661
|
"print": false,
|
|
1529
1662
|
"requestUserAttention": false,
|
|
1530
1663
|
"setAlwaysOnTop": false,
|
|
1664
|
+
"setCursorGrab": false,
|
|
1665
|
+
"setCursorIcon": false,
|
|
1666
|
+
"setCursorPosition": false,
|
|
1667
|
+
"setCursorVisible": false,
|
|
1531
1668
|
"setDecorations": false,
|
|
1532
1669
|
"setFocus": false,
|
|
1533
1670
|
"setFullscreen": false,
|
|
1534
1671
|
"setIcon": false,
|
|
1672
|
+
"setIgnoreCursorEvents": false,
|
|
1535
1673
|
"setMaxSize": false,
|
|
1536
1674
|
"setMinSize": false,
|
|
1537
1675
|
"setPosition": false,
|
|
@@ -1677,6 +1815,19 @@
|
|
|
1677
1815
|
"$ref": "#/definitions/ClipboardAllowlistConfig"
|
|
1678
1816
|
}
|
|
1679
1817
|
]
|
|
1818
|
+
},
|
|
1819
|
+
"app": {
|
|
1820
|
+
"description": "App APIs allowlist.",
|
|
1821
|
+
"default": {
|
|
1822
|
+
"all": false,
|
|
1823
|
+
"hide": false,
|
|
1824
|
+
"show": false
|
|
1825
|
+
},
|
|
1826
|
+
"allOf": [
|
|
1827
|
+
{
|
|
1828
|
+
"$ref": "#/definitions/AppAllowlistConfig"
|
|
1829
|
+
}
|
|
1830
|
+
]
|
|
1680
1831
|
}
|
|
1681
1832
|
},
|
|
1682
1833
|
"additionalProperties": false
|
|
@@ -1748,7 +1899,7 @@
|
|
|
1748
1899
|
"additionalProperties": false
|
|
1749
1900
|
},
|
|
1750
1901
|
"FsAllowlistScope": {
|
|
1751
|
-
"description": "Filesystem scope definition. It is a list of glob patterns that restrict the API access from the webview.\n\nEach pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`.",
|
|
1902
|
+
"description": "Filesystem scope definition. It is a list of glob patterns that restrict the API access from the webview.\n\nEach pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
|
|
1752
1903
|
"anyOf": [
|
|
1753
1904
|
{
|
|
1754
1905
|
"description": "A list of paths that are allowed by this scope.",
|
|
@@ -1900,6 +2051,31 @@
|
|
|
1900
2051
|
"default": false,
|
|
1901
2052
|
"type": "boolean"
|
|
1902
2053
|
},
|
|
2054
|
+
"setCursorGrab": {
|
|
2055
|
+
"description": "Allows grabbing the cursor.",
|
|
2056
|
+
"default": false,
|
|
2057
|
+
"type": "boolean"
|
|
2058
|
+
},
|
|
2059
|
+
"setCursorVisible": {
|
|
2060
|
+
"description": "Allows setting the cursor visibility.",
|
|
2061
|
+
"default": false,
|
|
2062
|
+
"type": "boolean"
|
|
2063
|
+
},
|
|
2064
|
+
"setCursorIcon": {
|
|
2065
|
+
"description": "Allows changing the cursor icon.",
|
|
2066
|
+
"default": false,
|
|
2067
|
+
"type": "boolean"
|
|
2068
|
+
},
|
|
2069
|
+
"setCursorPosition": {
|
|
2070
|
+
"description": "Allows setting the cursor position.",
|
|
2071
|
+
"default": false,
|
|
2072
|
+
"type": "boolean"
|
|
2073
|
+
},
|
|
2074
|
+
"setIgnoreCursorEvents": {
|
|
2075
|
+
"description": "Allows ignoring cursor events.",
|
|
2076
|
+
"default": false,
|
|
2077
|
+
"type": "boolean"
|
|
2078
|
+
},
|
|
1903
2079
|
"startDragging": {
|
|
1904
2080
|
"description": "Allows start dragging on the window.",
|
|
1905
2081
|
"default": false,
|
|
@@ -1972,7 +2148,7 @@
|
|
|
1972
2148
|
"type": "string"
|
|
1973
2149
|
},
|
|
1974
2150
|
"cmd": {
|
|
1975
|
-
"description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`.",
|
|
2151
|
+
"description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
|
|
1976
2152
|
"default": "",
|
|
1977
2153
|
"type": "string"
|
|
1978
2154
|
},
|
|
@@ -2238,6 +2414,28 @@
|
|
|
2238
2414
|
},
|
|
2239
2415
|
"additionalProperties": false
|
|
2240
2416
|
},
|
|
2417
|
+
"AppAllowlistConfig": {
|
|
2418
|
+
"description": "Allowlist for the app APIs.",
|
|
2419
|
+
"type": "object",
|
|
2420
|
+
"properties": {
|
|
2421
|
+
"all": {
|
|
2422
|
+
"description": "Use this flag to enable all app APIs.",
|
|
2423
|
+
"default": false,
|
|
2424
|
+
"type": "boolean"
|
|
2425
|
+
},
|
|
2426
|
+
"show": {
|
|
2427
|
+
"description": "Enables the app's `show` API.",
|
|
2428
|
+
"default": false,
|
|
2429
|
+
"type": "boolean"
|
|
2430
|
+
},
|
|
2431
|
+
"hide": {
|
|
2432
|
+
"description": "Enables the app's `hide` API.",
|
|
2433
|
+
"default": false,
|
|
2434
|
+
"type": "boolean"
|
|
2435
|
+
}
|
|
2436
|
+
},
|
|
2437
|
+
"additionalProperties": false
|
|
2438
|
+
},
|
|
2241
2439
|
"SecurityConfig": {
|
|
2242
2440
|
"description": "Security configuration.",
|
|
2243
2441
|
"type": "object",
|
|
@@ -2395,11 +2593,28 @@
|
|
|
2395
2593
|
},
|
|
2396
2594
|
"WindowsUpdateInstallMode": {
|
|
2397
2595
|
"description": "Install modes for the Windows update.",
|
|
2398
|
-
"
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2596
|
+
"oneOf": [
|
|
2597
|
+
{
|
|
2598
|
+
"description": "Specifies there's a basic UI during the installation process, including a final dialog box at the end.",
|
|
2599
|
+
"type": "string",
|
|
2600
|
+
"enum": [
|
|
2601
|
+
"basicUi"
|
|
2602
|
+
]
|
|
2603
|
+
},
|
|
2604
|
+
{
|
|
2605
|
+
"description": "The quiet mode means there's no user interaction required. Requires admin privileges if the installer does.",
|
|
2606
|
+
"type": "string",
|
|
2607
|
+
"enum": [
|
|
2608
|
+
"quiet"
|
|
2609
|
+
]
|
|
2610
|
+
},
|
|
2611
|
+
{
|
|
2612
|
+
"description": "Specifies unattended mode, which means the installation only shows a progress bar.",
|
|
2613
|
+
"type": "string",
|
|
2614
|
+
"enum": [
|
|
2615
|
+
"passive"
|
|
2616
|
+
]
|
|
2617
|
+
}
|
|
2403
2618
|
]
|
|
2404
2619
|
},
|
|
2405
2620
|
"SystemTrayConfig": {
|
|
@@ -2422,6 +2637,13 @@
|
|
|
2422
2637
|
"description": "A Boolean value that determines whether the menu should appear when the tray icon receives a left click on macOS.",
|
|
2423
2638
|
"default": true,
|
|
2424
2639
|
"type": "boolean"
|
|
2640
|
+
},
|
|
2641
|
+
"title": {
|
|
2642
|
+
"description": "Title for MacOS tray",
|
|
2643
|
+
"type": [
|
|
2644
|
+
"string",
|
|
2645
|
+
"null"
|
|
2646
|
+
]
|
|
2425
2647
|
}
|
|
2426
2648
|
},
|
|
2427
2649
|
"additionalProperties": false
|
package/tauri.js
CHANGED
|
@@ -10,9 +10,13 @@ const binStem = path.parse(bin).name.toLowerCase()
|
|
|
10
10
|
// can successfully detect what command likely started the execution.
|
|
11
11
|
let binName
|
|
12
12
|
|
|
13
|
+
// deno run -A --unstable --node-modules-dir npm:@tauri-apps/cli
|
|
14
|
+
if (bin === '@tauri-apps/cli') {
|
|
15
|
+
binName = '@tauri-apps/cli'
|
|
16
|
+
}
|
|
13
17
|
// Even if started by a package manager, the binary will be NodeJS.
|
|
14
18
|
// Some distribution still use "nodejs" as the binary name.
|
|
15
|
-
if (binStem
|
|
19
|
+
else if (binStem.match(/(nodejs|node)([1-9]*)*$/g)) {
|
|
16
20
|
const managerStem = process.env.npm_execpath
|
|
17
21
|
? path.parse(process.env.npm_execpath).name.toLowerCase()
|
|
18
22
|
: null
|