@tauri-apps/cli 2.0.0-beta.0 → 2.0.0-beta.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/CHANGELOG.md +51 -0
- package/main.js +3 -3
- package/package.json +11 -11
- package/schema.json +297 -1
- package/src/lib.rs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## \[2.0.0-beta.2]
|
|
4
|
+
|
|
5
|
+
### Enhancements
|
|
6
|
+
|
|
7
|
+
- [`83a68deb`](https://www.github.com/tauri-apps/tauri/commit/83a68deb5676d39cd4728d2e140f6b46d5f787ed)([#8797](https://www.github.com/tauri-apps/tauri/pull/8797)) Update app template following capabilities configuration change.
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- [`aa06a053`](https://www.github.com/tauri-apps/tauri/commit/aa06a0534cf224038866e0ddd6910ea873b2574d)([#8810](https://www.github.com/tauri-apps/tauri/pull/8810)) Fix `tauri plugin android init` printing invalid code that has a missing closing `"`.
|
|
12
|
+
- [`3cee26a5`](https://www.github.com/tauri-apps/tauri/commit/3cee26a58ab44639a12c7816f4096655daa327a4)([#8865](https://www.github.com/tauri-apps/tauri/pull/8865)) On Windows, fixed `tauri info` fails to detect the build tool when the system language is CJK.
|
|
13
|
+
- [`052e8b43`](https://www.github.com/tauri-apps/tauri/commit/052e8b4311d9f0f963a2866163be27bfd8f70c60)([#8838](https://www.github.com/tauri-apps/tauri/pull/8838)) Downgrade minisign dependency fixing updater signing key bug and prevent it from happening in the future.
|
|
14
|
+
- [`fb0d9971`](https://www.github.com/tauri-apps/tauri/commit/fb0d997117367e3387896bcd0fba004579475c40)([#8783](https://www.github.com/tauri-apps/tauri/pull/8783)) Fixes a regression on the `--config` argument not accepting file paths.
|
|
15
|
+
- [`baca704d`](https://www.github.com/tauri-apps/tauri/commit/baca704d4b5fae239fc320d10140f35bd705bfbb)([#8768](https://www.github.com/tauri-apps/tauri/pull/8768)) Do not migrate updater configuration if the active flag is set to false.
|
|
16
|
+
|
|
17
|
+
### Dependencies
|
|
18
|
+
|
|
19
|
+
- Upgraded to `tauri-cli@2.0.0-beta.2`
|
|
20
|
+
|
|
21
|
+
## \[2.0.0-beta.1]
|
|
22
|
+
|
|
23
|
+
### Enhancements
|
|
24
|
+
|
|
25
|
+
- [`4e101f80`](https://www.github.com/tauri-apps/tauri/commit/4e101f801657e7d01ce8c22f9c6468067d0caab2)([#8756](https://www.github.com/tauri-apps/tauri/pull/8756)) Moved the capability JSON schema to the `src-tauri/gen` folder so it's easier to track changes on the `capabilities` folder.
|
|
26
|
+
- [`4e101f80`](https://www.github.com/tauri-apps/tauri/commit/4e101f801657e7d01ce8c22f9c6468067d0caab2)([#8756](https://www.github.com/tauri-apps/tauri/pull/8756)) Update app and plugin templates following generated files change from tauri-build and tauri-plugin.
|
|
27
|
+
|
|
28
|
+
### Dependencies
|
|
29
|
+
|
|
30
|
+
- Upgraded to `tauri-cli@2.0.0-beta.1`
|
|
31
|
+
|
|
3
32
|
## \[2.0.0-beta.0]
|
|
4
33
|
|
|
5
34
|
### New Features
|
|
@@ -355,6 +384,28 @@
|
|
|
355
384
|
- First mobile alpha release!
|
|
356
385
|
- [fa3a1098](https://www.github.com/tauri-apps/tauri/commit/fa3a10988a03aed1b66fb17d893b1a9adb90f7cd) feat(ci): prepare 2.0.0-alpha.0 ([#5786](https://www.github.com/tauri-apps/tauri/pull/5786)) on 2022-12-08
|
|
357
386
|
|
|
387
|
+
## \[1.5.10]
|
|
388
|
+
|
|
389
|
+
### Bug Fixes
|
|
390
|
+
|
|
391
|
+
- [`b0f27814`](https://www.github.com/tauri-apps/tauri/commit/b0f27814b90ded2f1ed44b7852080eedbff0d9e4)([#8776](https://www.github.com/tauri-apps/tauri/pull/8776)) Fix `fail to rename app` when using `--profile dev`.
|
|
392
|
+
- [`0bff8c32`](https://www.github.com/tauri-apps/tauri/commit/0bff8c325d004fdead2023f58e0f5fd73a9c22ba)([#8697](https://www.github.com/tauri-apps/tauri/pull/8697)) Fix the built-in dev server failing to serve files when URL had queries `?` and other url components.
|
|
393
|
+
- [`67d7877f`](https://www.github.com/tauri-apps/tauri/commit/67d7877f27f265c133a70d48a46c83ffff31d571)([#8520](https://www.github.com/tauri-apps/tauri/pull/8520)) The cli now also watches cargo workspace members if the tauri folder is the workspace root.
|
|
394
|
+
|
|
395
|
+
### Dependencies
|
|
396
|
+
|
|
397
|
+
- Upgraded to `tauri-cli@1.5.10`
|
|
398
|
+
|
|
399
|
+
## \[1.5.9]
|
|
400
|
+
|
|
401
|
+
### Bug Fixes
|
|
402
|
+
|
|
403
|
+
- [`0a2175ea`](https://www.github.com/tauri-apps/tauri/commit/0a2175eabb736b2a4cd01ab682e08be0b5ebb2b9)([#8439](https://www.github.com/tauri-apps/tauri/pull/8439)) Expand glob patterns in workspace member paths so the CLI would watch all matching pathhs.
|
|
404
|
+
|
|
405
|
+
### Dependencies
|
|
406
|
+
|
|
407
|
+
- Upgraded to `tauri-cli@1.5.9`
|
|
408
|
+
|
|
358
409
|
## \[1.5.8]
|
|
359
410
|
|
|
360
411
|
### Dependencies
|
package/main.js
CHANGED
|
@@ -6,9 +6,9 @@ const { run, logError } = require('./index')
|
|
|
6
6
|
|
|
7
7
|
module.exports.run = (args, binName) => {
|
|
8
8
|
return new Promise((resolve, reject) => {
|
|
9
|
-
run(args, binName, res => {
|
|
10
|
-
if (
|
|
11
|
-
reject(
|
|
9
|
+
run(args, binName, (error, res) => {
|
|
10
|
+
if (error) {
|
|
11
|
+
reject(error)
|
|
12
12
|
} else {
|
|
13
13
|
resolve(res)
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tauri-apps/cli",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.2",
|
|
4
4
|
"description": "Command line interface for building Tauri apps",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "opencollective",
|
|
@@ -68,15 +68,15 @@
|
|
|
68
68
|
"format:check": "prettier --check ./package.json ./tauri.js"
|
|
69
69
|
},
|
|
70
70
|
"optionalDependencies": {
|
|
71
|
-
"@tauri-apps/cli-win32-x64-msvc": "2.0.0-beta.
|
|
72
|
-
"@tauri-apps/cli-darwin-x64": "2.0.0-beta.
|
|
73
|
-
"@tauri-apps/cli-linux-x64-gnu": "2.0.0-beta.
|
|
74
|
-
"@tauri-apps/cli-darwin-arm64": "2.0.0-beta.
|
|
75
|
-
"@tauri-apps/cli-linux-arm64-gnu": "2.0.0-beta.
|
|
76
|
-
"@tauri-apps/cli-linux-arm64-musl": "2.0.0-beta.
|
|
77
|
-
"@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-beta.
|
|
78
|
-
"@tauri-apps/cli-linux-x64-musl": "2.0.0-beta.
|
|
79
|
-
"@tauri-apps/cli-win32-ia32-msvc": "2.0.0-beta.
|
|
80
|
-
"@tauri-apps/cli-win32-arm64-msvc": "2.0.0-beta.
|
|
71
|
+
"@tauri-apps/cli-win32-x64-msvc": "2.0.0-beta.2",
|
|
72
|
+
"@tauri-apps/cli-darwin-x64": "2.0.0-beta.2",
|
|
73
|
+
"@tauri-apps/cli-linux-x64-gnu": "2.0.0-beta.2",
|
|
74
|
+
"@tauri-apps/cli-darwin-arm64": "2.0.0-beta.2",
|
|
75
|
+
"@tauri-apps/cli-linux-arm64-gnu": "2.0.0-beta.2",
|
|
76
|
+
"@tauri-apps/cli-linux-arm64-musl": "2.0.0-beta.2",
|
|
77
|
+
"@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-beta.2",
|
|
78
|
+
"@tauri-apps/cli-linux-x64-musl": "2.0.0-beta.2",
|
|
79
|
+
"@tauri-apps/cli-win32-ia32-msvc": "2.0.0-beta.2",
|
|
80
|
+
"@tauri-apps/cli-win32-arm64-msvc": "2.0.0-beta.2"
|
|
81
81
|
}
|
|
82
82
|
}
|
package/schema.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"title": "Config",
|
|
4
|
-
"description": "The Tauri configuration object. It is read from a file where you can define your frontend assets, configure the bundler and define a tray icon.\n\nThe configuration file is generated by the [`tauri init`](https://tauri.app/v1/api/cli#init) command that lives in your Tauri application source directory (src-tauri).\n\nOnce generated, you may modify it at will to customize your Tauri application.\n\n## File Formats\n\nBy default, the configuration is defined as a JSON file named `tauri.conf.json`.\n\nTauri also supports JSON5 and TOML files via the `config-json5` and `config-toml` Cargo features, respectively. The JSON5 file name must be either `tauri.conf.json` or `tauri.conf.json5`. The TOML file name is `Tauri.toml`.\n\n## Platform-Specific Configuration\n\nIn addition to the default configuration file, Tauri can read a platform-specific configuration from `tauri.linux.conf.json`, `tauri.windows.conf.json`, `tauri.macos.conf.json`, `tauri.android.conf.json` and `tauri.ios.conf.json` (or `Tauri.linux.toml`, `Tauri.windows.toml`, `Tauri.macos.toml`, `Tauri.android.toml` and `Tauri.ios.toml` if the `Tauri.toml` format is used), which gets merged with the main configuration object.\n\n## Configuration Structure\n\nThe configuration is composed of the following objects:\n\n- [`
|
|
4
|
+
"description": "The Tauri configuration object. It is read from a file where you can define your frontend assets, configure the bundler and define a tray icon.\n\nThe configuration file is generated by the [`tauri init`](https://tauri.app/v1/api/cli#init) command that lives in your Tauri application source directory (src-tauri).\n\nOnce generated, you may modify it at will to customize your Tauri application.\n\n## File Formats\n\nBy default, the configuration is defined as a JSON file named `tauri.conf.json`.\n\nTauri also supports JSON5 and TOML files via the `config-json5` and `config-toml` Cargo features, respectively. The JSON5 file name must be either `tauri.conf.json` or `tauri.conf.json5`. The TOML file name is `Tauri.toml`.\n\n## Platform-Specific Configuration\n\nIn addition to the default configuration file, Tauri can read a platform-specific configuration from `tauri.linux.conf.json`, `tauri.windows.conf.json`, `tauri.macos.conf.json`, `tauri.android.conf.json` and `tauri.ios.conf.json` (or `Tauri.linux.toml`, `Tauri.windows.toml`, `Tauri.macos.toml`, `Tauri.android.toml` and `Tauri.ios.toml` if the `Tauri.toml` format is used), which gets merged with the main configuration object.\n\n## Configuration Structure\n\nThe configuration is composed of the following objects:\n\n- [`app`](#appconfig): The Tauri configuration - [`build`](#buildconfig): The build configuration - [`bundle`](#bundleconfig): The bundle configurations - [`plugins`](#pluginconfig): The plugins configuration\n\n```json title=\"Example tauri.config.json file\" { \"productName\": \"tauri-app\", \"version\": \"0.1.0\" \"build\": { \"beforeBuildCommand\": \"\", \"beforeDevCommand\": \"\", \"devUrl\": \"../dist\", \"frontendDist\": \"../dist\" }, \"app\": { \"security\": { \"csp\": null }, \"windows\": [ { \"fullscreen\": false, \"height\": 600, \"resizable\": true, \"title\": \"Tauri App\", \"width\": 800 } ] }, \"bundle\": {}, \"plugins\": {} } ```",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"$schema": {
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"enable": false,
|
|
41
41
|
"scope": []
|
|
42
42
|
},
|
|
43
|
+
"capabilities": [],
|
|
43
44
|
"dangerousDisableAssetCspModification": false,
|
|
44
45
|
"freezePrototype": false,
|
|
45
46
|
"pattern": {
|
|
@@ -158,6 +159,7 @@
|
|
|
158
159
|
"enable": false,
|
|
159
160
|
"scope": []
|
|
160
161
|
},
|
|
162
|
+
"capabilities": [],
|
|
161
163
|
"dangerousDisableAssetCspModification": false,
|
|
162
164
|
"freezePrototype": false,
|
|
163
165
|
"pattern": {
|
|
@@ -878,6 +880,14 @@
|
|
|
878
880
|
"$ref": "#/definitions/PatternKind"
|
|
879
881
|
}
|
|
880
882
|
]
|
|
883
|
+
},
|
|
884
|
+
"capabilities": {
|
|
885
|
+
"description": "List of capabilities that are enabled on the application.\n\nIf the list is empty, all capabilities are included.",
|
|
886
|
+
"default": [],
|
|
887
|
+
"type": "array",
|
|
888
|
+
"items": {
|
|
889
|
+
"$ref": "#/definitions/CapabilityEntry"
|
|
890
|
+
}
|
|
881
891
|
}
|
|
882
892
|
},
|
|
883
893
|
"additionalProperties": false
|
|
@@ -1040,6 +1050,271 @@
|
|
|
1040
1050
|
}
|
|
1041
1051
|
]
|
|
1042
1052
|
},
|
|
1053
|
+
"CapabilityEntry": {
|
|
1054
|
+
"description": "A capability entry which can be either an inlined capability or a reference to a capability defined on its own file.",
|
|
1055
|
+
"anyOf": [
|
|
1056
|
+
{
|
|
1057
|
+
"description": "An inlined capability.",
|
|
1058
|
+
"allOf": [
|
|
1059
|
+
{
|
|
1060
|
+
"$ref": "#/definitions/Capability"
|
|
1061
|
+
}
|
|
1062
|
+
]
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
"description": "Reference to a capability identifier.",
|
|
1066
|
+
"type": "string"
|
|
1067
|
+
}
|
|
1068
|
+
]
|
|
1069
|
+
},
|
|
1070
|
+
"Capability": {
|
|
1071
|
+
"description": "a grouping and boundary mechanism developers can use to separate windows or plugins functionality from each other at runtime.\n\nIf a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create trust groups and reduce impact of vulnerabilities in certain plugins or windows. Windows can be added to a capability by exact name or glob patterns like *, admin-* or main-window.",
|
|
1072
|
+
"type": "object",
|
|
1073
|
+
"required": [
|
|
1074
|
+
"identifier",
|
|
1075
|
+
"permissions",
|
|
1076
|
+
"windows"
|
|
1077
|
+
],
|
|
1078
|
+
"properties": {
|
|
1079
|
+
"identifier": {
|
|
1080
|
+
"description": "Identifier of the capability.",
|
|
1081
|
+
"type": "string"
|
|
1082
|
+
},
|
|
1083
|
+
"description": {
|
|
1084
|
+
"description": "Description of the capability.",
|
|
1085
|
+
"default": "",
|
|
1086
|
+
"type": "string"
|
|
1087
|
+
},
|
|
1088
|
+
"context": {
|
|
1089
|
+
"description": "Execution context of the capability.\n\nAt runtime, Tauri filters the IPC command together with the context to determine whether it is allowed or not and its scope.",
|
|
1090
|
+
"default": "local",
|
|
1091
|
+
"allOf": [
|
|
1092
|
+
{
|
|
1093
|
+
"$ref": "#/definitions/CapabilityContext"
|
|
1094
|
+
}
|
|
1095
|
+
]
|
|
1096
|
+
},
|
|
1097
|
+
"windows": {
|
|
1098
|
+
"description": "List of windows that uses this capability. Can be a glob pattern.\n\nOn multiwebview windows, prefer [`Self::webviews`] for a fine grained access control.",
|
|
1099
|
+
"type": "array",
|
|
1100
|
+
"items": {
|
|
1101
|
+
"type": "string"
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
"webviews": {
|
|
1105
|
+
"description": "List of webviews that uses this capability. Can be a glob pattern.\n\nThis is only required when using on multiwebview contexts, by default all child webviews of a window that matches [`Self::windows`] are linked.",
|
|
1106
|
+
"type": "array",
|
|
1107
|
+
"items": {
|
|
1108
|
+
"type": "string"
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
"permissions": {
|
|
1112
|
+
"description": "List of permissions attached to this capability. Must include the plugin name as prefix in the form of `${plugin-name}:${permission-name}`.",
|
|
1113
|
+
"type": "array",
|
|
1114
|
+
"items": {
|
|
1115
|
+
"$ref": "#/definitions/PermissionEntry"
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
"platforms": {
|
|
1119
|
+
"description": "Target platforms this capability applies. By default all platforms applies.",
|
|
1120
|
+
"default": [
|
|
1121
|
+
"linux",
|
|
1122
|
+
"macOS",
|
|
1123
|
+
"windows",
|
|
1124
|
+
"android",
|
|
1125
|
+
"iOS"
|
|
1126
|
+
],
|
|
1127
|
+
"type": "array",
|
|
1128
|
+
"items": {
|
|
1129
|
+
"$ref": "#/definitions/Target"
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1134
|
+
"CapabilityContext": {
|
|
1135
|
+
"description": "Context of the capability.",
|
|
1136
|
+
"oneOf": [
|
|
1137
|
+
{
|
|
1138
|
+
"description": "Capability refers to local URL usage.",
|
|
1139
|
+
"type": "string",
|
|
1140
|
+
"enum": [
|
|
1141
|
+
"local"
|
|
1142
|
+
]
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
"description": "Capability refers to remote usage.",
|
|
1146
|
+
"type": "object",
|
|
1147
|
+
"required": [
|
|
1148
|
+
"remote"
|
|
1149
|
+
],
|
|
1150
|
+
"properties": {
|
|
1151
|
+
"remote": {
|
|
1152
|
+
"type": "object",
|
|
1153
|
+
"required": [
|
|
1154
|
+
"urls"
|
|
1155
|
+
],
|
|
1156
|
+
"properties": {
|
|
1157
|
+
"urls": {
|
|
1158
|
+
"description": "Remote domains this capability refers to. Can use glob patterns.",
|
|
1159
|
+
"type": "array",
|
|
1160
|
+
"items": {
|
|
1161
|
+
"type": "string"
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
},
|
|
1167
|
+
"additionalProperties": false
|
|
1168
|
+
}
|
|
1169
|
+
]
|
|
1170
|
+
},
|
|
1171
|
+
"PermissionEntry": {
|
|
1172
|
+
"description": "An entry for a permission value in a [`Capability`] can be either a raw permission [`Identifier`] or an object that references a permission and extends its scope.",
|
|
1173
|
+
"anyOf": [
|
|
1174
|
+
{
|
|
1175
|
+
"description": "Reference a permission or permission set by identifier.",
|
|
1176
|
+
"allOf": [
|
|
1177
|
+
{
|
|
1178
|
+
"$ref": "#/definitions/Identifier"
|
|
1179
|
+
}
|
|
1180
|
+
]
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"description": "Reference a permission or permission set by identifier and extends its scope.",
|
|
1184
|
+
"type": "object",
|
|
1185
|
+
"required": [
|
|
1186
|
+
"identifier"
|
|
1187
|
+
],
|
|
1188
|
+
"properties": {
|
|
1189
|
+
"identifier": {
|
|
1190
|
+
"description": "Identifier of the permission or permission set.",
|
|
1191
|
+
"allOf": [
|
|
1192
|
+
{
|
|
1193
|
+
"$ref": "#/definitions/Identifier"
|
|
1194
|
+
}
|
|
1195
|
+
]
|
|
1196
|
+
},
|
|
1197
|
+
"allow": {
|
|
1198
|
+
"description": "Data that defines what is allowed by the scope.",
|
|
1199
|
+
"type": [
|
|
1200
|
+
"array",
|
|
1201
|
+
"null"
|
|
1202
|
+
],
|
|
1203
|
+
"items": {
|
|
1204
|
+
"$ref": "#/definitions/Value"
|
|
1205
|
+
}
|
|
1206
|
+
},
|
|
1207
|
+
"deny": {
|
|
1208
|
+
"description": "Data that defines what is denied by the scope.",
|
|
1209
|
+
"type": [
|
|
1210
|
+
"array",
|
|
1211
|
+
"null"
|
|
1212
|
+
],
|
|
1213
|
+
"items": {
|
|
1214
|
+
"$ref": "#/definitions/Value"
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
]
|
|
1220
|
+
},
|
|
1221
|
+
"Identifier": {
|
|
1222
|
+
"type": "string"
|
|
1223
|
+
},
|
|
1224
|
+
"Value": {
|
|
1225
|
+
"description": "All supported ACL values.",
|
|
1226
|
+
"anyOf": [
|
|
1227
|
+
{
|
|
1228
|
+
"description": "Represents a null JSON value.",
|
|
1229
|
+
"type": "null"
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
"description": "Represents a [`bool`].",
|
|
1233
|
+
"type": "boolean"
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
"description": "Represents a valid ACL [`Number`].",
|
|
1237
|
+
"allOf": [
|
|
1238
|
+
{
|
|
1239
|
+
"$ref": "#/definitions/Number"
|
|
1240
|
+
}
|
|
1241
|
+
]
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
"description": "Represents a [`String`].",
|
|
1245
|
+
"type": "string"
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
"description": "Represents a list of other [`Value`]s.",
|
|
1249
|
+
"type": "array",
|
|
1250
|
+
"items": {
|
|
1251
|
+
"$ref": "#/definitions/Value"
|
|
1252
|
+
}
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
"description": "Represents a map of [`String`] keys to [`Value`]s.",
|
|
1256
|
+
"type": "object",
|
|
1257
|
+
"additionalProperties": {
|
|
1258
|
+
"$ref": "#/definitions/Value"
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
]
|
|
1262
|
+
},
|
|
1263
|
+
"Number": {
|
|
1264
|
+
"description": "A valid ACL number.",
|
|
1265
|
+
"anyOf": [
|
|
1266
|
+
{
|
|
1267
|
+
"description": "Represents an [`i64`].",
|
|
1268
|
+
"type": "integer",
|
|
1269
|
+
"format": "int64"
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"description": "Represents a [`f64`].",
|
|
1273
|
+
"type": "number",
|
|
1274
|
+
"format": "double"
|
|
1275
|
+
}
|
|
1276
|
+
]
|
|
1277
|
+
},
|
|
1278
|
+
"Target": {
|
|
1279
|
+
"description": "Platform target.",
|
|
1280
|
+
"oneOf": [
|
|
1281
|
+
{
|
|
1282
|
+
"description": "MacOS.",
|
|
1283
|
+
"type": "string",
|
|
1284
|
+
"enum": [
|
|
1285
|
+
"macOS"
|
|
1286
|
+
]
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"description": "Windows.",
|
|
1290
|
+
"type": "string",
|
|
1291
|
+
"enum": [
|
|
1292
|
+
"windows"
|
|
1293
|
+
]
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"description": "Linux.",
|
|
1297
|
+
"type": "string",
|
|
1298
|
+
"enum": [
|
|
1299
|
+
"linux"
|
|
1300
|
+
]
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"description": "Android.",
|
|
1304
|
+
"type": "string",
|
|
1305
|
+
"enum": [
|
|
1306
|
+
"android"
|
|
1307
|
+
]
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
"description": "iOS.",
|
|
1311
|
+
"type": "string",
|
|
1312
|
+
"enum": [
|
|
1313
|
+
"iOS"
|
|
1314
|
+
]
|
|
1315
|
+
}
|
|
1316
|
+
]
|
|
1317
|
+
},
|
|
1043
1318
|
"TrayIconConfig": {
|
|
1044
1319
|
"description": "Configuration for application tray icon.\n\nSee more: <https://tauri.app/v1/api/config#trayiconconfig>",
|
|
1045
1320
|
"type": "object",
|
|
@@ -2180,6 +2455,27 @@
|
|
|
2180
2455
|
"string",
|
|
2181
2456
|
"null"
|
|
2182
2457
|
]
|
|
2458
|
+
},
|
|
2459
|
+
"section": {
|
|
2460
|
+
"description": "Define the section in Debian Control file. See : https://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections",
|
|
2461
|
+
"type": [
|
|
2462
|
+
"string",
|
|
2463
|
+
"null"
|
|
2464
|
+
]
|
|
2465
|
+
},
|
|
2466
|
+
"priority": {
|
|
2467
|
+
"description": "Change the priority of the Debian Package. By default, it is set to `optional`. Recognized Priorities as of now are : `required`, `important`, `standard`, `optional`, `extra`",
|
|
2468
|
+
"type": [
|
|
2469
|
+
"string",
|
|
2470
|
+
"null"
|
|
2471
|
+
]
|
|
2472
|
+
},
|
|
2473
|
+
"changelog": {
|
|
2474
|
+
"description": "Path of the uncompressed Changelog file, to be stored at /usr/share/doc/package-name/changelog.gz. See https://www.debian.org/doc/debian-policy/ch-docs.html#changelog-files-and-release-notes",
|
|
2475
|
+
"type": [
|
|
2476
|
+
"string",
|
|
2477
|
+
"null"
|
|
2478
|
+
]
|
|
2183
2479
|
}
|
|
2184
2480
|
},
|
|
2185
2481
|
"additionalProperties": false
|
package/src/lib.rs
CHANGED
|
@@ -12,7 +12,7 @@ pub fn run(args: Vec<String>, bin_name: Option<String>, callback: JsFunction) ->
|
|
|
12
12
|
let function: ThreadsafeFunction<bool, ErrorStrategy::CalleeHandled> = callback
|
|
13
13
|
.create_threadsafe_function(0, |ctx| ctx.env.get_boolean(ctx.value).map(|v| vec![v]))?;
|
|
14
14
|
|
|
15
|
-
// we need to run in a separate thread so Node.js
|
|
15
|
+
// we need to run in a separate thread so Node.js consumers
|
|
16
16
|
// can do work while `tauri dev` is running.
|
|
17
17
|
std::thread::spawn(move || match tauri_cli::try_run(args, bin_name) {
|
|
18
18
|
Ok(_) => function.call(Ok(true), ThreadsafeFunctionCallMode::Blocking),
|