@tauri-apps/cli 2.0.0-rc.1 → 2.0.0-rc.10
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 +188 -0
- package/Cargo.toml +1 -1
- package/README.md +17 -8
- package/{schema.json → config.schema.json} +74 -19
- package/index.d.ts +2 -2
- package/index.js +61 -3
- package/main.d.ts +4 -1
- package/package.json +14 -19
- package/src/lib.rs +25 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,193 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## \[2.0.0-rc.10]
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
- [`6faa03276`](https://www.github.com/tauri-apps/tauri/commit/6faa032766b23cd161503905d4c79365ff6c50d1) ([#10854](https://www.github.com/tauri-apps/tauri/pull/10854) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fixes iOS code signing failing on CI due to a missing development certificate.
|
|
8
|
+
|
|
9
|
+
### Dependencies
|
|
10
|
+
|
|
11
|
+
- Upgraded to `tauri-cli@2.0.0-rc.9`
|
|
12
|
+
|
|
13
|
+
## \[2.0.0-rc.9]
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- [`5af1f5dec`](https://www.github.com/tauri-apps/tauri/commit/5af1f5dec1bb98f335169df8c5e30c19a24cae07) ([#10851](https://www.github.com/tauri-apps/tauri/pull/10851) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fixes `ios build` failing to build iOS app in CI when using an API key for automatic signing.
|
|
18
|
+
|
|
19
|
+
### Dependencies
|
|
20
|
+
|
|
21
|
+
- Upgraded to `tauri-cli@2.0.0-rc.9`
|
|
22
|
+
|
|
23
|
+
## \[2.0.0-rc.8]
|
|
24
|
+
|
|
25
|
+
### New Features
|
|
26
|
+
|
|
27
|
+
- [`91e9e784a`](https://www.github.com/tauri-apps/tauri/commit/91e9e784aa59634e3fe6359f8b78d071d76a9e42) ([#10729](https://www.github.com/tauri-apps/tauri/pull/10729) by [@amrbashir](https://www.github.com/tauri-apps/tauri/../../amrbashir)) Add plugins information in `tauri info` output
|
|
28
|
+
- [`09e9dc1aa`](https://www.github.com/tauri-apps/tauri/commit/09e9dc1aab1b66aa6a3a009d5873db586abe76a0) ([#10752](https://www.github.com/tauri-apps/tauri/pull/10752) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Allow Xcode to manage iOS code sign and provisioning profiles by default.
|
|
29
|
+
On CI, the `APPLE_API_KEY`, `APPLE_API_ISSUER` and `APPLE_API_KEY_PATH` environment variables must be provided for authentication.
|
|
30
|
+
|
|
31
|
+
### Enhancements
|
|
32
|
+
|
|
33
|
+
- [`3a4972b39`](https://www.github.com/tauri-apps/tauri/commit/3a4972b394c65c32eefebfb2181ba56b0cfc08f7) ([#10793](https://www.github.com/tauri-apps/tauri/pull/10793) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Include architecture in the `tauri info` output.
|
|
34
|
+
- [`fd68b7fde`](https://www.github.com/tauri-apps/tauri/commit/fd68b7fdea3890d9f0a373a252a3682bd9d04138) ([#10785](https://www.github.com/tauri-apps/tauri/pull/10785) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Remove the `.cargo/config` file creation that used to fix mobile build caches.
|
|
35
|
+
- [`f67a9eb6d`](https://www.github.com/tauri-apps/tauri/commit/f67a9eb6de4567c2374b8cdbabadcf0ca44d28fb) ([#10802](https://www.github.com/tauri-apps/tauri/pull/10802) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Synchronize identifier, development team and lib name with the iOS Xcode project.
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
|
|
39
|
+
- [`83ed090bf`](https://www.github.com/tauri-apps/tauri/commit/83ed090bfa58a1784495f474d93b16a568be513f) ([#10790](https://www.github.com/tauri-apps/tauri/pull/10790) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Do not quit `ios dev` and `android dev` process when we fail to attach the logger.
|
|
40
|
+
- [`2d31aef75`](https://www.github.com/tauri-apps/tauri/commit/2d31aef759f496f3afe46b7697176e61a8570511) ([#10751](https://www.github.com/tauri-apps/tauri/pull/10751) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Ensure gradlew is executable and does not use CRLF so it can be used on UNIX systems.
|
|
41
|
+
- [`02b2f964a`](https://www.github.com/tauri-apps/tauri/commit/02b2f964a70c61ff08b5052bd9fcde472d706d9c) ([#10795](https://www.github.com/tauri-apps/tauri/pull/10795) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fix the `add` command NPM version specifier for known plugins from `2.0.0-rc` (unknown version requirement) to `^2.0.0-rc`.
|
|
42
|
+
- [`84070bae9`](https://www.github.com/tauri-apps/tauri/commit/84070bae92d234bc3630e795cfaf79f869f3a751) ([#10792](https://www.github.com/tauri-apps/tauri/pull/10792) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fix `tauri plugin ios init` not generating the iOS folder.
|
|
43
|
+
- [`edb2ca31f`](https://www.github.com/tauri-apps/tauri/commit/edb2ca31f70a39004b6a09ae53425f22e243318e) ([#10794](https://www.github.com/tauri-apps/tauri/pull/10794) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Migrate v1 plugins NPM packages.
|
|
44
|
+
- [`9718dc9e8`](https://www.github.com/tauri-apps/tauri/commit/9718dc9e8c9bc91d9a5d9e0e06a7afab62492152) ([#10791](https://www.github.com/tauri-apps/tauri/pull/10791) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Reintroduce the `targetSdk` value in the Android application template.
|
|
45
|
+
|
|
46
|
+
### What's Changed
|
|
47
|
+
|
|
48
|
+
- [`fb6bf3142`](https://www.github.com/tauri-apps/tauri/commit/fb6bf314252c88dd49af74bdbb8499df370836ae) ([#10763](https://www.github.com/tauri-apps/tauri/pull/10763) by [@rdlabo](https://www.github.com/tauri-apps/tauri/../../rdlabo)) Update plugin template Android code to match documentation on Android package ID usage.
|
|
49
|
+
|
|
50
|
+
### Dependencies
|
|
51
|
+
|
|
52
|
+
- Upgraded to `tauri-cli@2.0.0-rc.8`
|
|
53
|
+
|
|
54
|
+
### Breaking Changes
|
|
55
|
+
|
|
56
|
+
- [`073bb4f45`](https://www.github.com/tauri-apps/tauri/commit/073bb4f459a923541b94970dfa7e087bccaa2cfd) ([#10772](https://www.github.com/tauri-apps/tauri/pull/10772) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Removed the deprecated `webview_fixed_runtime_path` config option, use the `webview_install_mode` instead.
|
|
57
|
+
|
|
58
|
+
## \[2.0.0-rc.7]
|
|
59
|
+
|
|
60
|
+
### Enhancements
|
|
61
|
+
|
|
62
|
+
- [`da8c9a7d3`](https://www.github.com/tauri-apps/tauri/commit/da8c9a7d3069398c26826aeb082caa44b7c92809) ([#10669](https://www.github.com/tauri-apps/tauri/pull/10669) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Modify both ExportOptions.plist and project.pbxproj to reflect changes for the `IOS_CERTIFICATE`, `IOS_CERTIFICATE_PASSWORD` and `IOS_MOBILE_PROVISION` environment variables.
|
|
63
|
+
|
|
64
|
+
### Bug Fixes
|
|
65
|
+
|
|
66
|
+
- [`793ee0531`](https://www.github.com/tauri-apps/tauri/commit/793ee0531730597e6008c9c0dedabbab7a2bef53) ([#10700](https://www.github.com/tauri-apps/tauri/pull/10700) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Allow hyphens and underscores on app identifiers.
|
|
67
|
+
- [`da8c9a7d3`](https://www.github.com/tauri-apps/tauri/commit/da8c9a7d3069398c26826aeb082caa44b7c92809) ([#10669](https://www.github.com/tauri-apps/tauri/pull/10669) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Synchronize Xcode project changes with the ExportOptions.plist file so `ios build` calls can work with code signing changes made in Xcode.
|
|
68
|
+
|
|
69
|
+
### What's Changed
|
|
70
|
+
|
|
71
|
+
- [`f4d5241b3`](https://www.github.com/tauri-apps/tauri/commit/f4d5241b377d0f7a1b58100ee19f7843384634ac) ([#10731](https://www.github.com/tauri-apps/tauri/pull/10731) by [@amrbashir](https://www.github.com/tauri-apps/tauri/../../amrbashir)) Update documentation icon path.
|
|
72
|
+
|
|
73
|
+
### Dependencies
|
|
74
|
+
|
|
75
|
+
- Upgraded to `tauri-cli@2.0.0-rc.7`
|
|
76
|
+
|
|
77
|
+
### Breaking Changes
|
|
78
|
+
|
|
79
|
+
- [`da8c9a7d3`](https://www.github.com/tauri-apps/tauri/commit/da8c9a7d3069398c26826aeb082caa44b7c92809) ([#10669](https://www.github.com/tauri-apps/tauri/pull/10669) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) The `IOS_CERTIFICATE`, `IOS_CERTIFICATE_PASSWORD` and `IOS_MOBILE_PROVISION` environment variables are now read by the `ios build` command instead of `ios init`.
|
|
80
|
+
|
|
81
|
+
## \[2.0.0-rc.6]
|
|
82
|
+
|
|
83
|
+
### New Features
|
|
84
|
+
|
|
85
|
+
- [`da381e07f`](https://www.github.com/tauri-apps/tauri/commit/da381e07f3770988fe6d0859a02331b87cc6723f) ([#10696](https://www.github.com/tauri-apps/tauri/pull/10696) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Inject configured resources on mobile apps.
|
|
86
|
+
|
|
87
|
+
### Bug Fixes
|
|
88
|
+
|
|
89
|
+
- [`1a60822a4`](https://www.github.com/tauri-apps/tauri/commit/1a60822a4220b6dbb1ad7295a2e37d6c3004edad) ([#10699](https://www.github.com/tauri-apps/tauri/pull/10699) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Changed the `add` command to use a version requirement that matches the CLI's stable and prerelease numbers.
|
|
90
|
+
|
|
91
|
+
### Dependencies
|
|
92
|
+
|
|
93
|
+
- Upgraded to `tauri-cli@2.0.0-rc.6`
|
|
94
|
+
|
|
95
|
+
## \[2.0.0-rc.5]
|
|
96
|
+
|
|
97
|
+
### New Features
|
|
98
|
+
|
|
99
|
+
- [`8d148a9e2`](https://www.github.com/tauri-apps/tauri/commit/8d148a9e2566edebfea2d75f32df7c9396d765a4) ([#10634](https://www.github.com/tauri-apps/tauri/pull/10634) by [@anatawa12](https://www.github.com/tauri-apps/tauri/../../anatawa12)) Custom sign command with object notation for whitespaces in the command path and arguments.
|
|
100
|
+
|
|
101
|
+
### Bug Fixes
|
|
102
|
+
|
|
103
|
+
- [`8ae52a615`](https://www.github.com/tauri-apps/tauri/commit/8ae52a615a11d934930001da63ce6ac8442c7efc) ([#10676](https://www.github.com/tauri-apps/tauri/pull/10676) by [@rdlabo](https://www.github.com/tauri-apps/tauri/../../rdlabo)) Change plugin template call to `register_ios_plugin` params to snake case
|
|
104
|
+
- [`7796a8fc6`](https://www.github.com/tauri-apps/tauri/commit/7796a8fc649cd7397a67048c71f8d1fbf822122a) ([#10687](https://www.github.com/tauri-apps/tauri/pull/10687) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fix Swift plugin compilation on older versions.
|
|
105
|
+
- [`9b99ebab1`](https://www.github.com/tauri-apps/tauri/commit/9b99ebab17d6a043d82a7aeecfb76c56a995c287) ([#10431](https://www.github.com/tauri-apps/tauri/pull/10431) by [@mrguiman](https://www.github.com/tauri-apps/tauri/../../mrguiman)) Do not include the target arch when building and archiving the iOS application,
|
|
106
|
+
which makes Xcode project modifications more flexible.
|
|
107
|
+
|
|
108
|
+
### Dependencies
|
|
109
|
+
|
|
110
|
+
- Upgraded to `tauri-cli@2.0.0-rc.5`
|
|
111
|
+
|
|
112
|
+
## \[2.0.0-rc.4]
|
|
113
|
+
|
|
114
|
+
### New Features
|
|
115
|
+
|
|
116
|
+
- [`78e22bedc`](https://www.github.com/tauri-apps/tauri/commit/78e22bedcab5096f1a4e667321fc8b2817b79214) ([#10602](https://www.github.com/tauri-apps/tauri/pull/10602) by [@amrbashir](https://www.github.com/tauri-apps/tauri/../../amrbashir)) Add necessary options to `AndroidManifest.xml` in android template to support AndroidTV.
|
|
117
|
+
- [`3bec7b159`](https://www.github.com/tauri-apps/tauri/commit/3bec7b1595e28630a22b9fb16540beafd5eb7969) ([#10544](https://www.github.com/tauri-apps/tauri/pull/10544) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) v1 migrate script now migrates Svelte and Vue.js code.
|
|
118
|
+
|
|
119
|
+
### Enhancements
|
|
120
|
+
|
|
121
|
+
- [`bba1a4419`](https://www.github.com/tauri-apps/tauri/commit/bba1a441917defcdf9e88221e9b0e1cdd744e77a) ([#10457](https://www.github.com/tauri-apps/tauri/pull/10457) by [@mmvanheusden](https://www.github.com/tauri-apps/tauri/../../mmvanheusden)) Added `--no-fmt` option to the `add` command to skip formatting the code after applying changes.
|
|
122
|
+
- [`71d00646a`](https://www.github.com/tauri-apps/tauri/commit/71d00646a9b7c52311ba087820e52fd19861b3d8) ([#10504](https://www.github.com/tauri-apps/tauri/pull/10504) by [@fu050409](https://www.github.com/tauri-apps/tauri/../../fu050409)) Improve the `init` command behavior by detecting the project NPM package manager.
|
|
123
|
+
- [`8deb1966a`](https://www.github.com/tauri-apps/tauri/commit/8deb1966ace93d1350f271d525a878ba4b0879ce) ([#10652](https://www.github.com/tauri-apps/tauri/pull/10652) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Infer macOS codesign identity from the `APPLE_CERTIFICATE` environment variable when provided, meaning the identity no longer needs to be provided when signing on CI using that option. If the imported certificate name does not match a provided signingIdentity configuration, an error is returned.
|
|
124
|
+
- [`f35bcda28`](https://www.github.com/tauri-apps/tauri/commit/f35bcda2895a1350df31853da76a051783b9fd3f) ([#10598](https://www.github.com/tauri-apps/tauri/pull/10598) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) `permission add` and `add` commands now check if the plugin is known and if it is either desktop or mobile only
|
|
125
|
+
we add the permission to a target-specific capability.
|
|
126
|
+
|
|
127
|
+
### Bug Fixes
|
|
128
|
+
|
|
129
|
+
- [`f712f31d1`](https://www.github.com/tauri-apps/tauri/commit/f712f31d1d21e85fab99194530702c70e45c63fc) ([#10639](https://www.github.com/tauri-apps/tauri/pull/10639) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Include notarization error output in the error message if it fails.
|
|
130
|
+
- [`9f75d0622`](https://www.github.com/tauri-apps/tauri/commit/9f75d06228fcb7036cf7a4e215abc7bc8d1a0a56) ([#10604](https://www.github.com/tauri-apps/tauri/pull/10604) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fixes `android dev` port forward failing under some conditions, add better logging and error handling.
|
|
131
|
+
- [`2d47352a0`](https://www.github.com/tauri-apps/tauri/commit/2d47352a07a7d742e62291a5e6810aed79fc8b50) ([#10418](https://www.github.com/tauri-apps/tauri/pull/10418) by [@samkearney](https://www.github.com/tauri-apps/tauri/../../samkearney)) CLI commands will now consistently search for the `app_dir` (the directory containing `package.json`) from the current working directory of the command invocation.
|
|
132
|
+
- [`f4cd68f04`](https://www.github.com/tauri-apps/tauri/commit/f4cd68f040635f019ff989667289cfe9061c7dfb) ([#10600](https://www.github.com/tauri-apps/tauri/pull/10600) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fixes `android dev` not working when using the builtin dev server.
|
|
133
|
+
- [`41c7a6646`](https://www.github.com/tauri-apps/tauri/commit/41c7a6646ba9afbb2322986fb39054a43a88e604) ([#10572](https://www.github.com/tauri-apps/tauri/pull/10572) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Exit with code 1 if a panic occurs when running the CLI with `bun`.
|
|
134
|
+
- [`9089d9763`](https://www.github.com/tauri-apps/tauri/commit/9089d97637e49bebbe7dba8adc6351e04b53a44d) ([#10605](https://www.github.com/tauri-apps/tauri/pull/10605) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fixes `[android|ios] build --config <config>` failing to resolve.
|
|
135
|
+
- [`712f1049f`](https://www.github.com/tauri-apps/tauri/commit/712f1049fae74bfda5f360adcee7210cea92fe63) ([#10569](https://www.github.com/tauri-apps/tauri/pull/10569) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fixes running `ios dev` and `ios build` using `bun`.
|
|
136
|
+
- [`3998570fd`](https://www.github.com/tauri-apps/tauri/commit/3998570fd3d03c1bb282bd060a4aafb4ab5437f9) ([#10540](https://www.github.com/tauri-apps/tauri/pull/10540) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fixes v1 migration of Cargo.toml dependencies and features.
|
|
137
|
+
- [`3beba92b5`](https://www.github.com/tauri-apps/tauri/commit/3beba92b5bdc62ed00c9f6a9b8f8c05cfa78f8dc) ([#10542](https://www.github.com/tauri-apps/tauri/pull/10542) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fixes v1 frontend code migration when using plugin default imports.
|
|
138
|
+
- [`10fb027b7`](https://www.github.com/tauri-apps/tauri/commit/10fb027b7590cf2c020b5c220328b9051c05adca) ([#10656](https://www.github.com/tauri-apps/tauri/pull/10656) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Migrate v1 plugins to their v2 releases.
|
|
139
|
+
- [`10fb027b7`](https://www.github.com/tauri-apps/tauri/commit/10fb027b7590cf2c020b5c220328b9051c05adca) ([#10656](https://www.github.com/tauri-apps/tauri/pull/10656) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Prevent duplicate permissions on v1 migration.
|
|
140
|
+
- [`b160f9359`](https://www.github.com/tauri-apps/tauri/commit/b160f9359d6f661d280185d2a2a4bdf280b8e72c) ([#10638](https://www.github.com/tauri-apps/tauri/pull/10638) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Only validate the output iOS library on debug builds.
|
|
141
|
+
- [`4bfe4880f`](https://www.github.com/tauri-apps/tauri/commit/4bfe4880fbef42d1a115f840e712d4a2f59c8ab3) ([#10550](https://www.github.com/tauri-apps/tauri/pull/10550) by [@anatawa12](https://www.github.com/tauri-apps/tauri/../../anatawa12)) fails to build universal fat binary if main bin is renamed to another name in `Cargo.toml`
|
|
142
|
+
- [`f3837d5b9`](https://www.github.com/tauri-apps/tauri/commit/f3837d5b98f0caebc3337f9a9e8127e7b96c3fc5) ([#10539](https://www.github.com/tauri-apps/tauri/pull/10539) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Improve migration tooling by supporting TOML configs, handle nulls and properly check for updater migration.
|
|
143
|
+
|
|
144
|
+
### What's Changed
|
|
145
|
+
|
|
146
|
+
- [`794cf8234`](https://www.github.com/tauri-apps/tauri/commit/794cf8234f8b620c74cbd23cc4b81be9b2edc386) ([#10571](https://www.github.com/tauri-apps/tauri/pull/10571) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Change iOS template default export method from deprecated `development` to `debugging`.
|
|
147
|
+
- [`bfc49cc7a`](https://www.github.com/tauri-apps/tauri/commit/bfc49cc7a1d43e3378e93865b9b37ce4bddfa6e6) ([#10558](https://www.github.com/tauri-apps/tauri/pull/10558) by [@ahqsoftwares](https://www.github.com/tauri-apps/tauri/../../ahqsoftwares)) Remove targetSdk from gradle files
|
|
148
|
+
|
|
149
|
+
### Dependencies
|
|
150
|
+
|
|
151
|
+
- Upgraded to `tauri-cli@2.0.0-rc.4`
|
|
152
|
+
|
|
153
|
+
## \[2.0.0-rc.3]
|
|
154
|
+
|
|
155
|
+
### Enhancements
|
|
156
|
+
|
|
157
|
+
- [`5f56cb0a8`](https://www.github.com/tauri-apps/tauri/commit/5f56cb0a8b9c6f695bc6439a8db997c98b3a3997) ([#10507](https://www.github.com/tauri-apps/tauri/pull/10507) by [@FabianLars](https://www.github.com/tauri-apps/tauri/../../FabianLars)) Update gradle to 8.9 and the gradle android plugin to 8.5.1 in the android templates (requires latest Android Studio). This should add support for Java 21 but Java 17 keeps being the recommended version.
|
|
158
|
+
|
|
159
|
+
### Bug Fixes
|
|
160
|
+
|
|
161
|
+
- [`f5dfc0280`](https://www.github.com/tauri-apps/tauri/commit/f5dfc02800dbd3bdee671b032454c49ac7102fb4) ([#10533](https://www.github.com/tauri-apps/tauri/pull/10533) by [@FabianLars](https://www.github.com/tauri-apps/tauri/../../FabianLars)) Fixed an issue causing `tauri ios init` to fail if `iOS.minimumSystemVersion` was not configured explicitly.
|
|
162
|
+
|
|
163
|
+
### Dependencies
|
|
164
|
+
|
|
165
|
+
- Upgraded to `tauri-cli@2.0.0-rc.3`
|
|
166
|
+
|
|
167
|
+
## \[2.0.0-rc.2]
|
|
168
|
+
|
|
169
|
+
### New Features
|
|
170
|
+
|
|
171
|
+
- [`8dc81b6cc`](https://www.github.com/tauri-apps/tauri/commit/8dc81b6cc2b8235b11f74a971d6aa3a5df5e9f68) ([#10496](https://www.github.com/tauri-apps/tauri/pull/10496) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Added `bundle > ios > template` configuration option for custom Xcode project YML Handlebars template using XcodeGen.
|
|
172
|
+
- [`02c00abc6`](https://www.github.com/tauri-apps/tauri/commit/02c00abc63cf86e9bf9179cbb143d5145a9397b6) ([#10495](https://www.github.com/tauri-apps/tauri/pull/10495) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Added `bundle > ios > minimumSystemVersion` configuration option.
|
|
173
|
+
|
|
174
|
+
### Enhancements
|
|
175
|
+
|
|
176
|
+
- [`8e1e15304`](https://www.github.com/tauri-apps/tauri/commit/8e1e15304e9dc98d7f875fc8dceb7d4ce19adc47) ([#10483](https://www.github.com/tauri-apps/tauri/pull/10483) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Check if the Rust library contains the symbols required at runtime for Android and iOS apps.
|
|
177
|
+
- [`ca6868956`](https://www.github.com/tauri-apps/tauri/commit/ca68689564cbc8dfa9a5220d3daf81a44ef81fcc) ([#10479](https://www.github.com/tauri-apps/tauri/pull/10479) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Check if identifier or lib name changed when running mobile commands.
|
|
178
|
+
|
|
179
|
+
### Bug Fixes
|
|
180
|
+
|
|
181
|
+
- [`2e8ab7bac`](https://www.github.com/tauri-apps/tauri/commit/2e8ab7bac12046d734fb07a1b4fe5e03004b305e) ([#10481](https://www.github.com/tauri-apps/tauri/pull/10481) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Migration from v1 to v2 now adds the updater plugin when it is active.
|
|
182
|
+
|
|
183
|
+
### What's Changed
|
|
184
|
+
|
|
185
|
+
- [`a3cd9779a`](https://www.github.com/tauri-apps/tauri/commit/a3cd9779a47428e306a628d658740669faf69ccd) ([#10480](https://www.github.com/tauri-apps/tauri/pull/10480) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Removed the `[android|ios] open` command. It is recommended to use `[android|ios] dev --open` or `[android|ios] build --open` instead.
|
|
186
|
+
|
|
187
|
+
### Dependencies
|
|
188
|
+
|
|
189
|
+
- Upgraded to `tauri-cli@2.0.0-rc.2`
|
|
190
|
+
|
|
3
191
|
## \[2.0.0-rc.1]
|
|
4
192
|
|
|
5
193
|
### Bug Fixes
|
package/Cargo.toml
CHANGED
|
@@ -10,7 +10,7 @@ crate-type = ["cdylib"]
|
|
|
10
10
|
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
|
|
11
11
|
napi = { version = "2.16", default-features = false, features = ["napi4"] }
|
|
12
12
|
napi-derive = "2.16"
|
|
13
|
-
tauri-cli = { path = "
|
|
13
|
+
tauri-cli = { path = "../../crates/tauri-cli", default-features = false }
|
|
14
14
|
log = "0.4.21"
|
|
15
15
|
|
|
16
16
|
[build-dependencies]
|
package/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# @tauri-apps/cli
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
<img align="right" src="https://github.com/tauri-apps/tauri/raw/dev/.github/icon.png" height="128" width="128">
|
|
3
4
|
|
|
4
5
|
[](https://github.com/tauri-apps/tauri/tree/dev)
|
|
5
6
|
[](https://opencollective.com/tauri)
|
|
@@ -10,34 +11,42 @@
|
|
|
10
11
|
[](https://good-labs.github.io/greater-good-affirmation)
|
|
11
12
|
[](https://opencollective.com/tauri)
|
|
12
13
|
|
|
13
|
-
| Component
|
|
14
|
-
|
|
|
15
|
-
| @tauri-apps/cli
|
|
14
|
+
| Component | Version |
|
|
15
|
+
| --------------- | ----------------------------------------------------- |
|
|
16
|
+
| @tauri-apps/cli |  |
|
|
16
17
|
|
|
17
18
|
## About Tauri
|
|
19
|
+
|
|
18
20
|
Tauri is a polyglot and generic system that is very composable and allows engineers to make a wide variety of applications. It is used for building applications for Desktop Computers using a combination of Rust tools and HTML rendered in a Webview. Apps built with Tauri can ship with any number of pieces of an optional JS API / Rust API so that webviews can control the system via message passing. In fact, developers can extend the default API with their own functionality and bridge the Webview and Rust-based backend easily.
|
|
19
21
|
|
|
20
22
|
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.
|
|
23
|
+
|
|
21
24
|
## This module
|
|
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
25
|
|
|
24
|
-
|
|
26
|
+
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 `pnpm tauri dev`. For the most part it is a wrapper around [tauri-cli](https://github.com/tauri-apps/tauri/blob/dev/crates/tauri-cli).
|
|
25
27
|
|
|
28
|
+
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.
|
|
26
29
|
|
|
27
30
|
## Installation
|
|
28
31
|
|
|
29
32
|
The preferred method is to install this module locally as a development dependency:
|
|
33
|
+
|
|
30
34
|
```
|
|
31
|
-
$
|
|
32
|
-
$ yarn add
|
|
35
|
+
$ pnpm add -D @tauri-apps/cli
|
|
36
|
+
$ yarn add -D @tauri-apps/cli
|
|
37
|
+
$ npm add -D @tauri-apps/cli
|
|
33
38
|
```
|
|
34
39
|
|
|
35
40
|
## Semver
|
|
41
|
+
|
|
36
42
|
**tauri** is following [Semantic Versioning 2.0](https://semver.org/).
|
|
43
|
+
|
|
37
44
|
## Licenses
|
|
45
|
+
|
|
38
46
|
Code: (c) 2019 - 2021 - The Tauri Programme within The Commons Conservancy.
|
|
39
47
|
|
|
40
48
|
MIT or MIT/Apache 2.0 where applicable.
|
|
41
49
|
|
|
42
50
|
Logo: CC-BY-NC-ND
|
|
51
|
+
|
|
43
52
|
- Original Tauri Logo Designs by [Daniel Thompson-Yvetot](https://github.com/nothingismagick) and [Guillaume Chau](https://github.com/akryum)
|
|
@@ -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.\n It is read from a file where you can define your frontend assets,\n configure the bundler and define a tray icon.\n\n The configuration file is generated by the\n [`tauri init`](https://tauri.app/v1/api/cli#init) command that lives in\n your Tauri application source directory (src-tauri).\n\n Once generated, you may modify it at will to customize your Tauri application.\n\n ## File Formats\n\n By default, the configuration is defined as a JSON file named `tauri.conf.json`.\n\n Tauri also supports JSON5 and TOML files via the `config-json5` and `config-toml` Cargo features, respectively.\n The JSON5 file name must be either `tauri.conf.json` or `tauri.conf.json5`.\n The TOML file name is `Tauri.toml`.\n\n ## Platform-Specific Configuration\n\n In addition to the default configuration file, Tauri can\n read a platform-specific configuration from `tauri.linux.conf.json`,\n `tauri.windows.conf.json`, `tauri.macos.conf.json`, `tauri.android.conf.json` and `tauri.ios.conf.json`\n (or `Tauri.linux.toml`, `Tauri.windows.toml`, `Tauri.macos.toml`, `Tauri.android.toml` and `Tauri.ios.toml` if the `Tauri.toml` format is used),\n which gets merged with the main configuration object.\n\n ## Configuration Structure\n\n The configuration is composed of the following objects:\n\n - [`app`](#appconfig): The Tauri configuration\n - [`build`](#buildconfig): The build configuration\n - [`bundle`](#bundleconfig): The bundle configurations\n - [`plugins`](#pluginconfig): The plugins configuration\n\n
|
|
4
|
+
"description": "The Tauri configuration object.\n It is read from a file where you can define your frontend assets,\n configure the bundler and define a tray icon.\n\n The configuration file is generated by the\n [`tauri init`](https://tauri.app/v1/api/cli#init) command that lives in\n your Tauri application source directory (src-tauri).\n\n Once generated, you may modify it at will to customize your Tauri application.\n\n ## File Formats\n\n By default, the configuration is defined as a JSON file named `tauri.conf.json`.\n\n Tauri also supports JSON5 and TOML files via the `config-json5` and `config-toml` Cargo features, respectively.\n The JSON5 file name must be either `tauri.conf.json` or `tauri.conf.json5`.\n The TOML file name is `Tauri.toml`.\n\n ## Platform-Specific Configuration\n\n In addition to the default configuration file, Tauri can\n read a platform-specific configuration from `tauri.linux.conf.json`,\n `tauri.windows.conf.json`, `tauri.macos.conf.json`, `tauri.android.conf.json` and `tauri.ios.conf.json`\n (or `Tauri.linux.toml`, `Tauri.windows.toml`, `Tauri.macos.toml`, `Tauri.android.toml` and `Tauri.ios.toml` if the `Tauri.toml` format is used),\n which gets merged with the main configuration object.\n\n ## Configuration Structure\n\n The configuration is composed of the following objects:\n\n - [`app`](#appconfig): The Tauri configuration\n - [`build`](#buildconfig): The build configuration\n - [`bundle`](#bundleconfig): The bundle configurations\n - [`plugins`](#pluginconfig): The plugins configuration\n\n Example tauri.config.json file:\n\n ```json\n {\n \"productName\": \"tauri-app\",\n \"version\": \"0.1.0\",\n \"build\": {\n \"beforeBuildCommand\": \"\",\n \"beforeDevCommand\": \"\",\n \"devUrl\": \"../dist\",\n \"frontendDist\": \"../dist\"\n },\n \"app\": {\n \"security\": {\n \"csp\": null\n },\n \"windows\": [\n {\n \"fullscreen\": false,\n \"height\": 600,\n \"resizable\": true,\n \"title\": \"Tauri App\",\n \"width\": 800\n }\n ]\n },\n \"bundle\": {},\n \"plugins\": {}\n }\n ```",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"$schema": {
|
|
@@ -74,7 +74,9 @@
|
|
|
74
74
|
"minSdkVersion": 24
|
|
75
75
|
},
|
|
76
76
|
"createUpdaterArtifacts": false,
|
|
77
|
-
"iOS": {
|
|
77
|
+
"iOS": {
|
|
78
|
+
"minimumSystemVersion": "13.0"
|
|
79
|
+
},
|
|
78
80
|
"icon": [],
|
|
79
81
|
"linux": {
|
|
80
82
|
"appimage": {
|
|
@@ -110,6 +112,7 @@
|
|
|
110
112
|
"minimumSystemVersion": "10.13"
|
|
111
113
|
},
|
|
112
114
|
"targets": "all",
|
|
115
|
+
"useLocalToolsDir": false,
|
|
113
116
|
"windows": {
|
|
114
117
|
"allowDowngrades": true,
|
|
115
118
|
"certificateThumbprint": null,
|
|
@@ -118,7 +121,6 @@
|
|
|
118
121
|
"signCommand": null,
|
|
119
122
|
"timestampUrl": null,
|
|
120
123
|
"tsp": false,
|
|
121
|
-
"webviewFixedRuntimePath": null,
|
|
122
124
|
"webviewInstallMode": {
|
|
123
125
|
"silent": true,
|
|
124
126
|
"type": "downloadBootstrapper"
|
|
@@ -425,7 +427,7 @@
|
|
|
425
427
|
]
|
|
426
428
|
},
|
|
427
429
|
"shadow": {
|
|
428
|
-
"description": "Whether or not the window has shadow.\n\n ## Platform-specific\n\n - **Windows:**\n - `false` has no effect on decorated window, shadow are always ON.\n - `true` will make
|
|
430
|
+
"description": "Whether or not the window has shadow.\n\n ## Platform-specific\n\n - **Windows:**\n - `false` has no effect on decorated window, shadow are always ON.\n - `true` will make undecorated window have a 1px white border,\n and on Windows 11, it will have a rounded corners.\n - **Linux:** Unsupported.",
|
|
429
431
|
"default": true,
|
|
430
432
|
"type": "boolean"
|
|
431
433
|
},
|
|
@@ -1544,7 +1546,7 @@
|
|
|
1544
1546
|
]
|
|
1545
1547
|
},
|
|
1546
1548
|
"publisher": {
|
|
1547
|
-
"description": "The application's publisher. Defaults to the second element in the identifier string.\n Currently maps to the Manufacturer property of the Windows Installer.",
|
|
1549
|
+
"description": "The application's publisher. Defaults to the second element in the identifier string.\n\n Currently maps to the Manufacturer property of the Windows Installer\n and the Maintainer field of debian packages if the Cargo.toml does not have the authors field.",
|
|
1548
1550
|
"type": [
|
|
1549
1551
|
"string",
|
|
1550
1552
|
"null"
|
|
@@ -1628,6 +1630,11 @@
|
|
|
1628
1630
|
"null"
|
|
1629
1631
|
]
|
|
1630
1632
|
},
|
|
1633
|
+
"useLocalToolsDir": {
|
|
1634
|
+
"description": "Whether to use the project's `target` directory, for caching build tools (e.g., Wix and NSIS) when building this application. Defaults to `false`.\n\n If true, tools will be cached in `target\\.tauri-tools`.\n If false, tools will be cached in the current user's platform-specific cache directory.\n\n An example where it can be appropriate to set this to `true` is when building this application as a Windows System user (e.g., AWS EC2 workloads),\n because the Window system's app data directory is restricted.",
|
|
1635
|
+
"default": false,
|
|
1636
|
+
"type": "boolean"
|
|
1637
|
+
},
|
|
1631
1638
|
"externalBin": {
|
|
1632
1639
|
"description": "A list of—either absolute or relative—paths to binaries to embed with your application.\n\n Note that Tauri will look for system-specific binaries following the pattern \"binary-name{-target-triple}{.system-extension}\".\n\n E.g. for the external binary \"my-binary\", Tauri looks for:\n\n - \"my-binary-x86_64-pc-windows-msvc.exe\" for Windows\n - \"my-binary-x86_64-apple-darwin\" for macOS\n - \"my-binary-x86_64-unknown-linux-gnu\" for Linux\n\n so don't forget to provide binaries for all targeted platforms.",
|
|
1633
1640
|
"type": [
|
|
@@ -1648,7 +1655,6 @@
|
|
|
1648
1655
|
"signCommand": null,
|
|
1649
1656
|
"timestampUrl": null,
|
|
1650
1657
|
"tsp": false,
|
|
1651
|
-
"webviewFixedRuntimePath": null,
|
|
1652
1658
|
"webviewInstallMode": {
|
|
1653
1659
|
"silent": true,
|
|
1654
1660
|
"type": "downloadBootstrapper"
|
|
@@ -1712,7 +1718,9 @@
|
|
|
1712
1718
|
},
|
|
1713
1719
|
"iOS": {
|
|
1714
1720
|
"description": "iOS configuration.",
|
|
1715
|
-
"default": {
|
|
1721
|
+
"default": {
|
|
1722
|
+
"minimumSystemVersion": "13.0"
|
|
1723
|
+
},
|
|
1716
1724
|
"allOf": [
|
|
1717
1725
|
{
|
|
1718
1726
|
"$ref": "#/definitions/IosConfig"
|
|
@@ -1994,13 +2002,6 @@
|
|
|
1994
2002
|
}
|
|
1995
2003
|
]
|
|
1996
2004
|
},
|
|
1997
|
-
"webviewFixedRuntimePath": {
|
|
1998
|
-
"description": "Path to the webview fixed runtime to use. Overwrites [`Self::webview_install_mode`] if set.\n\n Will be removed in v2, prefer the [`Self::webview_install_mode`] option.\n\n The fixed version can be downloaded [on the official website](https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section).\n The `.cab` file must be extracted to a folder and this folder path must be defined on this field.",
|
|
1999
|
-
"type": [
|
|
2000
|
-
"string",
|
|
2001
|
-
"null"
|
|
2002
|
-
]
|
|
2003
|
-
},
|
|
2004
2005
|
"allowDowngrades": {
|
|
2005
2006
|
"description": "Validates a second app installation, blocking the user from installing an older version if set to `false`.\n\n For instance, if `1.2.1` is installed, the user won't be able to install app version `1.2.0` or `1.1.5`.\n\n The default value of this flag is `true`.",
|
|
2006
2007
|
"default": true,
|
|
@@ -2029,10 +2030,14 @@
|
|
|
2029
2030
|
]
|
|
2030
2031
|
},
|
|
2031
2032
|
"signCommand": {
|
|
2032
|
-
"description": "Specify a custom command to sign the binaries.\n This command needs to have a `%1` in
|
|
2033
|
-
"
|
|
2034
|
-
|
|
2035
|
-
|
|
2033
|
+
"description": "Specify a custom command to sign the binaries.\n This command needs to have a `%1` in args which is just a placeholder for the binary path,\n which we will detect and replace before calling the command.\n\n By Default we use `signtool.exe` which can be found only on Windows so\n if you are on another platform and want to cross-compile and sign you will\n need to use another tool like `osslsigncode`.",
|
|
2034
|
+
"anyOf": [
|
|
2035
|
+
{
|
|
2036
|
+
"$ref": "#/definitions/CustomSignCommandConfig"
|
|
2037
|
+
},
|
|
2038
|
+
{
|
|
2039
|
+
"type": "null"
|
|
2040
|
+
}
|
|
2036
2041
|
]
|
|
2037
2042
|
}
|
|
2038
2043
|
},
|
|
@@ -2322,7 +2327,7 @@
|
|
|
2322
2327
|
}
|
|
2323
2328
|
},
|
|
2324
2329
|
"customLanguageFiles": {
|
|
2325
|
-
"description": "A key-value pair where the key is the language and the\n value is the path to a custom `.nsh` file that holds the translated text for tauri's custom messages.\n\n See <https://github.com/tauri-apps/tauri/blob/dev/
|
|
2330
|
+
"description": "A key-value pair where the key is the language and the\n value is the path to a custom `.nsh` file that holds the translated text for tauri's custom messages.\n\n See <https://github.com/tauri-apps/tauri/blob/dev/crates/tauri-bundler/src/bundle/windows/templates/nsis-languages/English.nsh> for an example `.nsh` file.\n\n **Note**: the key must be a valid NSIS language and it must be added to [`NsisConfig`] languages array,",
|
|
2326
2331
|
"type": [
|
|
2327
2332
|
"object",
|
|
2328
2333
|
"null"
|
|
@@ -2358,6 +2363,13 @@
|
|
|
2358
2363
|
"string",
|
|
2359
2364
|
"null"
|
|
2360
2365
|
]
|
|
2366
|
+
},
|
|
2367
|
+
"minimumWebview2Version": {
|
|
2368
|
+
"description": "Try to ensure that the WebView2 version is equal to or newer than this version,\n if the user's WebView2 is older than this version,\n the installer will try to trigger a WebView2 update.",
|
|
2369
|
+
"type": [
|
|
2370
|
+
"string",
|
|
2371
|
+
"null"
|
|
2372
|
+
]
|
|
2361
2373
|
}
|
|
2362
2374
|
},
|
|
2363
2375
|
"additionalProperties": false
|
|
@@ -2421,6 +2433,37 @@
|
|
|
2421
2433
|
}
|
|
2422
2434
|
]
|
|
2423
2435
|
},
|
|
2436
|
+
"CustomSignCommandConfig": {
|
|
2437
|
+
"description": "Custom Signing Command configuration.",
|
|
2438
|
+
"anyOf": [
|
|
2439
|
+
{
|
|
2440
|
+
"description": "A string notation of the script to execute.\n\n \"%1\" will be replaced with the path to the binary to be signed.\n\n This is a simpler notation for the command.\n Tauri will split the string with `' '` and use the first element as the command name and the rest as arguments.\n\n If you need to use whitespace in the command or arguments, use the object notation [`Self::ScriptWithOptions`].",
|
|
2441
|
+
"type": "string"
|
|
2442
|
+
},
|
|
2443
|
+
{
|
|
2444
|
+
"description": "An object notation of the command.\n\n This is more complex notation for the command but\n this allows you to use whitespace in the command and arguments.",
|
|
2445
|
+
"type": "object",
|
|
2446
|
+
"required": [
|
|
2447
|
+
"args",
|
|
2448
|
+
"cmd"
|
|
2449
|
+
],
|
|
2450
|
+
"properties": {
|
|
2451
|
+
"cmd": {
|
|
2452
|
+
"description": "The command to run to sign the binary.",
|
|
2453
|
+
"type": "string"
|
|
2454
|
+
},
|
|
2455
|
+
"args": {
|
|
2456
|
+
"description": "The arguments to pass to the command.\n\n \"%1\" will be replaced with the path to the binary to be signed.",
|
|
2457
|
+
"type": "array",
|
|
2458
|
+
"items": {
|
|
2459
|
+
"type": "string"
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
},
|
|
2463
|
+
"additionalProperties": false
|
|
2464
|
+
}
|
|
2465
|
+
]
|
|
2466
|
+
},
|
|
2424
2467
|
"LinuxConfig": {
|
|
2425
2468
|
"description": "Configuration for Linux bundles.\n\n See more: <https://tauri.app/v1/api/config#linuxconfig>",
|
|
2426
2469
|
"type": "object",
|
|
@@ -2896,6 +2939,13 @@
|
|
|
2896
2939
|
"description": "General configuration for the iOS target.",
|
|
2897
2940
|
"type": "object",
|
|
2898
2941
|
"properties": {
|
|
2942
|
+
"template": {
|
|
2943
|
+
"description": "A custom [XcodeGen] project.yml template to use.\n\n [XcodeGen]: <https://github.com/yonaskolb/XcodeGen>",
|
|
2944
|
+
"type": [
|
|
2945
|
+
"string",
|
|
2946
|
+
"null"
|
|
2947
|
+
]
|
|
2948
|
+
},
|
|
2899
2949
|
"frameworks": {
|
|
2900
2950
|
"description": "A list of strings indicating any iOS frameworks that need to be bundled with the application.\n\n Note that you need to recreate the iOS project for the changes to be applied.",
|
|
2901
2951
|
"type": [
|
|
@@ -2912,6 +2962,11 @@
|
|
|
2912
2962
|
"string",
|
|
2913
2963
|
"null"
|
|
2914
2964
|
]
|
|
2965
|
+
},
|
|
2966
|
+
"minimumSystemVersion": {
|
|
2967
|
+
"description": "A version string indicating the minimum iOS version that the bundled application supports. Defaults to `13.0`.\n\n Maps to the IPHONEOS_DEPLOYMENT_TARGET value.",
|
|
2968
|
+
"default": "13.0",
|
|
2969
|
+
"type": "string"
|
|
2915
2970
|
}
|
|
2916
2971
|
},
|
|
2917
2972
|
"additionalProperties": false
|
package/index.d.ts
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
|
|
8
8
|
/* auto-generated by NAPI-RS */
|
|
9
9
|
|
|
10
|
-
export function run(args: Array<string>, binName: string | undefined | null, callback: (...args: any[]) => any): void
|
|
11
|
-
export function logError(error: string): void
|
|
10
|
+
export declare function run(args: Array<string>, binName: string | undefined | null, callback: (...args: any[]) => any): void
|
|
11
|
+
export declare function logError(error: string): void
|
package/index.js
CHANGED
|
@@ -228,14 +228,72 @@ switch (platform) {
|
|
|
228
228
|
}
|
|
229
229
|
break
|
|
230
230
|
case 'arm':
|
|
231
|
+
if (isMusl()) {
|
|
232
|
+
localFileExisted = existsSync(
|
|
233
|
+
join(__dirname, 'cli.linux-arm-musleabihf.node')
|
|
234
|
+
)
|
|
235
|
+
try {
|
|
236
|
+
if (localFileExisted) {
|
|
237
|
+
nativeBinding = require('./cli.linux-arm-musleabihf.node')
|
|
238
|
+
} else {
|
|
239
|
+
nativeBinding = require('@tauri-apps/cli-linux-arm-musleabihf')
|
|
240
|
+
}
|
|
241
|
+
} catch (e) {
|
|
242
|
+
loadError = e
|
|
243
|
+
}
|
|
244
|
+
} else {
|
|
245
|
+
localFileExisted = existsSync(
|
|
246
|
+
join(__dirname, 'cli.linux-arm-gnueabihf.node')
|
|
247
|
+
)
|
|
248
|
+
try {
|
|
249
|
+
if (localFileExisted) {
|
|
250
|
+
nativeBinding = require('./cli.linux-arm-gnueabihf.node')
|
|
251
|
+
} else {
|
|
252
|
+
nativeBinding = require('@tauri-apps/cli-linux-arm-gnueabihf')
|
|
253
|
+
}
|
|
254
|
+
} catch (e) {
|
|
255
|
+
loadError = e
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
break
|
|
259
|
+
case 'riscv64':
|
|
260
|
+
if (isMusl()) {
|
|
261
|
+
localFileExisted = existsSync(
|
|
262
|
+
join(__dirname, 'cli.linux-riscv64-musl.node')
|
|
263
|
+
)
|
|
264
|
+
try {
|
|
265
|
+
if (localFileExisted) {
|
|
266
|
+
nativeBinding = require('./cli.linux-riscv64-musl.node')
|
|
267
|
+
} else {
|
|
268
|
+
nativeBinding = require('@tauri-apps/cli-linux-riscv64-musl')
|
|
269
|
+
}
|
|
270
|
+
} catch (e) {
|
|
271
|
+
loadError = e
|
|
272
|
+
}
|
|
273
|
+
} else {
|
|
274
|
+
localFileExisted = existsSync(
|
|
275
|
+
join(__dirname, 'cli.linux-riscv64-gnu.node')
|
|
276
|
+
)
|
|
277
|
+
try {
|
|
278
|
+
if (localFileExisted) {
|
|
279
|
+
nativeBinding = require('./cli.linux-riscv64-gnu.node')
|
|
280
|
+
} else {
|
|
281
|
+
nativeBinding = require('@tauri-apps/cli-linux-riscv64-gnu')
|
|
282
|
+
}
|
|
283
|
+
} catch (e) {
|
|
284
|
+
loadError = e
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
break
|
|
288
|
+
case 's390x':
|
|
231
289
|
localFileExisted = existsSync(
|
|
232
|
-
join(__dirname, 'cli.linux-
|
|
290
|
+
join(__dirname, 'cli.linux-s390x-gnu.node')
|
|
233
291
|
)
|
|
234
292
|
try {
|
|
235
293
|
if (localFileExisted) {
|
|
236
|
-
nativeBinding = require('./cli.linux-
|
|
294
|
+
nativeBinding = require('./cli.linux-s390x-gnu.node')
|
|
237
295
|
} else {
|
|
238
|
-
nativeBinding = require('@tauri-apps/cli-linux-
|
|
296
|
+
nativeBinding = require('@tauri-apps/cli-linux-s390x-gnu')
|
|
239
297
|
}
|
|
240
298
|
} catch (e) {
|
|
241
299
|
loadError = e
|
package/main.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tauri-apps/cli",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.10",
|
|
4
4
|
"description": "Command line interface for building Tauri apps",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "opencollective",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"url": "git+https://github.com/tauri-apps/tauri.git"
|
|
12
12
|
},
|
|
13
13
|
"contributors": [
|
|
14
|
-
"Tauri
|
|
14
|
+
"Tauri Programme within The Commons Conservancy"
|
|
15
15
|
],
|
|
16
16
|
"license": "Apache-2.0 OR MIT",
|
|
17
17
|
"bugs": {
|
|
@@ -46,9 +46,6 @@
|
|
|
46
46
|
"jest-transform-toml": "1.0.0",
|
|
47
47
|
"prettier": "3.3.2"
|
|
48
48
|
},
|
|
49
|
-
"resolutions": {
|
|
50
|
-
"json5": "2.2.3"
|
|
51
|
-
},
|
|
52
49
|
"engines": {
|
|
53
50
|
"node": ">= 10"
|
|
54
51
|
},
|
|
@@ -60,23 +57,21 @@
|
|
|
60
57
|
"build:release": "cross-env TARGET=node napi build --platform --profile release-size-optimized",
|
|
61
58
|
"build": "cross-env TARGET=node napi build --platform",
|
|
62
59
|
"prepublishOnly": "napi prepublish -t npm --gh-release-id $RELEASE_ID",
|
|
63
|
-
"prepack": "cp
|
|
60
|
+
"prepack": "cp ../../crates/tauri-schema-generator/schemas/config.schema.json .",
|
|
64
61
|
"test": "jest --runInBand --forceExit --no-cache",
|
|
65
62
|
"version": "napi version",
|
|
66
|
-
"tauri": "node ./tauri.js"
|
|
67
|
-
"format": "prettier --write ./package.json ./tauri.js",
|
|
68
|
-
"format:check": "prettier --check ./package.json ./tauri.js"
|
|
63
|
+
"tauri": "node ./tauri.js"
|
|
69
64
|
},
|
|
70
65
|
"optionalDependencies": {
|
|
71
|
-
"@tauri-apps/cli-win32-x64-msvc": "2.0.0-rc.
|
|
72
|
-
"@tauri-apps/cli-darwin-x64": "2.0.0-rc.
|
|
73
|
-
"@tauri-apps/cli-linux-x64-gnu": "2.0.0-rc.
|
|
74
|
-
"@tauri-apps/cli-darwin-arm64": "2.0.0-rc.
|
|
75
|
-
"@tauri-apps/cli-linux-arm64-gnu": "2.0.0-rc.
|
|
76
|
-
"@tauri-apps/cli-linux-arm64-musl": "2.0.0-rc.
|
|
77
|
-
"@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-rc.
|
|
78
|
-
"@tauri-apps/cli-linux-x64-musl": "2.0.0-rc.
|
|
79
|
-
"@tauri-apps/cli-win32-ia32-msvc": "2.0.0-rc.
|
|
80
|
-
"@tauri-apps/cli-win32-arm64-msvc": "2.0.0-rc.
|
|
66
|
+
"@tauri-apps/cli-win32-x64-msvc": "2.0.0-rc.10",
|
|
67
|
+
"@tauri-apps/cli-darwin-x64": "2.0.0-rc.10",
|
|
68
|
+
"@tauri-apps/cli-linux-x64-gnu": "2.0.0-rc.10",
|
|
69
|
+
"@tauri-apps/cli-darwin-arm64": "2.0.0-rc.10",
|
|
70
|
+
"@tauri-apps/cli-linux-arm64-gnu": "2.0.0-rc.10",
|
|
71
|
+
"@tauri-apps/cli-linux-arm64-musl": "2.0.0-rc.10",
|
|
72
|
+
"@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-rc.10",
|
|
73
|
+
"@tauri-apps/cli-linux-x64-musl": "2.0.0-rc.10",
|
|
74
|
+
"@tauri-apps/cli-win32-ia32-msvc": "2.0.0-rc.10",
|
|
75
|
+
"@tauri-apps/cli-win32-arm64-msvc": "2.0.0-rc.10"
|
|
81
76
|
}
|
|
82
77
|
}
|
package/src/lib.rs
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
// SPDX-License-Identifier: MIT
|
|
4
4
|
|
|
5
|
+
#![cfg(any(target_os = "macos", target_os = "linux", windows))]
|
|
6
|
+
|
|
5
7
|
use napi::{
|
|
6
8
|
threadsafe_function::{ErrorStrategy, ThreadsafeFunction, ThreadsafeFunctionCallMode},
|
|
7
9
|
Error, JsFunction, Result, Status,
|
|
@@ -14,12 +16,29 @@ pub fn run(args: Vec<String>, bin_name: Option<String>, callback: JsFunction) ->
|
|
|
14
16
|
|
|
15
17
|
// we need to run in a separate thread so Node.js consumers
|
|
16
18
|
// can do work while `tauri dev` is running.
|
|
17
|
-
std::thread::spawn(move ||
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
std::thread::spawn(move || {
|
|
20
|
+
let res = match std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| {
|
|
21
|
+
tauri_cli::try_run(args, bin_name)
|
|
22
|
+
})) {
|
|
23
|
+
Ok(t) => t,
|
|
24
|
+
Err(_) => {
|
|
25
|
+
return function.call(
|
|
26
|
+
Err(Error::new(
|
|
27
|
+
Status::GenericFailure,
|
|
28
|
+
"Tauri CLI unexpected panic",
|
|
29
|
+
)),
|
|
30
|
+
ThreadsafeFunctionCallMode::Blocking,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
match res {
|
|
36
|
+
Ok(_) => function.call(Ok(true), ThreadsafeFunctionCallMode::Blocking),
|
|
37
|
+
Err(e) => function.call(
|
|
38
|
+
Err(Error::new(Status::GenericFailure, format!("{:#}", e))),
|
|
39
|
+
ThreadsafeFunctionCallMode::Blocking,
|
|
40
|
+
),
|
|
41
|
+
}
|
|
23
42
|
});
|
|
24
43
|
|
|
25
44
|
Ok(())
|