@tauri-apps/cli 2.0.0-alpha.9 → 2.0.0-beta.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 +365 -0
- package/Cargo.toml +8 -6
- package/README.md +2 -2
- package/index.d.ts +4 -0
- package/index.js +5 -1
- package/package.json +17 -15
- package/schema.json +1457 -823
- package/tauri.js +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,238 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## \[2.0.0-beta.0]
|
|
4
|
+
|
|
5
|
+
### New Features
|
|
6
|
+
|
|
7
|
+
- [`7fcc0bcd`](https://www.github.com/tauri-apps/tauri/commit/7fcc0bcd3482bbc8771e330942ef6cd78cc8ec35)([#8490](https://www.github.com/tauri-apps/tauri/pull/8490)) Add plugin initialization rust code when using `tauri add`
|
|
8
|
+
- [`1878766f`](https://www.github.com/tauri-apps/tauri/commit/1878766f7f81a03b0f0b87ec33ee113d7aa7a902)([#8667](https://www.github.com/tauri-apps/tauri/pull/8667)) Migrate the allowlist config to the new capability file format.
|
|
9
|
+
|
|
10
|
+
### Enhancements
|
|
11
|
+
|
|
12
|
+
- [`d6c7568c`](https://www.github.com/tauri-apps/tauri/commit/d6c7568c27445653edf570f3969163bc358ba2ba)([#8720](https://www.github.com/tauri-apps/tauri/pull/8720)) Add `files` option to the AppImage Configuration.
|
|
13
|
+
- [`b3209bb2`](https://www.github.com/tauri-apps/tauri/commit/b3209bb28bb379d5046d577c7e42319d6e76ced0)([#8688](https://www.github.com/tauri-apps/tauri/pull/8688)) Ignore global `.gitignore` when searching for tauri directory.
|
|
14
|
+
- [`e691208e`](https://www.github.com/tauri-apps/tauri/commit/e691208e7b39bb8e3ffc9bf66cff731a5025ef16)([#7837](https://www.github.com/tauri-apps/tauri/pull/7837)) Prevent unneeded double Cargo.toml rewrite on `dev` and `build`.
|
|
15
|
+
- [`f492efd7`](https://www.github.com/tauri-apps/tauri/commit/f492efd7144fdd8d25cac0c4d2389a95ab75fb02)([#8666](https://www.github.com/tauri-apps/tauri/pull/8666)) Update app and plugin template following the new access control permission model.
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
- [`9cb9aa79`](https://www.github.com/tauri-apps/tauri/commit/9cb9aa7978f231f7da238b33d6ab33fdd2d2c842)([#8672](https://www.github.com/tauri-apps/tauri/pull/8672)) Allow license field in Cargo.toml to be `{ workspace = true }`
|
|
20
|
+
|
|
21
|
+
### Dependencies
|
|
22
|
+
|
|
23
|
+
- Upgraded to `tauri-cli@2.0.0-beta.0`
|
|
24
|
+
|
|
25
|
+
### Breaking Changes
|
|
26
|
+
|
|
27
|
+
- [`8de308d1`](https://www.github.com/tauri-apps/tauri/commit/8de308d1bf6a855d7a26af58bd0e744938ba47d8)([#8723](https://www.github.com/tauri-apps/tauri/pull/8723)) Restructured Tauri config per [RFC#5](https://github.com/tauri-apps/rfcs/blob/f3e82a6b0c5390401e855850d47dc7b7d9afd684/texts/0005-tauri-config-restructure.md):
|
|
28
|
+
|
|
29
|
+
- Moved `package.productName`, `package.version` and `tauri.bundle.identifier` fields to the top-level.
|
|
30
|
+
- Removed `package` object.
|
|
31
|
+
- Renamed `tauri` object to `app`.
|
|
32
|
+
- Moved `tauri.bundle` object to the top-level.
|
|
33
|
+
- Renamed `build.distDir` field to `frontendDist`.
|
|
34
|
+
- Renamed `build.devPath` field to `devUrl` and will no longer accepts paths, it will only accept URLs.
|
|
35
|
+
- Moved `tauri.pattern` to `app.security.pattern`.
|
|
36
|
+
- Removed `tauri.bundle.updater` object, and its fields have been moved to the updater plugin under `plugins.updater` object.
|
|
37
|
+
- Moved `build.withGlobalTauri` to `app.withGlobalTauri`.
|
|
38
|
+
- Moved `tauri.bundle.dmg` object to `bundle.macOS.dmg`.
|
|
39
|
+
- Moved `tauri.bundle.deb` object to `bundle.linux.deb`.
|
|
40
|
+
- Moved `tauri.bundle.appimage` object to `bundle.linux.appimage`.
|
|
41
|
+
- Removed all license fields from each bundle configuration object and instead added `bundle.license` and `bundle.licenseFile`.
|
|
42
|
+
- Renamed `AppUrl` to `FrontendDist` and refactored its variants to be more explicit.
|
|
43
|
+
|
|
44
|
+
## \[2.0.0-alpha.21]
|
|
45
|
+
|
|
46
|
+
### New Features
|
|
47
|
+
|
|
48
|
+
- [`27bad32d`](https://www.github.com/tauri-apps/tauri/commit/27bad32d4d4acca8155b20225d529d540fb9aaf4)([#7798](https://www.github.com/tauri-apps/tauri/pull/7798)) Add `files` object on the `tauri > bundle > macOS` configuration option.
|
|
49
|
+
- [`0ec28c39`](https://www.github.com/tauri-apps/tauri/commit/0ec28c39f478de7199a66dd75e8642e1aa1344e6)([#8529](https://www.github.com/tauri-apps/tauri/pull/8529)) Include tauri-build on the migration script.
|
|
50
|
+
|
|
51
|
+
### Enhancements
|
|
52
|
+
|
|
53
|
+
- [`091100ac`](https://www.github.com/tauri-apps/tauri/commit/091100acbb507b51de39fb1446f685926f888fd2)([#5202](https://www.github.com/tauri-apps/tauri/pull/5202)) Add RPM packaging
|
|
54
|
+
|
|
55
|
+
### Bug Fixes
|
|
56
|
+
|
|
57
|
+
- [`4f73057e`](https://www.github.com/tauri-apps/tauri/commit/4f73057e6fd4c137bc112367fb91f5fc0c8a39f6)([#8486](https://www.github.com/tauri-apps/tauri/pull/8486)) Prevent `Invalid target triple` warnings and correctly set `TAURI_ENV_` vars when target triple contains 4 components.
|
|
58
|
+
|
|
59
|
+
### Dependencies
|
|
60
|
+
|
|
61
|
+
- Upgraded to `tauri-cli@2.0.0-alpha.21`
|
|
62
|
+
|
|
63
|
+
### Breaking Changes
|
|
64
|
+
|
|
65
|
+
- [`4f73057e`](https://www.github.com/tauri-apps/tauri/commit/4f73057e6fd4c137bc112367fb91f5fc0c8a39f6)([#8486](https://www.github.com/tauri-apps/tauri/pull/8486)) Removed `TAURI_ENV_PLATFORM_TYPE` which will not be set for CLI hook commands anymore, use `TAURI_ENV_PLATFORM` instead. Also Changed value of `TAURI_ENV_PLATFORM` and `TAURI_ENV_ARCH` values to match the target triple more accurately:
|
|
66
|
+
|
|
67
|
+
- `darwin` and `androideabi` are no longer replaced with `macos` and `android` in `TAURI_ENV_PLATFORM`.
|
|
68
|
+
- `i686` and `i586` are no longer replaced with `x86` in `TAURI_ENV_ARCH`.
|
|
69
|
+
|
|
70
|
+
## \[2.0.0-alpha.20]
|
|
71
|
+
|
|
72
|
+
### Dependencies
|
|
73
|
+
|
|
74
|
+
- Upgraded to `tauri-cli@2.0.0-alpha.20`
|
|
75
|
+
|
|
76
|
+
## \[2.0.0-alpha.19]
|
|
77
|
+
|
|
78
|
+
### Dependencies
|
|
79
|
+
|
|
80
|
+
- Upgraded to `tauri-cli@2.0.0-alpha.19`
|
|
81
|
+
|
|
82
|
+
## \[2.0.0-alpha.18]
|
|
83
|
+
|
|
84
|
+
### New Features
|
|
85
|
+
|
|
86
|
+
- [`50f7ccbb`](https://www.github.com/tauri-apps/tauri/commit/50f7ccbbf3467f33cc7dd1cca53125fec6eda1c6)([#6444](https://www.github.com/tauri-apps/tauri/pull/6444)) Add suport to SVG input image for the `tauri icon` command.
|
|
87
|
+
- [`25e5f91d`](https://www.github.com/tauri-apps/tauri/commit/25e5f91dae7fe2bbc1ba4317d5d829402bfd1d50)([#8200](https://www.github.com/tauri-apps/tauri/pull/8200)) Merge `src-tauri/Info.plist` and `src-tauri/Info.ios.plist` with the iOS project plist file.
|
|
88
|
+
|
|
89
|
+
### Enhancements
|
|
90
|
+
|
|
91
|
+
- [`01a7a983`](https://www.github.com/tauri-apps/tauri/commit/01a7a983aba2946b455a608b8a6a4b08cb25fc11)([#8128](https://www.github.com/tauri-apps/tauri/pull/8128)) Transform paths to relative to the mobile project for the IDE script runner script.
|
|
92
|
+
|
|
93
|
+
### Bug Fixes
|
|
94
|
+
|
|
95
|
+
- [`88dac86f`](https://www.github.com/tauri-apps/tauri/commit/88dac86f3b301d1919df6473a9e20f46b560f29b)([#8149](https://www.github.com/tauri-apps/tauri/pull/8149)) Ensure `tauri add` prints `rust_code` with plugin name in snake case.
|
|
96
|
+
- [`977d0e52`](https://www.github.com/tauri-apps/tauri/commit/977d0e52f14b1ad01c86371765ef25b36572459e)([#8202](https://www.github.com/tauri-apps/tauri/pull/8202)) Fixes `android build --open` and `ios build --open` IDE failing to read CLI options.
|
|
97
|
+
- [`bfbbefdb`](https://www.github.com/tauri-apps/tauri/commit/bfbbefdb9e13ed1f42f6db7fa9ceaa84db1267e9)([#8161](https://www.github.com/tauri-apps/tauri/pull/8161)) Fix invalid plugin template.
|
|
98
|
+
- [`92b50a3a`](https://www.github.com/tauri-apps/tauri/commit/92b50a3a398c9d55b6992a8f5c2571e4d72bdaaf)([#8209](https://www.github.com/tauri-apps/tauri/pull/8209)) Added support to Xcode's archive. This requires regenerating the Xcode project.
|
|
99
|
+
|
|
100
|
+
### Dependencies
|
|
101
|
+
|
|
102
|
+
- Upgraded to `tauri-cli@2.0.0-alpha.18`
|
|
103
|
+
|
|
104
|
+
## \[2.0.0-alpha.17]
|
|
105
|
+
|
|
106
|
+
### Enhancements
|
|
107
|
+
|
|
108
|
+
- [`c6c59cf2`](https://www.github.com/tauri-apps/tauri/commit/c6c59cf2373258b626b00a26f4de4331765dd487) Pull changes from Tauri 1.5 release.
|
|
109
|
+
|
|
110
|
+
### Dependencies
|
|
111
|
+
|
|
112
|
+
- Upgraded to `tauri-cli@2.0.0-alpha.17`
|
|
113
|
+
|
|
114
|
+
### Breaking Changes
|
|
115
|
+
|
|
116
|
+
- [`198abe3c`](https://www.github.com/tauri-apps/tauri/commit/198abe3c2cae06dacab860b3a93f715dcf529a95)([#8076](https://www.github.com/tauri-apps/tauri/pull/8076)) Updated the mobile plugin templates following the tauri v2.0.0-alpha.17 changes.
|
|
117
|
+
|
|
118
|
+
## \[2.0.0-alpha.16]
|
|
119
|
+
|
|
120
|
+
### New Features
|
|
121
|
+
|
|
122
|
+
- [`8b166e9b`](https://www.github.com/tauri-apps/tauri/commit/8b166e9bf82e69ddb3200a3a825614980bd8d433)([#7949](https://www.github.com/tauri-apps/tauri/pull/7949)) Add `--no-dev-server-wait` option to skip waiting for the dev server to start when using `tauri dev`.
|
|
123
|
+
|
|
124
|
+
### Dependencies
|
|
125
|
+
|
|
126
|
+
- Upgraded to `tauri-cli@2.0.0-alpha.16`
|
|
127
|
+
|
|
128
|
+
### Breaking Changes
|
|
129
|
+
|
|
130
|
+
- [`8b166e9b`](https://www.github.com/tauri-apps/tauri/commit/8b166e9bf82e69ddb3200a3a825614980bd8d433)([#7949](https://www.github.com/tauri-apps/tauri/pull/7949)) Changed a number of environment variables used by tauri CLI for consistency and clarity:
|
|
131
|
+
|
|
132
|
+
- `TAURI_PRIVATE_KEY` -> `TAURI_SIGNING_PRIVATE_KEY`
|
|
133
|
+
- `TAURI_KEY_PASSWORD` -> `TAURI_SIGNING_PRIVATE_KEY_PASSWORD`
|
|
134
|
+
- `TAURI_SKIP_DEVSERVER_CHECK` -> `TAURI_CLI_NO_DEV_SERVER_WAIT`
|
|
135
|
+
- `TAURI_DEV_SERVER_PORT` -> `TAURI_CLI_PORT`
|
|
136
|
+
- `TAURI_PATH_DEPTH` -> `TAURI_CLI_CONFIG_DEPTH`
|
|
137
|
+
- `TAURI_FIPS_COMPLIANT` -> `TAURI_BUNDLER_WIX_FIPS_COMPLIANT`
|
|
138
|
+
- `TAURI_DEV_WATCHER_IGNORE_FILE` -> `TAURI_CLI_WATCHER_IGNORE_FILENAME`
|
|
139
|
+
- `TAURI_TRAY` -> `TAURI_LINUX_AYATANA_APPINDICATOR`
|
|
140
|
+
- `TAURI_APPLE_DEVELOPMENT_TEAM` -> `APPLE_DEVELOPMENT_TEAM`
|
|
141
|
+
- [`4caa1cca`](https://www.github.com/tauri-apps/tauri/commit/4caa1cca990806f2c2ef32d5dabaf56e82f349e6)([#7990](https://www.github.com/tauri-apps/tauri/pull/7990)) The `tauri plugin` subcommand is receving a couple of consitency and quality of life improvements:
|
|
142
|
+
|
|
143
|
+
- Renamed `tauri plugin android/ios add` command to `tauri plugin android/ios init` to match the `tauri plugin init` command.
|
|
144
|
+
- Removed the `-n/--name` argument from the `tauri plugin init`, `tauri plugin android/ios init`, and is now parsed from the first positional argument.
|
|
145
|
+
- Added `tauri plugin new` to create a plugin in a new directory.
|
|
146
|
+
- Changed `tauri plugin init` to initalize a plugin in an existing directory (defaults to current directory) instead of creating a new one.
|
|
147
|
+
- Changed `tauri plugin init` to NOT generate mobile projects by default, you can opt-in to generate them using `--android` and `--ios` flags or `--mobile` flag or initalize them later using `tauri plugin android/ios init`.
|
|
148
|
+
- [`8b166e9b`](https://www.github.com/tauri-apps/tauri/commit/8b166e9bf82e69ddb3200a3a825614980bd8d433)([#7949](https://www.github.com/tauri-apps/tauri/pull/7949)) Removed checking for a new version of the CLI.
|
|
149
|
+
- [`ebcc21e4`](https://www.github.com/tauri-apps/tauri/commit/ebcc21e4b95f4e8c27639fb1bca545b432f52d5e)([#8057](https://www.github.com/tauri-apps/tauri/pull/8057)) Renamed the beforeDevCommand, beforeBuildCommand and beforeBundleCommand hooks environment variables from `TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG` to `TAURI_ENV_PLATFORM, TAURI_ENV_ARCH, TAURI_ENV_FAMILY, TAURI_ENV_PLATFORM_VERSION, TAURI_ENV_PLATFORM_TYPE and TAURI_ENV_DEBUG` to differentiate the prefix with other CLI environment variables.
|
|
150
|
+
|
|
151
|
+
## \[2.0.0-alpha.15]
|
|
152
|
+
|
|
153
|
+
### New Features
|
|
154
|
+
|
|
155
|
+
- [`b2f17723`](https://www.github.com/tauri-apps/tauri/commit/b2f17723a415f04c2620132a6305eb138d7cb47f)([#7971](https://www.github.com/tauri-apps/tauri/pull/7971)) Use `devicectl` to connect to iOS 17+ devices on macOS 14+.
|
|
156
|
+
|
|
157
|
+
### Bug Fixes
|
|
158
|
+
|
|
159
|
+
- [`100d9ede`](https://www.github.com/tauri-apps/tauri/commit/100d9ede35995d9db21d2087dd5606adfafb89a5)([#7802](https://www.github.com/tauri-apps/tauri/pull/7802)) Properly read platform-specific configuration files for mobile targets.
|
|
160
|
+
- [`228e5a4c`](https://www.github.com/tauri-apps/tauri/commit/228e5a4c76ad5f97409c912d07699b49ba4bb162)([#7902](https://www.github.com/tauri-apps/tauri/pull/7902)) Fixes `icon` command not writing files to the correct Android project folders.
|
|
161
|
+
|
|
162
|
+
### Dependencies
|
|
163
|
+
|
|
164
|
+
- Upgraded to `tauri-cli@2.0.0-alpha.15`
|
|
165
|
+
|
|
166
|
+
## \[2.0.0-alpha.14]
|
|
167
|
+
|
|
168
|
+
### Dependencies
|
|
169
|
+
|
|
170
|
+
- Upgraded to `tauri-cli@2.0.0-alpha.14`
|
|
171
|
+
|
|
172
|
+
### Breaking Changes
|
|
173
|
+
|
|
174
|
+
- [`d5074af5`](https://www.github.com/tauri-apps/tauri/commit/d5074af562b2b5cb6c5711442097c4058af32db6)([#7801](https://www.github.com/tauri-apps/tauri/pull/7801)) The custom protocol on Android now uses the `http` scheme instead of `https`.
|
|
175
|
+
|
|
176
|
+
## \[2.0.0-alpha.13]
|
|
177
|
+
|
|
178
|
+
### Dependencies
|
|
179
|
+
|
|
180
|
+
- Upgraded to `tauri-cli@2.0.0-alpha.13`
|
|
181
|
+
|
|
182
|
+
### Breaking Changes
|
|
183
|
+
|
|
184
|
+
- [`4cb51a2d`](https://www.github.com/tauri-apps/tauri/commit/4cb51a2d56cfcae0749062c79ede5236bd8c02c2)([#7779](https://www.github.com/tauri-apps/tauri/pull/7779)) The custom protocol on Windows now uses the `http` scheme instead of `https`.
|
|
185
|
+
- [`974e38b4`](https://www.github.com/tauri-apps/tauri/commit/974e38b4ddc198530aa977ec77d513b76013b9f3)([#7744](https://www.github.com/tauri-apps/tauri/pull/7744)) Renamed the `plugin add` command to `add`.
|
|
186
|
+
|
|
187
|
+
## \[2.0.0-alpha.12]
|
|
188
|
+
|
|
189
|
+
### Bug Fixes
|
|
190
|
+
|
|
191
|
+
- [`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.
|
|
192
|
+
- [`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.
|
|
193
|
+
|
|
194
|
+
### Dependencies
|
|
195
|
+
|
|
196
|
+
- Upgraded to `tauri-cli@2.0.0-alpha.12`
|
|
197
|
+
|
|
198
|
+
## \[2.0.0-alpha.11]
|
|
199
|
+
|
|
200
|
+
### New Features
|
|
201
|
+
|
|
202
|
+
- [`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.
|
|
203
|
+
- [`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.
|
|
204
|
+
- [`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.
|
|
205
|
+
- [`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.
|
|
206
|
+
- [`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.
|
|
207
|
+
|
|
208
|
+
### Enhancements
|
|
209
|
+
|
|
210
|
+
- [`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.
|
|
211
|
+
|
|
212
|
+
### Dependencies
|
|
213
|
+
|
|
214
|
+
- Upgraded to `tauri-cli@2.0.0-alpha.11`
|
|
215
|
+
|
|
216
|
+
## \[2.0.0-alpha.10]
|
|
217
|
+
|
|
218
|
+
### New Features
|
|
219
|
+
|
|
220
|
+
- [`7e5905ae`](https://www.github.com/tauri-apps/tauri/commit/7e5905ae1d56b920de0e821be28036cbbe302518)([#7023](https://www.github.com/tauri-apps/tauri/pull/7023)) Added `tauri plugin add` command to add a plugin to the Tauri project.
|
|
221
|
+
- [`b0f94775`](https://www.github.com/tauri-apps/tauri/commit/b0f947752a315b7b89c5979de50157f997f1dd6e)([#7008](https://www.github.com/tauri-apps/tauri/pull/7008)) Added `migrate` command.
|
|
222
|
+
|
|
223
|
+
### Enhancements
|
|
224
|
+
|
|
225
|
+
- [`aa6c9164`](https://www.github.com/tauri-apps/tauri/commit/aa6c9164e63b5316d690f25b1c118f1b12310570)([#7007](https://www.github.com/tauri-apps/tauri/pull/7007)) Don't build library files when building desktop targets.
|
|
226
|
+
- [`a28fdf7e`](https://www.github.com/tauri-apps/tauri/commit/a28fdf7ec71bf6db2498569004de83318b6d25ac)([#7044](https://www.github.com/tauri-apps/tauri/pull/7044)) Skip Rust target installation if they are already installed.
|
|
227
|
+
- [`735db1ce`](https://www.github.com/tauri-apps/tauri/commit/735db1ce839a16ba998c9e6786c441e3bf6c90b3)([#7044](https://www.github.com/tauri-apps/tauri/pull/7044)) Add `--skip-targets-install` flag for `tauri android init` and `tauri ios init` to skip installing needed rust targets vie rustup.
|
|
228
|
+
|
|
229
|
+
### Bug Fixes
|
|
230
|
+
|
|
231
|
+
- [`1ed2600d`](https://www.github.com/tauri-apps/tauri/commit/1ed2600da67715908af857255305eaeb293d8791)([#6771](https://www.github.com/tauri-apps/tauri/pull/6771)) Set current directory to tauri directory before reading config file.
|
|
232
|
+
- [`4847b87b`](https://www.github.com/tauri-apps/tauri/commit/4847b87b1067dd8c6e73986059f51e6eee1f1121)([#7209](https://www.github.com/tauri-apps/tauri/pull/7209)) Fix `tauri (android|ios) (dev|build)` failing when using `npx tauri`
|
|
233
|
+
- [`655c714e`](https://www.github.com/tauri-apps/tauri/commit/655c714e4100f69d4265c5ea3f08f5bc11709446)([#7240](https://www.github.com/tauri-apps/tauri/pull/7240)) Fixes panic when exiting the `ios dev` command with Ctrl + C.
|
|
234
|
+
- [`6252380f`](https://www.github.com/tauri-apps/tauri/commit/6252380f4447c66913b0f06611e5949005b1eec2)([#7241](https://www.github.com/tauri-apps/tauri/pull/7241)) Exit `beforeDevCommand` process if the android or iOS `dev` command fails.
|
|
235
|
+
|
|
3
236
|
## \[2.0.0-alpha.9]
|
|
4
237
|
|
|
5
238
|
- [`19cd0e49`](https://www.github.com/tauri-apps/tauri/commit/19cd0e49603ad3500cd2180bfa16e1649e3a771a)([#6811](https://www.github.com/tauri-apps/tauri/pull/6811)) Add `key.properties` file to android's `.gitignore`.
|
|
@@ -122,6 +355,138 @@
|
|
|
122
355
|
- First mobile alpha release!
|
|
123
356
|
- [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
|
|
124
357
|
|
|
358
|
+
## \[1.5.8]
|
|
359
|
+
|
|
360
|
+
### Dependencies
|
|
361
|
+
|
|
362
|
+
- Upgraded to `tauri-cli@1.5.8`
|
|
363
|
+
|
|
364
|
+
## \[1.5.7]
|
|
365
|
+
|
|
366
|
+
### Bug Fixes
|
|
367
|
+
|
|
368
|
+
- [`1d5aa38a`](https://www.github.com/tauri-apps/tauri/commit/1d5aa38ae418ea31f593590b6d32cf04d3bfd8c1)([#8162](https://www.github.com/tauri-apps/tauri/pull/8162)) Fixes errors on command output, occuring when the output stream contains an invalid UTF-8 character, or ends with a multi-bytes UTF-8 character.
|
|
369
|
+
- [`f26d9f08`](https://www.github.com/tauri-apps/tauri/commit/f26d9f0884f63f61b9f4d4fac15e6b251163793e)([#8263](https://www.github.com/tauri-apps/tauri/pull/8263)) Fixes an issue in the NSIS installer which caused the uninstallation to leave empty folders on the system if the `resources` feature was used.
|
|
370
|
+
- [`92bc7d0e`](https://www.github.com/tauri-apps/tauri/commit/92bc7d0e16157434330a1bcf1eefda6f0f1e5f85)([#8233](https://www.github.com/tauri-apps/tauri/pull/8233)) Fixes an issue in the NSIS installer which caused the installation to take much longer than expected when many `resources` were added to the bundle.
|
|
371
|
+
|
|
372
|
+
### Dependencies
|
|
373
|
+
|
|
374
|
+
- Upgraded to `tauri-cli@1.5.7`
|
|
375
|
+
|
|
376
|
+
## \[1.5.6]
|
|
377
|
+
|
|
378
|
+
### Bug Fixes
|
|
379
|
+
|
|
380
|
+
- [`5264e41d`](https://www.github.com/tauri-apps/tauri/commit/5264e41db3763e4c2eb0c3c21bd423fb7bece3e2)([#8082](https://www.github.com/tauri-apps/tauri/pull/8082)) Downgraded `rust-minisign` to `0.7.3` to fix signing updater bundles with empty passwords.
|
|
381
|
+
|
|
382
|
+
### Dependencies
|
|
383
|
+
|
|
384
|
+
- Upgraded to `tauri-cli@1.5.6`
|
|
385
|
+
|
|
386
|
+
## \[1.5.5]
|
|
387
|
+
|
|
388
|
+
### Enhancements
|
|
389
|
+
|
|
390
|
+
- [`9bead42d`](https://www.github.com/tauri-apps/tauri/commit/9bead42dbca0fb6dd7ea0b6bfb2f2308a5c5f992)([#8059](https://www.github.com/tauri-apps/tauri/pull/8059)) Allow rotating the updater private key.
|
|
391
|
+
|
|
392
|
+
### Bug Fixes
|
|
393
|
+
|
|
394
|
+
- [`be8e5aa3`](https://www.github.com/tauri-apps/tauri/commit/be8e5aa3071d9bc5d0bd24647e8168f312d11c8d)([#8042](https://www.github.com/tauri-apps/tauri/pull/8042)) Fixes duplicated newlines on command outputs.
|
|
395
|
+
|
|
396
|
+
### Dependencies
|
|
397
|
+
|
|
398
|
+
- Upgraded to `tauri-cli@1.5.5`
|
|
399
|
+
|
|
400
|
+
## \[1.5.4]
|
|
401
|
+
|
|
402
|
+
### Dependencies
|
|
403
|
+
|
|
404
|
+
- Upgraded to `tauri-cli@1.5.4`
|
|
405
|
+
|
|
406
|
+
## \[1.5.3]
|
|
407
|
+
|
|
408
|
+
### Dependencies
|
|
409
|
+
|
|
410
|
+
- Upgraded to `tauri-cli@1.5.3`
|
|
411
|
+
|
|
412
|
+
## \[1.5.2]
|
|
413
|
+
|
|
414
|
+
### Dependencies
|
|
415
|
+
|
|
416
|
+
- Upgraded to `tauri-cli@1.5.2`
|
|
417
|
+
|
|
418
|
+
## \[1.5.1]
|
|
419
|
+
|
|
420
|
+
### Bug Fixes
|
|
421
|
+
|
|
422
|
+
- [`d6eb46cf`](https://www.github.com/tauri-apps/tauri/commit/d6eb46cf1116d147121f6b6db9d390b5e2fb238d)([#7934](https://www.github.com/tauri-apps/tauri/pull/7934)) On macOS, fix the `apple-id` option name when using `notarytools submit`.
|
|
423
|
+
|
|
424
|
+
### Dependencies
|
|
425
|
+
|
|
426
|
+
- Upgraded to `tauri-cli@1.5.1`
|
|
427
|
+
|
|
428
|
+
## \[1.5.0]
|
|
429
|
+
|
|
430
|
+
### New Features
|
|
431
|
+
|
|
432
|
+
- [`e1526626`](https://www.github.com/tauri-apps/tauri/commit/e152662687ece7a62d383923a50751cc0dd34331)([#7723](https://www.github.com/tauri-apps/tauri/pull/7723)) Support Bun package manager in CLI
|
|
433
|
+
|
|
434
|
+
### Enhancements
|
|
435
|
+
|
|
436
|
+
- [`13279917`](https://www.github.com/tauri-apps/tauri/commit/13279917d4cae071d0ce3a686184d48af079f58a)([#7713](https://www.github.com/tauri-apps/tauri/pull/7713)) Add version of Rust Tauri CLI installed with Cargo to `tauri info` command.
|
|
437
|
+
|
|
438
|
+
### Bug Fixes
|
|
439
|
+
|
|
440
|
+
- [`dad4f54e`](https://www.github.com/tauri-apps/tauri/commit/dad4f54eec9773d2ea6233a7d9fd218741173823)([#7277](https://www.github.com/tauri-apps/tauri/pull/7277)) Removed the automatic version check of the CLI that ran after `tauri` commands which caused various issues.
|
|
441
|
+
|
|
442
|
+
### Dependencies
|
|
443
|
+
|
|
444
|
+
- Upgraded to `tauri-cli@1.5.0`
|
|
445
|
+
|
|
446
|
+
## \[1.4.0]
|
|
447
|
+
|
|
448
|
+
### New Features
|
|
449
|
+
|
|
450
|
+
- [`0ddbb3a1`](https://www.github.com/tauri-apps/tauri/commit/0ddbb3a1dc1961ba5c6c1a60081513c1380c8af1)([#7015](https://www.github.com/tauri-apps/tauri/pull/7015)) Provide prebuilt CLIs for Windows ARM64 targets.
|
|
451
|
+
- [`35cd751a`](https://www.github.com/tauri-apps/tauri/commit/35cd751adc6fef1f792696fa0cfb471b0bf99374)([#5176](https://www.github.com/tauri-apps/tauri/pull/5176)) Added the `desktop_template` option on `tauri.conf.json > tauri > bundle > deb`.
|
|
452
|
+
- [`6c5ade08`](https://www.github.com/tauri-apps/tauri/commit/6c5ade08d97844bb685789d30e589400bbe3e04c)([#4537](https://www.github.com/tauri-apps/tauri/pull/4537)) Added `tauri completions` to generate shell completions scripts.
|
|
453
|
+
- [`e092f799`](https://www.github.com/tauri-apps/tauri/commit/e092f799469ff32c7d1595d0f07d06fd2dab5c29)([#6887](https://www.github.com/tauri-apps/tauri/pull/6887)) Add `nsis > template` option to specify custom NSIS installer template.
|
|
454
|
+
|
|
455
|
+
### Enhancements
|
|
456
|
+
|
|
457
|
+
- [`d75c1b82`](https://www.github.com/tauri-apps/tauri/commit/d75c1b829bd96d9e3a672bcc79120597d5ada4a0)([#7181](https://www.github.com/tauri-apps/tauri/pull/7181)) Print a useful error when `updater` bundle target is specified without an updater-enabled target.
|
|
458
|
+
- [`52474e47`](https://www.github.com/tauri-apps/tauri/commit/52474e479d695865299d8c8d868fb98b99731020)([#7141](https://www.github.com/tauri-apps/tauri/pull/7141)) Enhance injection of Cargo features.
|
|
459
|
+
- [`2659ca1a`](https://www.github.com/tauri-apps/tauri/commit/2659ca1ab4799a5bda65c229c149e98bd01eb1ee)([#6900](https://www.github.com/tauri-apps/tauri/pull/6900)) Add `rustls` as default Cargo feature.
|
|
460
|
+
|
|
461
|
+
### Bug Fixes
|
|
462
|
+
|
|
463
|
+
- [`3cb7a3e6`](https://www.github.com/tauri-apps/tauri/commit/3cb7a3e642bb10ee90dc1d24daa48b8c8c15c9ce)([#6997](https://www.github.com/tauri-apps/tauri/pull/6997)) Fix built-in devserver adding hot-reload code to non-html files.
|
|
464
|
+
- [`fb7ef8da`](https://www.github.com/tauri-apps/tauri/commit/fb7ef8dacd9ade96976c84d22507782cdaf38acf)([#6667](https://www.github.com/tauri-apps/tauri/pull/6667)) Fix nodejs binary regex when `0` is in the version name, for example `node-20`
|
|
465
|
+
- [`1253bbf7`](https://www.github.com/tauri-apps/tauri/commit/1253bbf7ae11a87887e0b3bd98cc26dbb98c8130)([#7013](https://www.github.com/tauri-apps/tauri/pull/7013)) Fixes Cargo.toml feature rewriting.
|
|
466
|
+
|
|
467
|
+
## \[1.3.1]
|
|
468
|
+
|
|
469
|
+
- Correctly escape XML for resource files in WiX bundler.
|
|
470
|
+
- Bumped due to a bump in tauri-bundler.
|
|
471
|
+
- Bumped due to a bump in cli.rs.
|
|
472
|
+
- [6a6b1388](https://www.github.com/tauri-apps/tauri/commit/6a6b1388ea5787aea4c0e0b0701a4772087bbc0f) fix(bundler): correctly escape resource xml, fixes [#6853](https://www.github.com/tauri-apps/tauri/pull/6853) ([#6855](https://www.github.com/tauri-apps/tauri/pull/6855)) on 2023-05-04
|
|
473
|
+
|
|
474
|
+
- Added the following languages to the NSIS bundler:
|
|
475
|
+
|
|
476
|
+
- `Spanish`
|
|
477
|
+
|
|
478
|
+
- `SpanishInternational`
|
|
479
|
+
|
|
480
|
+
- Bumped due to a bump in tauri-bundler.
|
|
481
|
+
- Bumped due to a bump in cli.rs.
|
|
482
|
+
|
|
483
|
+
- [422b4817](https://www.github.com/tauri-apps/tauri/commit/422b48179856504e980a156500afa8e22c44d357) Add Spanish and SpanishInternational languages ([#6871](https://www.github.com/tauri-apps/tauri/pull/6871)) on 2023-05-06
|
|
484
|
+
|
|
485
|
+
- Correctly escape arguments in NSIS script to fix bundling apps that use non-default WebView2 install modes.
|
|
486
|
+
- Bumped due to a bump in tauri-bundler.
|
|
487
|
+
- Bumped due to a bump in cli.rs.
|
|
488
|
+
- [2915bd06](https://www.github.com/tauri-apps/tauri/commit/2915bd068ed40dc01a363b69212c6b6f2d3ec01e) fix(bundler): Fix webview install modes in NSIS bundler ([#6854](https://www.github.com/tauri-apps/tauri/pull/6854)) on 2023-05-04
|
|
489
|
+
|
|
125
490
|
## \[1.3.0]
|
|
126
491
|
|
|
127
492
|
- Add `--ci` flag and respect the `CI` environment variable on the `signer generate` command. In this case the default password will be an empty string and the CLI will not prompt for a value.
|
package/Cargo.toml
CHANGED
|
@@ -8,13 +8,15 @@ 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.
|
|
12
|
-
napi-derive = "2.
|
|
13
|
-
tauri-cli = { path = ".." }
|
|
14
|
-
log = "0.4.
|
|
11
|
+
napi = { version = "2.14", default-features = false, features = ["napi4"] }
|
|
12
|
+
napi-derive = "2.14"
|
|
13
|
+
tauri-cli = { path = "..", default-features = false }
|
|
14
|
+
log = "0.4.20"
|
|
15
15
|
|
|
16
16
|
[build-dependencies]
|
|
17
|
-
napi-build = "2.
|
|
17
|
+
napi-build = "2.1"
|
|
18
18
|
|
|
19
19
|
[features]
|
|
20
|
-
|
|
20
|
+
default = ["tauri-cli/default"]
|
|
21
|
+
native-tls = ["tauri-cli/native-tls"]
|
|
22
|
+
native-tls-vendored = ["tauri-cli/native-tls-vendored"]
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
[](https://github.com/tauri-apps/tauri/tree/dev)
|
|
5
5
|
[](https://opencollective.com/tauri)
|
|
6
|
-
[](https://github.com/tauri-apps/tauri/actions/workflows/test-cli-js.yml)
|
|
7
7
|
[](https://app.fossa.com/projects/git%2Bgithub.com%2Ftauri-apps%2Ftauri?ref=badge_shield)
|
|
8
8
|
[](https://discord.gg/SpmNs4S)
|
|
9
9
|
[](https://tauri.app)
|
|
@@ -19,7 +19,7 @@ Tauri is a polyglot and generic system that is very composable and allows engine
|
|
|
19
19
|
|
|
20
20
|
Tauri apps can have custom menus and have tray-type interfaces. They can be updated, and are managed by the user's operating system as expected. They are very small, because they use the system's webview. They do not ship a runtime, since the final binary is compiled from rust. This makes the reversing of Tauri apps not a trivial task.
|
|
21
21
|
## This module
|
|
22
|
-
Written in Typescript and packaged such that it can be used with `npm`, `pnpm`, and `
|
|
22
|
+
Written in Typescript and packaged such that it can be used with `npm`, `pnpm`, `yarn`, and `bun`, this library provides a node.js runner for common tasks when using Tauri, like `yarn tauri dev`. For the most part it is a wrapper around [tauri-cli](https://github.com/tauri-apps/tauri/blob/dev/tooling/cli).
|
|
23
23
|
|
|
24
24
|
To learn more about the details of how all of these pieces fit together, please consult this [ARCHITECTURE.md](https://github.com/tauri-apps/tauri/blob/dev/ARCHITECTURE.md) document.
|
|
25
25
|
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// SPDX-License-Identifier: MIT
|
|
4
|
+
|
|
1
5
|
/* tslint:disable */
|
|
2
6
|
/* eslint-disable */
|
|
3
7
|
/* prettier-ignore */
|
|
@@ -17,7 +21,7 @@ function isMusl() {
|
|
|
17
21
|
// For Node 10
|
|
18
22
|
if (!process.report || typeof process.report.getReport !== 'function') {
|
|
19
23
|
try {
|
|
20
|
-
const lddPath = require('child_process').execSync('which ldd').toString().trim()
|
|
24
|
+
const lddPath = require('child_process').execSync('which ldd').toString().trim()
|
|
21
25
|
return readFileSync(lddPath, 'utf8').includes('musl')
|
|
22
26
|
} catch (e) {
|
|
23
27
|
return true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tauri-apps/cli",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
4
4
|
"description": "Command line interface for building Tauri apps",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "opencollective",
|
|
@@ -32,18 +32,19 @@
|
|
|
32
32
|
"aarch64-unknown-linux-musl",
|
|
33
33
|
"armv7-unknown-linux-gnueabihf",
|
|
34
34
|
"x86_64-unknown-linux-musl",
|
|
35
|
-
"i686-pc-windows-msvc"
|
|
35
|
+
"i686-pc-windows-msvc",
|
|
36
|
+
"aarch64-pc-windows-msvc"
|
|
36
37
|
]
|
|
37
38
|
}
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
|
-
"@napi-rs/cli": "2.
|
|
41
|
+
"@napi-rs/cli": "2.16.1",
|
|
41
42
|
"cross-env": "7.0.3",
|
|
42
43
|
"cross-spawn": "7.0.3",
|
|
43
44
|
"fs-extra": "11.1.1",
|
|
44
|
-
"jest": "29.
|
|
45
|
+
"jest": "29.7.0",
|
|
45
46
|
"jest-transform-toml": "1.0.0",
|
|
46
|
-
"prettier": "2.8.
|
|
47
|
+
"prettier": "2.8.8"
|
|
47
48
|
},
|
|
48
49
|
"resolutions": {
|
|
49
50
|
"json5": "2.2.3"
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
},
|
|
57
58
|
"scripts": {
|
|
58
59
|
"artifacts": "napi artifacts",
|
|
59
|
-
"build:release": "cross-env TARGET=node napi build --platform --release",
|
|
60
|
+
"build:release": "cross-env TARGET=node napi build --platform --profile release-size-optimized",
|
|
60
61
|
"build": "cross-env TARGET=node napi build --platform",
|
|
61
62
|
"prepublishOnly": "napi prepublish -t npm --gh-release-id $RELEASE_ID",
|
|
62
63
|
"prepack": "cp ../schema.json .",
|
|
@@ -67,14 +68,15 @@
|
|
|
67
68
|
"format:check": "prettier --check ./package.json ./tauri.js"
|
|
68
69
|
},
|
|
69
70
|
"optionalDependencies": {
|
|
70
|
-
"@tauri-apps/cli-win32-x64-msvc": "2.0.0-
|
|
71
|
-
"@tauri-apps/cli-darwin-x64": "2.0.0-
|
|
72
|
-
"@tauri-apps/cli-linux-x64-gnu": "2.0.0-
|
|
73
|
-
"@tauri-apps/cli-darwin-arm64": "2.0.0-
|
|
74
|
-
"@tauri-apps/cli-linux-arm64-gnu": "2.0.0-
|
|
75
|
-
"@tauri-apps/cli-linux-arm64-musl": "2.0.0-
|
|
76
|
-
"@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-
|
|
77
|
-
"@tauri-apps/cli-linux-x64-musl": "2.0.0-
|
|
78
|
-
"@tauri-apps/cli-win32-ia32-msvc": "2.0.0-
|
|
71
|
+
"@tauri-apps/cli-win32-x64-msvc": "2.0.0-beta.0",
|
|
72
|
+
"@tauri-apps/cli-darwin-x64": "2.0.0-beta.0",
|
|
73
|
+
"@tauri-apps/cli-linux-x64-gnu": "2.0.0-beta.0",
|
|
74
|
+
"@tauri-apps/cli-darwin-arm64": "2.0.0-beta.0",
|
|
75
|
+
"@tauri-apps/cli-linux-arm64-gnu": "2.0.0-beta.0",
|
|
76
|
+
"@tauri-apps/cli-linux-arm64-musl": "2.0.0-beta.0",
|
|
77
|
+
"@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-beta.0",
|
|
78
|
+
"@tauri-apps/cli-linux-x64-musl": "2.0.0-beta.0",
|
|
79
|
+
"@tauri-apps/cli-win32-ia32-msvc": "2.0.0-beta.0",
|
|
80
|
+
"@tauri-apps/cli-win32-arm64-msvc": "2.0.0-beta.0"
|
|
79
81
|
}
|
|
80
82
|
}
|