@tauri-apps/cli 2.0.0-alpha.10 → 2.0.0-alpha.12

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/package.json +15 -13
  3. package/schema.json +135 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## \[2.0.0-alpha.12]
4
+
5
+ ### Bug Fixes
6
+
7
+ - [`b75a1210`](https://www.github.com/tauri-apps/tauri/commit/b75a1210bed589187678861d7314ae6279bf7c87)([#7762](https://www.github.com/tauri-apps/tauri/pull/7762)) Fixes a regression on alpha.11 where iOS logs aren't being displayed when using `ios dev` with a real device.
8
+ - [`8faa5a4a`](https://www.github.com/tauri-apps/tauri/commit/8faa5a4a1238a44ca7b54d2084aaed553ac2a1ba)([#7765](https://www.github.com/tauri-apps/tauri/pull/7765)) Ensure asset directory exists on the iOS project.
9
+
10
+ ### Dependencies
11
+
12
+ - Upgraded to `tauri-cli@2.0.0-alpha.12`
13
+
14
+ ## \[2.0.0-alpha.11]
15
+
16
+ ### New Features
17
+
18
+ - [`522de0e7`](https://www.github.com/tauri-apps/tauri/commit/522de0e78891d0bdf6387a5118985fc41a11baeb)([#7447](https://www.github.com/tauri-apps/tauri/pull/7447)) Expose an environment variable `TAURI_${PLUGIN_NAME}_PLUGIN_CONFIG` for each defined plugin configuration object.
19
+ - [`c7dacca4`](https://www.github.com/tauri-apps/tauri/commit/c7dacca4661c6ddf937c1a3dd3ace896d5baf40c)([#7446](https://www.github.com/tauri-apps/tauri/pull/7446)) Expose the `TAURI_IOS_PROJECT_PATH` and `TAURI_IOS_APP_NAME` environment variables when using `ios` commands.
20
+ - [`aa94f719`](https://www.github.com/tauri-apps/tauri/commit/aa94f7197e4345a7cab1617272b10895859674f9)([#7445](https://www.github.com/tauri-apps/tauri/pull/7445)) Generate empty entitlements file for the iOS project.
21
+ - [`d010bc07`](https://www.github.com/tauri-apps/tauri/commit/d010bc07b81116bef769b64cdc19b23dff762d48)([#7554](https://www.github.com/tauri-apps/tauri/pull/7554)) Set the iOS project PRODUCT_NAME value to the string under `tauri.conf.json > package > productName` if it is set.
22
+ - [`8af24974`](https://www.github.com/tauri-apps/tauri/commit/8af2497496f11ee481472dfdc3125757346c1a3e)([#7561](https://www.github.com/tauri-apps/tauri/pull/7561)) The `migrate` command now automatically reads all JavaScript files and updates `@tauri-apps/api` import paths and install the missing plugins.
23
+
24
+ ### Enhancements
25
+
26
+ - [`fbeb5b91`](https://www.github.com/tauri-apps/tauri/commit/fbeb5b9185baeda19e865228179e3e44c165f1d9)([#7170](https://www.github.com/tauri-apps/tauri/pull/7170)) Update migrate command to update the configuration CSP to include `ipc:` on the `connect-src` directive, needed by the new IPC using custom protocols.
27
+
28
+ ### Dependencies
29
+
30
+ - Upgraded to `tauri-cli@2.0.0-alpha.11`
31
+
3
32
  ## \[2.0.0-alpha.10]
4
33
 
5
34
  ### New Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tauri-apps/cli",
3
- "version": "2.0.0-alpha.10",
3
+ "version": "2.0.0-alpha.12",
4
4
  "description": "Command line interface for building Tauri apps",
5
5
  "funding": {
6
6
  "type": "opencollective",
@@ -47,7 +47,8 @@
47
47
  "prettier": "2.8.8"
48
48
  },
49
49
  "resolutions": {
50
- "json5": "2.2.3"
50
+ "json5": "2.2.3",
51
+ "semver": ">=7.5.2"
51
52
  },
52
53
  "engines": {
53
54
  "node": ">= 10"
@@ -57,7 +58,7 @@
57
58
  },
58
59
  "scripts": {
59
60
  "artifacts": "napi artifacts",
60
- "build:release": "cross-env TARGET=node napi build --platform --release",
61
+ "build:release": "cross-env TARGET=node napi build --platform --profile release-size-optimized",
61
62
  "build": "cross-env TARGET=node napi build --platform",
62
63
  "prepublishOnly": "napi prepublish -t npm --gh-release-id $RELEASE_ID",
63
64
  "prepack": "cp ../schema.json .",
@@ -67,16 +68,17 @@
67
68
  "format": "prettier --write ./package.json ./tauri.js",
68
69
  "format:check": "prettier --check ./package.json ./tauri.js"
69
70
  },
71
+ "dependencies": {},
70
72
  "optionalDependencies": {
71
- "@tauri-apps/cli-win32-x64-msvc": "2.0.0-alpha.10",
72
- "@tauri-apps/cli-darwin-x64": "2.0.0-alpha.10",
73
- "@tauri-apps/cli-linux-x64-gnu": "2.0.0-alpha.10",
74
- "@tauri-apps/cli-darwin-arm64": "2.0.0-alpha.10",
75
- "@tauri-apps/cli-linux-arm64-gnu": "2.0.0-alpha.10",
76
- "@tauri-apps/cli-linux-arm64-musl": "2.0.0-alpha.10",
77
- "@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-alpha.10",
78
- "@tauri-apps/cli-linux-x64-musl": "2.0.0-alpha.10",
79
- "@tauri-apps/cli-win32-ia32-msvc": "2.0.0-alpha.10",
80
- "@tauri-apps/cli-win32-arm64-msvc": "2.0.0-alpha.10"
73
+ "@tauri-apps/cli-win32-x64-msvc": "2.0.0-alpha.12",
74
+ "@tauri-apps/cli-darwin-x64": "2.0.0-alpha.12",
75
+ "@tauri-apps/cli-linux-x64-gnu": "2.0.0-alpha.12",
76
+ "@tauri-apps/cli-darwin-arm64": "2.0.0-alpha.12",
77
+ "@tauri-apps/cli-linux-arm64-gnu": "2.0.0-alpha.12",
78
+ "@tauri-apps/cli-linux-arm64-musl": "2.0.0-alpha.12",
79
+ "@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-alpha.12",
80
+ "@tauri-apps/cli-linux-x64-musl": "2.0.0-alpha.12",
81
+ "@tauri-apps/cli-win32-ia32-msvc": "2.0.0-alpha.12",
82
+ "@tauri-apps/cli-win32-arm64-msvc": "2.0.0-alpha.12"
81
83
  }
82
84
  }
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 system tray.\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- [`package`](#packageconfig): Package settings - [`tauri`](#tauriconfig): The Tauri config - [`build`](#buildconfig): The build configuration - [`plugins`](#pluginconfig): The plugins config\n\n```json title=\"Example tauri.config.json file\" { \"build\": { \"beforeBuildCommand\": \"\", \"beforeDevCommand\": \"\", \"devPath\": \"../dist\", \"distDir\": \"../dist\" }, \"package\": { \"productName\": \"tauri-app\", \"version\": \"0.1.0\" }, \"tauri\": { \"bundle\": {}, \"security\": { \"csp\": null }, \"windows\": [ { \"fullscreen\": false, \"height\": 600, \"resizable\": true, \"title\": \"Tauri App\", \"width\": 800 } ] } } ```",
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- [`package`](#packageconfig): Package settings - [`tauri`](#tauriconfig): The Tauri config - [`build`](#buildconfig): The build configuration - [`plugins`](#pluginconfig): The plugins config\n\n```json title=\"Example tauri.config.json file\" { \"build\": { \"beforeBuildCommand\": \"\", \"beforeDevCommand\": \"\", \"devPath\": \"../dist\", \"distDir\": \"../dist\" }, \"package\": { \"productName\": \"tauri-app\", \"version\": \"0.1.0\" }, \"tauri\": { \"bundle\": {}, \"security\": { \"csp\": null }, \"windows\": [ { \"fullscreen\": false, \"height\": 600, \"resizable\": true, \"title\": \"Tauri App\", \"width\": 800 } ] } } ```",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "$schema": {
@@ -223,11 +223,11 @@
223
223
  }
224
224
  ]
225
225
  },
226
- "systemTray": {
227
- "description": "Configuration for app system tray.",
226
+ "trayIcon": {
227
+ "description": "Configuration for app tray icon.",
228
228
  "anyOf": [
229
229
  {
230
- "$ref": "#/definitions/SystemTrayConfig"
230
+ "$ref": "#/definitions/TrayIconConfig"
231
231
  },
232
232
  {
233
233
  "type": "null"
@@ -445,6 +445,11 @@
445
445
  "default": false,
446
446
  "type": "boolean"
447
447
  },
448
+ "visibleOnAllWorkspaces": {
449
+ "description": "Whether the window should be visible on all workspaces or virtual desktops.",
450
+ "default": false,
451
+ "type": "boolean"
452
+ },
448
453
  "contentProtected": {
449
454
  "description": "Prevents the window contents from being captured by other apps.",
450
455
  "default": false,
@@ -771,12 +776,26 @@
771
776
  ]
772
777
  },
773
778
  {
774
- "description": "*Windows 11 Only**",
779
+ "description": "Mica effect that matches the system dark perefence **Windows 11 Only**",
775
780
  "type": "string",
776
781
  "enum": [
777
782
  "mica"
778
783
  ]
779
784
  },
785
+ {
786
+ "description": "Mica effect with dark mode but only if dark mode is enabled on the system **Windows 11 Only**",
787
+ "type": "string",
788
+ "enum": [
789
+ "micaDark"
790
+ ]
791
+ },
792
+ {
793
+ "description": "Mica effect with light mode **Windows 11 Only**",
794
+ "type": "string",
795
+ "enum": [
796
+ "micaLight"
797
+ ]
798
+ },
780
799
  {
781
800
  "description": "**Windows 7/10/11(22H1) Only**\n\n## Notes\n\nThis effect has bad performance when resizing/dragging the window on Windows 11 build 22621.",
782
801
  "type": "string",
@@ -911,6 +930,16 @@
911
930
  "null"
912
931
  ]
913
932
  },
933
+ "fileAssociations": {
934
+ "description": "File associations to application.",
935
+ "type": [
936
+ "array",
937
+ "null"
938
+ ],
939
+ "items": {
940
+ "$ref": "#/definitions/FileAssociation"
941
+ }
942
+ },
914
943
  "shortDescription": {
915
944
  "description": "A short description of your application.",
916
945
  "type": [
@@ -1108,6 +1137,97 @@
1108
1137
  }
1109
1138
  ]
1110
1139
  },
1140
+ "FileAssociation": {
1141
+ "description": "File association",
1142
+ "type": "object",
1143
+ "required": [
1144
+ "ext"
1145
+ ],
1146
+ "properties": {
1147
+ "ext": {
1148
+ "description": "File extensions to associate with this app. e.g. 'png'",
1149
+ "type": "array",
1150
+ "items": {
1151
+ "$ref": "#/definitions/AssociationExt"
1152
+ }
1153
+ },
1154
+ "name": {
1155
+ "description": "The name. Maps to `CFBundleTypeName` on macOS. Default to ext[0]",
1156
+ "type": [
1157
+ "string",
1158
+ "null"
1159
+ ]
1160
+ },
1161
+ "description": {
1162
+ "description": "The association description. Windows-only. It is displayed on the `Type` column on Windows Explorer.",
1163
+ "type": [
1164
+ "string",
1165
+ "null"
1166
+ ]
1167
+ },
1168
+ "role": {
1169
+ "description": "The app’s role with respect to the type. Maps to `CFBundleTypeRole` on macOS.",
1170
+ "default": "Editor",
1171
+ "allOf": [
1172
+ {
1173
+ "$ref": "#/definitions/BundleTypeRole"
1174
+ }
1175
+ ]
1176
+ },
1177
+ "mimeType": {
1178
+ "description": "The mime-type e.g. 'image/png' or 'text/plain'. Linux-only.",
1179
+ "type": [
1180
+ "string",
1181
+ "null"
1182
+ ]
1183
+ }
1184
+ },
1185
+ "additionalProperties": false
1186
+ },
1187
+ "AssociationExt": {
1188
+ "description": "An extension for a [`FileAssociation`].\n\nA leading `.` is automatically stripped.",
1189
+ "type": "string"
1190
+ },
1191
+ "BundleTypeRole": {
1192
+ "description": "macOS-only. Corresponds to CFBundleTypeRole",
1193
+ "oneOf": [
1194
+ {
1195
+ "description": "CFBundleTypeRole.Editor. Files can be read and edited.",
1196
+ "type": "string",
1197
+ "enum": [
1198
+ "Editor"
1199
+ ]
1200
+ },
1201
+ {
1202
+ "description": "CFBundleTypeRole.Viewer. Files can be read.",
1203
+ "type": "string",
1204
+ "enum": [
1205
+ "Viewer"
1206
+ ]
1207
+ },
1208
+ {
1209
+ "description": "CFBundleTypeRole.Shell",
1210
+ "type": "string",
1211
+ "enum": [
1212
+ "Shell"
1213
+ ]
1214
+ },
1215
+ {
1216
+ "description": "CFBundleTypeRole.QLGenerator",
1217
+ "type": "string",
1218
+ "enum": [
1219
+ "QLGenerator"
1220
+ ]
1221
+ },
1222
+ {
1223
+ "description": "CFBundleTypeRole.None",
1224
+ "type": "string",
1225
+ "enum": [
1226
+ "None"
1227
+ ]
1228
+ }
1229
+ ]
1230
+ },
1111
1231
  "AppImageConfig": {
1112
1232
  "description": "Configuration for AppImage bundles.\n\nSee more: https://tauri.app/v1/api/config#appimageconfig",
1113
1233
  "type": "object",
@@ -1945,15 +2065,15 @@
1945
2065
  }
1946
2066
  ]
1947
2067
  },
1948
- "SystemTrayConfig": {
1949
- "description": "Configuration for application system tray icon.\n\nSee more: https://tauri.app/v1/api/config#systemtrayconfig",
2068
+ "TrayIconConfig": {
2069
+ "description": "Configuration for application tray icon.\n\nSee more: https://tauri.app/v1/api/config#trayiconconfig",
1950
2070
  "type": "object",
1951
2071
  "required": [
1952
2072
  "iconPath"
1953
2073
  ],
1954
2074
  "properties": {
1955
2075
  "iconPath": {
1956
- "description": "Path to the default icon to use on the system tray.",
2076
+ "description": "Path to the default icon to use for the tray icon.",
1957
2077
  "type": "string"
1958
2078
  },
1959
2079
  "iconAsTemplate": {
@@ -1972,6 +2092,13 @@
1972
2092
  "string",
1973
2093
  "null"
1974
2094
  ]
2095
+ },
2096
+ "tooltip": {
2097
+ "description": "Tray icon tooltip on Windows and macOS",
2098
+ "type": [
2099
+ "string",
2100
+ "null"
2101
+ ]
1975
2102
  }
1976
2103
  },
1977
2104
  "additionalProperties": false