@tauri-apps/cli 2.0.0-alpha.1 → 2.0.0-alpha.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 +197 -0
- package/Cargo.toml +9 -4
- package/README.md +2 -2
- package/build.rs +1 -1
- package/index.d.ts +4 -0
- package/index.js +21 -1
- package/jest.config.js +4 -0
- package/main.d.ts +4 -0
- package/main.js +4 -0
- package/package.json +20 -15
- package/schema.json +604 -1301
- package/src/lib.rs +1 -1
- package/tauri.js +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,125 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## \[2.0.0-alpha.10]
|
|
4
|
+
|
|
5
|
+
### New Features
|
|
6
|
+
|
|
7
|
+
- [`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.
|
|
8
|
+
- [`b0f94775`](https://www.github.com/tauri-apps/tauri/commit/b0f947752a315b7b89c5979de50157f997f1dd6e)([#7008](https://www.github.com/tauri-apps/tauri/pull/7008)) Added `migrate` command.
|
|
9
|
+
|
|
10
|
+
### Enhancements
|
|
11
|
+
|
|
12
|
+
- [`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.
|
|
13
|
+
- [`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.
|
|
14
|
+
- [`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.
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
- [`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.
|
|
19
|
+
- [`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`
|
|
20
|
+
- [`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.
|
|
21
|
+
- [`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.
|
|
22
|
+
|
|
23
|
+
## \[2.0.0-alpha.9]
|
|
24
|
+
|
|
25
|
+
- [`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`.
|
|
26
|
+
- [`124d5c5a`](https://www.github.com/tauri-apps/tauri/commit/124d5c5adf67f0b68d2e41c7ddb07d9cb63f1996)([#6788](https://www.github.com/tauri-apps/tauri/pull/6788)) On mobile, fix regression introduced in `tauri-cli` version `2.0.0-alpha.3` where library not found error was thrown.
|
|
27
|
+
- [`31444ac1`](https://www.github.com/tauri-apps/tauri/commit/31444ac196add770f2ad18012d7c18bce7538f22)([#6725](https://www.github.com/tauri-apps/tauri/pull/6725)) Update mobile template to `wry@0.28`
|
|
28
|
+
- [`41f49aea`](https://www.github.com/tauri-apps/tauri/commit/41f49aeae646f2cb70b42002bb1371c79e592243)([#6659](https://www.github.com/tauri-apps/tauri/pull/6659)) Update tauri-mobile to fix running ADB scripts.
|
|
29
|
+
- [`6d1fa49f`](https://www.github.com/tauri-apps/tauri/commit/6d1fa49fce3a03965ce7c656390e682ce5b776e3)([#6881](https://www.github.com/tauri-apps/tauri/pull/6881)) Clear Android plugin JSON file before building Rust library to ensure removed plugins are propagated to the Android project.
|
|
30
|
+
- [`5a9307d1`](https://www.github.com/tauri-apps/tauri/commit/5a9307d11c1643221bc2a280feb00024f8fa6030)([#6890](https://www.github.com/tauri-apps/tauri/pull/6890)) Update android template to gradle 8.0
|
|
31
|
+
- [`73c803a5`](https://www.github.com/tauri-apps/tauri/commit/73c803a561181137f20366f5d52511392a619f2b)([#6837](https://www.github.com/tauri-apps/tauri/pull/6837)) Inject Tauri configuration in the Android assets.
|
|
32
|
+
- [`e1e85dc2`](https://www.github.com/tauri-apps/tauri/commit/e1e85dc2a5f656fc37867e278cae8042037740ac)([#6925](https://www.github.com/tauri-apps/tauri/pull/6925)) Moved the updater configuration to the `BundleConfig`.
|
|
33
|
+
- [`d48aaa15`](https://www.github.com/tauri-apps/tauri/commit/d48aaa150a1ceeb65ec0ba18f1e3795f70c838e3)([#6894](https://www.github.com/tauri-apps/tauri/pull/6894)) Add Cargo manifest files for the plugin example templates.
|
|
34
|
+
- [`e1e85dc2`](https://www.github.com/tauri-apps/tauri/commit/e1e85dc2a5f656fc37867e278cae8042037740ac)([#6925](https://www.github.com/tauri-apps/tauri/pull/6925)) Removed the allowlist configuration.
|
|
35
|
+
|
|
36
|
+
## \[2.0.0-alpha.8]
|
|
37
|
+
|
|
38
|
+
- Do not gitignore the Android project's `buildSrc` folder by default since we removed absolute paths from it.
|
|
39
|
+
- [ee2d3b97](https://www.github.com/tauri-apps/tauri/commit/ee2d3b971df6d3630b8d935394fb4febcfa3a909) fix(cli): remove buildSrc from Android project gitignored paths ([#6702](https://www.github.com/tauri-apps/tauri/pull/6702)) on 2023-04-13
|
|
40
|
+
- Fixes iOS build script using the wrong path for the app library file.
|
|
41
|
+
- [abc5f91f](https://www.github.com/tauri-apps/tauri/commit/abc5f91fa3569efc9dfdee46d1c501eda8755944) fix(cli): iOS Xcode script using incorrect library path ([#6699](https://www.github.com/tauri-apps/tauri/pull/6699)) on 2023-04-13
|
|
42
|
+
|
|
43
|
+
## \[2.0.0-alpha.7]
|
|
44
|
+
|
|
45
|
+
- Add `--release` flag for `tauri android dev` however you will need to sign your Android app, see https://next--tauri.netlify.app/next/guides/distribution/sign-android
|
|
46
|
+
- [63f088e5](https://www.github.com/tauri-apps/tauri/commit/63f088e5fc9701fd7fb329dad7ffb27a2d8fd5aa) feat(cli): add `--release` for `android dev` ([#6638](https://www.github.com/tauri-apps/tauri/pull/6638)) on 2023-04-05
|
|
47
|
+
- Build only specified rust targets for `tauri android build` instead of all.
|
|
48
|
+
- [d03e47d1](https://www.github.com/tauri-apps/tauri/commit/d03e47d141c3917520975be9081775dbc4e9d4fd) fix: only build specified rust targets for aab/apk build ([#6625](https://www.github.com/tauri-apps/tauri/pull/6625)) on 2023-04-05
|
|
49
|
+
- Use local ip address for built-in dev server on mobile.
|
|
50
|
+
- [7fec0f08](https://www.github.com/tauri-apps/tauri/commit/7fec0f083c932dc63ccb8716080d97e2ab985b25) fix(cli): use local ip addr for built-in server on mobile, closes [#6454](https://www.github.com/tauri-apps/tauri/pull/6454) ([#6631](https://www.github.com/tauri-apps/tauri/pull/6631)) on 2023-04-04
|
|
51
|
+
- Readd the Cargo.toml file to the plugin template.
|
|
52
|
+
- [5288a386](https://www.github.com/tauri-apps/tauri/commit/5288a386f1bf8ac11f991350463c3f5c20983f43) fix(cli): readd Cargo.toml to the plugin template ([#6637](https://www.github.com/tauri-apps/tauri/pull/6637)) on 2023-04-04
|
|
53
|
+
|
|
54
|
+
## \[2.0.0-alpha.6]
|
|
55
|
+
|
|
56
|
+
- Use Ubuntu 20.04 to compile the CLI, increasing the minimum libc version required.
|
|
57
|
+
- Automatically enable the `rustls-tls` tauri feature on mobile and `native-tls` on desktop if `rustls-tls` is not enabled.
|
|
58
|
+
- [cfdee00f](https://www.github.com/tauri-apps/tauri/commit/cfdee00f2b1455a9719bc44823fdaeabbe4c1cb2) refactor(core): fix tls features, use rustls on mobile ([#6591](https://www.github.com/tauri-apps/tauri/pull/6591)) on 2023-03-30
|
|
59
|
+
|
|
60
|
+
## \[2.0.0-alpha.5]
|
|
61
|
+
|
|
62
|
+
- Fixes the iOS project script to build the Rust library.
|
|
63
|
+
- [6e3e4c22](https://www.github.com/tauri-apps/tauri/commit/6e3e4c22be51500bec7856d90dcb2e40ef7fe1b4) fix(cli): use correct variable on script to build Rust iOS code ([#6581](https://www.github.com/tauri-apps/tauri/pull/6581)) on 2023-03-29
|
|
64
|
+
- Fix `tauri android build/dev` crashing when used with standalone `pnpm` executable on Windows.
|
|
65
|
+
- [39df2c98](https://www.github.com/tauri-apps/tauri/commit/39df2c982e5e2ee8617b40f829a2f2e4abfce412) fix(cli/android): fallback to `${program}.cmd` ([#6576](https://www.github.com/tauri-apps/tauri/pull/6576)) on 2023-03-29
|
|
66
|
+
- [6b469c40](https://www.github.com/tauri-apps/tauri/commit/6b469c40c6244ba773d7478adbb41db6fdc72822) chore(changes): adjust change file for Android script execution fix on 2023-03-29
|
|
67
|
+
|
|
68
|
+
## \[2.0.0-alpha.4]
|
|
69
|
+
|
|
70
|
+
- Fix android project build crashing when using `pnpm` caused by extra `--`.
|
|
71
|
+
- [c787f749](https://www.github.com/tauri-apps/tauri/commit/c787f749de01b79d891615aad8c37b23037fff4c) fix(cli): only add `--` to generated android template for npm ([#6508](https://www.github.com/tauri-apps/tauri/pull/6508)) on 2023-03-21
|
|
72
|
+
- Fixes the Android build gradle plugin implementation on Windows.
|
|
73
|
+
- [00241fa9](https://www.github.com/tauri-apps/tauri/commit/00241fa92d104870068a701519340633cc35b716) fix(cli): append .cmd on the gradle plugin binary on Windows, fix [#6502](https://www.github.com/tauri-apps/tauri/pull/6502) ([#6503](https://www.github.com/tauri-apps/tauri/pull/6503)) on 2023-03-21
|
|
74
|
+
- Update `napi-rs` dependencies to latest to fix CLI hanging up forever.
|
|
75
|
+
- [d5ac76b5](https://www.github.com/tauri-apps/tauri/commit/d5ac76b53c7f35253db84ddfbf4ecf975ff6307d) chore(deps): update napi-rs, closes [#6502](https://www.github.com/tauri-apps/tauri/pull/6502) ([#6513](https://www.github.com/tauri-apps/tauri/pull/6513)) on 2023-03-21
|
|
76
|
+
|
|
77
|
+
## \[2.0.0-alpha.3]
|
|
78
|
+
|
|
79
|
+
- Added `plugin android add` and `plugin ios add` commands to add mobile plugin functionality to existing projects.
|
|
80
|
+
- [14d03d42](https://www.github.com/tauri-apps/tauri/commit/14d03d426e86d966950a790926c04560c76203b3) refactor(cli): enhance plugin commands for mobile ([#6289](https://www.github.com/tauri-apps/tauri/pull/6289)) on 2023-02-16
|
|
81
|
+
- Add commands to add native Android and iOS functionality to plugins.
|
|
82
|
+
- [05dad087](https://www.github.com/tauri-apps/tauri/commit/05dad0876842e2a7334431247d49365cee835d3e) feat: initial work for iOS plugins ([#6205](https://www.github.com/tauri-apps/tauri/pull/6205)) on 2023-02-11
|
|
83
|
+
- Use temp file instead of environment variable to pass CLI IPC websocket address to the IDE.
|
|
84
|
+
- [894a8d06](https://www.github.com/tauri-apps/tauri/commit/894a8d060c12a482a0fc5b3714f3848189b809de) refactor(cli): use temp file to communicate IPC websocket address ([#6219](https://www.github.com/tauri-apps/tauri/pull/6219)) on 2023-02-08
|
|
85
|
+
- Change the Android template to enable minification on release and pull ProGuard rules from proguard-tauri.pro.
|
|
86
|
+
- [bef4ef51](https://www.github.com/tauri-apps/tauri/commit/bef4ef51bc2c633b88db121c2087a38dddb7d6bf) feat(android): enable minify on release, add proguard rules ([#6257](https://www.github.com/tauri-apps/tauri/pull/6257)) on 2023-02-13
|
|
87
|
+
- Print an error if the Android project was generated with an older bundle identifier or package name.
|
|
88
|
+
- [79eb0542](https://www.github.com/tauri-apps/tauri/commit/79eb054292b04bb089a0e4df401a5986b33b691e) feat(cli): handle Android package identifier change ([#6314](https://www.github.com/tauri-apps/tauri/pull/6314)) on 2023-02-19
|
|
89
|
+
- Fixes the generated mobile build script when using an NPM runner.
|
|
90
|
+
- [62f15265](https://www.github.com/tauri-apps/tauri/commit/62f152659204ce1218178596f463f0bcfbd4e6dc) fix(cli): generate build script using NPM runner if it was used ([#6233](https://www.github.com/tauri-apps/tauri/pull/6233)) on 2023-02-10
|
|
91
|
+
- Resolve Android package name from single word bundle identifiers.
|
|
92
|
+
- [60a8b07d](https://www.github.com/tauri-apps/tauri/commit/60a8b07dc7c56c9c45331cb57d9afb410e7eadf3) fix: handle single word bundle identifier when resolving Android domain ([#6313](https://www.github.com/tauri-apps/tauri/pull/6313)) on 2023-02-19
|
|
93
|
+
- Update Android project template with fix to crash on orientation change.
|
|
94
|
+
- [947eb391](https://www.github.com/tauri-apps/tauri/commit/947eb391ca41cebdb11abd9ffaec642baffbf44a) fix(android): crash on orientation change due to activity recreation ([#6261](https://www.github.com/tauri-apps/tauri/pull/6261)) on 2023-02-13
|
|
95
|
+
- Added `--ios-color` option to the `tauri icon` command.
|
|
96
|
+
- [67755425](https://www.github.com/tauri-apps/tauri/commit/677554257e40e05b1af0dd61c982d6be8a8a033c) feat(cli): add `--ios-color` option to set iOS icon background color ([#6247](https://www.github.com/tauri-apps/tauri/pull/6247)) on 2023-02-12
|
|
97
|
+
- Fixes HMR on mobile when devPath is configured to load a filesystem path.
|
|
98
|
+
- [4a82da29](https://www.github.com/tauri-apps/tauri/commit/4a82da2919e0564ec993b2005dc65b5b49407b36) fix(cli): use local ip address for reload ([#6285](https://www.github.com/tauri-apps/tauri/pull/6285)) on 2023-02-16
|
|
99
|
+
- Ignore the `gen` folder on the dev watcher.
|
|
100
|
+
- [cab4ff95](https://www.github.com/tauri-apps/tauri/commit/cab4ff95b98aeac88401c1fed2d8b8940e4180cb) fix(cli): ignore the `gen` folder on the dev watcher ([#6232](https://www.github.com/tauri-apps/tauri/pull/6232)) on 2023-02-09
|
|
101
|
+
- Correctly pass arguments from `npm run` to `tauri`.
|
|
102
|
+
- [1b343bd1](https://www.github.com/tauri-apps/tauri/commit/1b343bd11686f47f24a87298d8192097c66250f6) fix(cli): use `npm run tauri -- foo` for correctly passing args to tauri ([#6448](https://www.github.com/tauri-apps/tauri/pull/6448)) on 2023-03-16
|
|
103
|
+
- Changed the `--api` flag on `plugin init` to `--no-api`.
|
|
104
|
+
- [14d03d42](https://www.github.com/tauri-apps/tauri/commit/14d03d426e86d966950a790926c04560c76203b3) refactor(cli): enhance plugin commands for mobile ([#6289](https://www.github.com/tauri-apps/tauri/pull/6289)) on 2023-02-16
|
|
105
|
+
|
|
106
|
+
## \[2.0.0-alpha.2]
|
|
107
|
+
|
|
108
|
+
- Fixes `TAURI_*` environment variables for hook scripts on mobile commands.
|
|
109
|
+
- [1af9be90](https://www.github.com/tauri-apps/tauri/commit/1af9be904a309138b9f79dc741391000b1652c75) feat(cli): properly fill target for TAURI\_ env vars on mobile ([#6116](https://www.github.com/tauri-apps/tauri/pull/6116)) on 2023-01-23
|
|
110
|
+
- Force colored logs on mobile commands.
|
|
111
|
+
- [2c4a0bbd](https://www.github.com/tauri-apps/tauri/commit/2c4a0bbd1fbe15d7500264e6490772397e1917ed) feat(cli): force colored logs on mobile commands ([#5934](https://www.github.com/tauri-apps/tauri/pull/5934)) on 2022-12-28
|
|
112
|
+
- Keep the process alive even when the iOS application is closed.
|
|
113
|
+
- [dee9460f](https://www.github.com/tauri-apps/tauri/commit/dee9460f9c9bc92e9c638e7691e616849ac2085b) feat: keep CLI alive when iOS app exits, show logs, closes [#5855](https://www.github.com/tauri-apps/tauri/pull/5855) ([#5902](https://www.github.com/tauri-apps/tauri/pull/5902)) on 2022-12-27
|
|
114
|
+
- Show all application logs on iOS.
|
|
115
|
+
- [dee9460f](https://www.github.com/tauri-apps/tauri/commit/dee9460f9c9bc92e9c638e7691e616849ac2085b) feat: keep CLI alive when iOS app exits, show logs, closes [#5855](https://www.github.com/tauri-apps/tauri/pull/5855) ([#5902](https://www.github.com/tauri-apps/tauri/pull/5902)) on 2022-12-27
|
|
116
|
+
- Print log output for all tags on Android development.
|
|
117
|
+
- [8cc11149](https://www.github.com/tauri-apps/tauri/commit/8cc111494d74161e489152e52191e1442dd99759) fix(cli): print Android logs for all tags on 2023-01-17
|
|
118
|
+
- Add support to custom and kebab case library names for mobile apps.
|
|
119
|
+
- [50f6dd87](https://www.github.com/tauri-apps/tauri/commit/50f6dd87b1ac2c99f8794b055f1acba4ef7d34d3) feat: improvements to support hyphens in crate name ([#5989](https://www.github.com/tauri-apps/tauri/pull/5989)) on 2023-01-06
|
|
120
|
+
- Fix target directory detection when compiling for Android.
|
|
121
|
+
- [e873bae0](https://www.github.com/tauri-apps/tauri/commit/e873bae09f0f27517f720a753f51c1dcb903f883) fix(cli): Cargo target dir detection on Android, closes [#5865](https://www.github.com/tauri-apps/tauri/pull/5865) ([#5932](https://www.github.com/tauri-apps/tauri/pull/5932)) on 2022-12-28
|
|
122
|
+
|
|
3
123
|
## \[2.0.0-alpha.1]
|
|
4
124
|
|
|
5
125
|
- Fixes running on device using Xcode 14.
|
|
@@ -22,6 +142,83 @@
|
|
|
22
142
|
- First mobile alpha release!
|
|
23
143
|
- [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
|
|
24
144
|
|
|
145
|
+
## \[1.4.0]
|
|
146
|
+
|
|
147
|
+
### New Features
|
|
148
|
+
|
|
149
|
+
- [`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.
|
|
150
|
+
- [`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`.
|
|
151
|
+
- [`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.
|
|
152
|
+
- [`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.
|
|
153
|
+
|
|
154
|
+
### Enhancements
|
|
155
|
+
|
|
156
|
+
- [`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.
|
|
157
|
+
- [`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.
|
|
158
|
+
- [`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.
|
|
159
|
+
|
|
160
|
+
### Bug Fixes
|
|
161
|
+
|
|
162
|
+
- [`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.
|
|
163
|
+
- [`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`
|
|
164
|
+
- [`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.
|
|
165
|
+
|
|
166
|
+
## \[1.3.1]
|
|
167
|
+
|
|
168
|
+
- Correctly escape XML for resource files in WiX bundler.
|
|
169
|
+
- Bumped due to a bump in tauri-bundler.
|
|
170
|
+
- Bumped due to a bump in cli.rs.
|
|
171
|
+
- [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
|
|
172
|
+
|
|
173
|
+
- Added the following languages to the NSIS bundler:
|
|
174
|
+
|
|
175
|
+
- `Spanish`
|
|
176
|
+
|
|
177
|
+
- `SpanishInternational`
|
|
178
|
+
|
|
179
|
+
- Bumped due to a bump in tauri-bundler.
|
|
180
|
+
- Bumped due to a bump in cli.rs.
|
|
181
|
+
|
|
182
|
+
- [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
|
|
183
|
+
|
|
184
|
+
- Correctly escape arguments in NSIS script to fix bundling apps that use non-default WebView2 install modes.
|
|
185
|
+
- Bumped due to a bump in tauri-bundler.
|
|
186
|
+
- Bumped due to a bump in cli.rs.
|
|
187
|
+
- [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
|
|
188
|
+
|
|
189
|
+
## \[1.3.0]
|
|
190
|
+
|
|
191
|
+
- 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.
|
|
192
|
+
- [8fb1df8a](https://www.github.com/tauri-apps/tauri/commit/8fb1df8aa65a52cdb4a7e1bb9dda9b912a7a2895) feat(cli): add `--ci` flag to `signer generate`, closes [#6089](https://www.github.com/tauri-apps/tauri/pull/6089) ([#6097](https://www.github.com/tauri-apps/tauri/pull/6097)) on 2023-01-19
|
|
193
|
+
- Fix Outdated Github Actions in the Plugin Templates `with-api` and `backend`
|
|
194
|
+
- [a926b49a](https://www.github.com/tauri-apps/tauri/commit/a926b49a01925ca757d391994bfac3beea29599b) Fix Github Actions of Tauri Plugin with-api template ([#6603](https://www.github.com/tauri-apps/tauri/pull/6603)) on 2023-04-03
|
|
195
|
+
- Do not crash on Cargo.toml watcher.
|
|
196
|
+
- [e8014a7f](https://www.github.com/tauri-apps/tauri/commit/e8014a7f612a1094461ddad63aacc498a2682ff5) fix(cli): do not crash on watcher ([#6303](https://www.github.com/tauri-apps/tauri/pull/6303)) on 2023-02-17
|
|
197
|
+
- Fix crash when nodejs binary has the version in its name, for example `node-18`
|
|
198
|
+
- [1c8229fb](https://www.github.com/tauri-apps/tauri/commit/1c8229fbe273554c0c97cccee45d5967f5df1b9f) fix(cli.js): detect `node-<version>` binary, closes [#6427](https://www.github.com/tauri-apps/tauri/pull/6427) ([#6432](https://www.github.com/tauri-apps/tauri/pull/6432)) on 2023-03-16
|
|
199
|
+
- Add `--png` option for the `icon` command to generate custom icon sizes.
|
|
200
|
+
- [9d214412](https://www.github.com/tauri-apps/tauri/commit/9d2144128fc5fad67d8404bce95f82297ebb0e4a) feat(cli): add option to make custom icon sizes, closes [#5121](https://www.github.com/tauri-apps/tauri/pull/5121) ([#5246](https://www.github.com/tauri-apps/tauri/pull/5246)) on 2022-12-27
|
|
201
|
+
- Skip the password prompt on the build command when `TAURI_KEY_PASSWORD` environment variable is empty and the `--ci` argument is provided or the `CI` environment variable is set.
|
|
202
|
+
- [d4f89af1](https://www.github.com/tauri-apps/tauri/commit/d4f89af18d69fd95a4d8a1ede8442547c6a6d0ee) feat: skip password prompt on the build command if CI is set fixes [#6089](https://www.github.com/tauri-apps/tauri/pull/6089) on 2023-01-18
|
|
203
|
+
- Fix `default-run` not deserialized.
|
|
204
|
+
- [57c6bf07](https://www.github.com/tauri-apps/tauri/commit/57c6bf07bb380847abdf27c3fff9891d99c1c98c) fix(cli): fix default-run not deserialized ([#6584](https://www.github.com/tauri-apps/tauri/pull/6584)) on 2023-03-30
|
|
205
|
+
- Fixes HTML serialization removing template tags on the dev server.
|
|
206
|
+
- [314f0e21](https://www.github.com/tauri-apps/tauri/commit/314f0e212fd2b9e452bfe3424cdce2b0bf37b5d7) fix(cli): web_dev_server html template serialization (fix [#6165](https://www.github.com/tauri-apps/tauri/pull/6165)) ([#6166](https://www.github.com/tauri-apps/tauri/pull/6166)) on 2023-01-29
|
|
207
|
+
- Use escaping on Handlebars templates.
|
|
208
|
+
- [6d6b6e65](https://www.github.com/tauri-apps/tauri/commit/6d6b6e653ea70fc02794f723092cdc860995c259) feat: configure escaping on handlebars templates ([#6678](https://www.github.com/tauri-apps/tauri/pull/6678)) on 2023-05-02
|
|
209
|
+
- Add initial support for building `nsis` bundles on non-Windows platforms.
|
|
210
|
+
- [60e6f6c3](https://www.github.com/tauri-apps/tauri/commit/60e6f6c3f1605f3064b5bb177992530ff788ccf0) feat(bundler): Add support for creating NSIS bundles on unix hosts ([#5788](https://www.github.com/tauri-apps/tauri/pull/5788)) on 2023-01-19
|
|
211
|
+
- Add `nsis` bundle target
|
|
212
|
+
- [c94e1326](https://www.github.com/tauri-apps/tauri/commit/c94e1326a7c0767a13128a8b1d327a00156ece12) feat(bundler): add `nsis`, closes [#4450](https://www.github.com/tauri-apps/tauri/pull/4450), closes [#2319](https://www.github.com/tauri-apps/tauri/pull/2319) ([#4674](https://www.github.com/tauri-apps/tauri/pull/4674)) on 2023-01-03
|
|
213
|
+
- Remove default features from Cargo.toml template.
|
|
214
|
+
- [b08ae637](https://www.github.com/tauri-apps/tauri/commit/b08ae637a0f58b38cbce9b8a1fa0b6c5dc0cfd05) fix(cli): remove default features from template ([#6074](https://www.github.com/tauri-apps/tauri/pull/6074)) on 2023-01-17
|
|
215
|
+
- Use Ubuntu 20.04 to compile the CLI, increasing the minimum libc version required.
|
|
216
|
+
|
|
217
|
+
## \[1.2.3]
|
|
218
|
+
|
|
219
|
+
- Pin `ignore` to `=0.4.18`.
|
|
220
|
+
- [adcb082b](https://www.github.com/tauri-apps/tauri/commit/adcb082b1651ecb2a6208b093e12f4185aa3fc98) chore(deps): pin `ignore` to =0.4.18 on 2023-01-17
|
|
221
|
+
|
|
25
222
|
## \[1.2.2]
|
|
26
223
|
|
|
27
224
|
- Detect SvelteKit and Vite for the init and info commands.
|
package/Cargo.toml
CHANGED
|
@@ -8,10 +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.13", default-features = false, features = ["napi4"] }
|
|
12
|
+
napi-derive = "2.13"
|
|
13
|
+
tauri-cli = { path = "..", default-features = false }
|
|
14
|
+
log = "0.4.19"
|
|
15
15
|
|
|
16
16
|
[build-dependencies]
|
|
17
17
|
napi-build = "2.0"
|
|
18
|
+
|
|
19
|
+
[features]
|
|
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 `yarn`, 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 [cli
|
|
22
|
+
Written in Typescript and packaged such that it can be used with `npm`, `pnpm`, and `yarn`, 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/build.rs
CHANGED
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// SPDX-License-Identifier: MIT
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/* prettier-ignore */
|
|
8
|
+
|
|
9
|
+
/* auto-generated by NAPI-RS */
|
|
10
|
+
|
|
1
11
|
const { existsSync, readFileSync } = require('fs')
|
|
2
12
|
const { join } = require('path')
|
|
3
13
|
|
|
@@ -11,7 +21,8 @@ function isMusl() {
|
|
|
11
21
|
// For Node 10
|
|
12
22
|
if (!process.report || typeof process.report.getReport !== 'function') {
|
|
13
23
|
try {
|
|
14
|
-
|
|
24
|
+
const lddPath = require('child_process').execSync('which ldd').toString().trim()
|
|
25
|
+
return readFileSync(lddPath, 'utf8').includes('musl')
|
|
15
26
|
} catch (e) {
|
|
16
27
|
return true
|
|
17
28
|
}
|
|
@@ -101,6 +112,15 @@ switch (platform) {
|
|
|
101
112
|
}
|
|
102
113
|
break
|
|
103
114
|
case 'darwin':
|
|
115
|
+
localFileExisted = existsSync(join(__dirname, 'cli.darwin-universal.node'))
|
|
116
|
+
try {
|
|
117
|
+
if (localFileExisted) {
|
|
118
|
+
nativeBinding = require('./cli.darwin-universal.node')
|
|
119
|
+
} else {
|
|
120
|
+
nativeBinding = require('@tauri-apps/cli-darwin-universal')
|
|
121
|
+
}
|
|
122
|
+
break
|
|
123
|
+
} catch {}
|
|
104
124
|
switch (arch) {
|
|
105
125
|
case 'x64':
|
|
106
126
|
localFileExisted = existsSync(join(__dirname, 'cli.darwin-x64.node'))
|
package/jest.config.js
CHANGED
package/main.d.ts
CHANGED
package/main.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tauri-apps/cli",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.10",
|
|
4
4
|
"description": "Command line interface for building Tauri apps",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "opencollective",
|
|
@@ -32,18 +32,22 @@
|
|
|
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
|
-
"fs-extra": "11.1.
|
|
44
|
-
"jest": "29.
|
|
44
|
+
"fs-extra": "11.1.1",
|
|
45
|
+
"jest": "29.5.0",
|
|
45
46
|
"jest-transform-toml": "1.0.0",
|
|
46
|
-
"prettier": "2.8.
|
|
47
|
+
"prettier": "2.8.8"
|
|
48
|
+
},
|
|
49
|
+
"resolutions": {
|
|
50
|
+
"json5": "2.2.3"
|
|
47
51
|
},
|
|
48
52
|
"engines": {
|
|
49
53
|
"node": ">= 10"
|
|
@@ -64,14 +68,15 @@
|
|
|
64
68
|
"format:check": "prettier --check ./package.json ./tauri.js"
|
|
65
69
|
},
|
|
66
70
|
"optionalDependencies": {
|
|
67
|
-
"@tauri-apps/cli-win32-x64-msvc": "2.0.0-alpha.
|
|
68
|
-
"@tauri-apps/cli-darwin-x64": "2.0.0-alpha.
|
|
69
|
-
"@tauri-apps/cli-linux-x64-gnu": "2.0.0-alpha.
|
|
70
|
-
"@tauri-apps/cli-darwin-arm64": "2.0.0-alpha.
|
|
71
|
-
"@tauri-apps/cli-linux-arm64-gnu": "2.0.0-alpha.
|
|
72
|
-
"@tauri-apps/cli-linux-arm64-musl": "2.0.0-alpha.
|
|
73
|
-
"@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-alpha.
|
|
74
|
-
"@tauri-apps/cli-linux-x64-musl": "2.0.0-alpha.
|
|
75
|
-
"@tauri-apps/cli-win32-ia32-msvc": "2.0.0-alpha.
|
|
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"
|
|
76
81
|
}
|
|
77
82
|
}
|