Compare commits

...

159 Commits

Author SHA1 Message Date
github-actions[bot]
d1304ffa12 (NEXT) Apply Version Updates From Current Changes (#6707)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2023-05-18 09:10:12 -03:00
Lucas Fernandes Nogueira
8ce32e74b5 feat(core): expose default_window_icon on App and AppHandle (#6986) 2023-05-17 19:54:15 -03:00
Lucas Fernandes Nogueira
2344aea176 fix(ci): use workflow-dispatch action to trigger next branch workflow (#6977) 2023-05-16 20:44:52 -03:00
Amr Bashir
994e4fd6d9 chore: reuse defaultArchList (#6978) 2023-05-17 02:08:05 +03:00
Lucas Fernandes Nogueira
e5bd34cb34 refactor(core): remove init scripts related to plugin APIs (#6975) 2023-05-16 11:46:32 -03:00
Lucas Fernandes Nogueira
59db76af4c refactor(android): fix race conditions processing Android plugin project as dependency (#6968) 2023-05-16 10:22:46 -03:00
Lucas Fernandes Nogueira
6fb5734d2f feat(mobile): add event APIs for plugins (#6946) 2023-05-15 11:36:25 -03:00
Lucas Fernandes Nogueira
6d25c4d07f fix(config): properly reference updater configuration on ToTokens impl (#6957) 2023-05-13 10:30:35 -03:00
Amr Bashir
e1e85dc2a5 chore: fix ci and cleanup leftovers (#6925)
* chore: fix ci and cleanup leftovers

1. removed leftover feature flags
2. remove zip/extract apis which are not used anymore
3. removed leftoever scopes
4. removed leftover allowlist and updater options
5. updated the example api

* remove leftover updater structs

* move updater under bundle and remove uneeded options

* fix cli on linux

* remove create_proxy

* clippy

* more clippy

* clippppy

* readd path api

* fix api example

* remove window allowlist

* remove window from allowlist config

* remove `all` allowlist option

* remove file_move

* lint

* fix windows build

* remvoe unused deps

* remvoe allowlist config option, move protocol to `security > asset_protocol`

* fix diffing features

* fmt and test

* fix scope alias

* change files

* android lint

* simplify allow_file impl

* Revert "simplify allow_file impl"

This reverts commit b8882f2fd0.

* expose scopes

* remove unused error variants

* protocol-asset on docs.rs

* ignore reqwest on udeps

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-05-13 13:48:28 +03:00
Lucas Fernandes Nogueira
9a79dc0858 refactor(core): remove window endpoints (#6947) 2023-05-12 08:18:00 -03:00
Amr Bashir
5a9307d11c feat(cli): update android template to gradle 8.0 (#6890)
* feat(cli): update android template to gradle 8.0

* update java in CI to 17

* updat to latest tauri-mobile
2023-05-12 14:06:50 +03:00
Lucas Fernandes Nogueira
39f1b04f7b refactor(core): move event JS API to a core plugin (#6943) 2023-05-12 07:55:39 -03:00
Lucas Fernandes Nogueira
0ab5f40d3a feat(core): add IPC channel (#6813) 2023-05-11 07:25:32 -03:00
Lucas Fernandes Nogueira
b072daa3bd refactor(core): move updater to a plugin (#6919) 2023-05-09 16:43:31 -07:00
Lucas Fernandes Nogueira
60cf9ed2fc refactor(core): move process endpoints to plugins-workspace (#6905) 2023-05-09 12:00:41 -03:00
Amr Bashir
c4171152c1 fix: enable shadows by default, closes #6909 (#6916) 2023-05-09 15:56:13 +03:00
Lucas Fernandes Nogueira
29ce9ce2ce refactor(core): move os endpoints to a dedicated plugin (#6902)
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2023-05-08 12:05:12 -03:00
Lucas Fernandes Nogueira
3245d14b9e refactor(core): remove app module (#6895) 2023-05-08 10:29:36 -03:00
Lucas Fernandes Nogueira
2cc282c129 fix(build): rerun plugin build when plugins.json changes, wait write (#6893) 2023-05-08 10:29:09 -03:00
Lucas Fernandes Nogueira
d48aaa150a fix(cli): readd plugin example template Cargo.toml files (#6894) 2023-05-07 17:19:51 -07:00
Lucas Nogueira
4585a1cbb0 Merge branch 'dev' into next 2023-05-07 10:42:44 -03:00
Lucas Fernandes Nogueira
5a768d5ce6 refactor(build): remove WindowsAttributes::sdk_dir (#6886) 2023-05-06 17:49:22 -03:00
Lucas Fernandes Nogueira
3188f37649 feat: update MSRV to 1.65 (#6883) 2023-05-06 17:16:52 -03:00
Lucas Fernandes Nogueira
6d1fa49fce fix(cli): clear plugin JSON file before rebuilding (#6881) 2023-05-06 15:59:33 -03:00
Lucas Fernandes Nogueira
7a4b1fb96d feat(macros): add support to attributes on generate_handler (#6839) 2023-05-06 10:44:24 -07:00
LuisFerLCC
422b481798 Add Spanish and SpanishInternational languages (#6871) 2023-05-06 16:25:10 +08:00
Lucas Fernandes Nogueira
256c30c72b feat(android): support private plugin callbacks and commands (#6863) 2023-05-05 09:19:02 -03:00
Fabian-Lars
6a6b1388ea fix(bundler): correctly escape resource xml, fixes #6853 (#6855) 2023-05-04 09:10:33 -03:00
Amr Bashir
6788bb4984 chore: update reproduction wording (#6850)
* chore: update reproduction wording

* Update bug_report.yml

* Update .github/ISSUE_TEMPLATE/bug_report.yml

Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <yuweiwu@pm.me>

* Update bug_report.yml

---------

Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <yuweiwu@pm.me>
2023-05-04 19:28:22 +08:00
Fabian-Lars
2915bd068e fix(bundler): Fix webview install modes in NSIS bundler (#6854) 2023-05-04 19:27:27 +08:00
Lucas Fernandes Nogueira
5053a9c4c4 fix(ci): use rustls on publish-cli-js workflow (#6847) 2023-05-03 14:59:09 -03:00
Lucas Fernandes Nogueira
20f582f6c3 chore: update changelog with v1.3 remote IPC backport (#6848) 2023-05-03 14:58:57 -03:00
Lucas Nogueira
dafdcc9b42 fix(ci): use ubuntu-20.04 to build the CLI 2023-05-03 12:05:49 -03:00
Lucas Nogueira
7fd4ca0aef chore(api): downgrade documentation dependencies 2023-05-03 10:10:59 -03:00
Lucas Fernandes Nogueira
0dfd5f875f fix(core): pin winnow dependency to 0.4.1 to keep 1.60 MSRV (#6845) 2023-05-03 09:31:59 -03:00
Lucas Fernandes Nogueira
14b3667420 fix(api): downgrade typedoc to 0.23 (#6844) 2023-05-03 09:19:37 -03:00
github-actions[bot]
bf804657f5 Apply Version Updates From Current Changes (#5815)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2023-05-03 08:19:06 -03:00
Lucas Fernandes Nogueira
73c803a561 feat(android): inject tauri.conf.json asset, add plugin config load API (#6837) 2023-05-03 08:16:05 -03:00
Lucas Fernandes Nogueira
93452b791a feat(bundler): download NSIS zip from tauri-apps/binary-releases (#6838) 2023-05-02 16:36:33 -03:00
Lucas Fernandes Nogueira
6d6b6e653e feat: configure escaping on handlebars templates (#6678)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2023-05-02 09:59:59 -03:00
Lucas Fernandes Nogueira
40f137c214 fix(core): IPC remote domain check bypassed by isolation iframe usage (#6691) 2023-05-02 09:58:51 -03:00
Lucas Fernandes Nogueira
bb2a8ccf13 fix(ios): use correct class to call plugin command with throws (#6830) 2023-05-01 14:19:28 -03:00
Lucas Fernandes Nogueira
edb16d13a5 fix(android): adjust Android plugin command exception to use e.message (#6831) 2023-05-01 14:16:05 -03:00
Lucas Nogueira
e68a08da51 feat(android): allow JSObject::getString to return null 2023-04-29 12:50:04 -03:00
Amr Bashir
19cd0e4960 feat: add key.properties to android gitignore (#6811) 2023-04-27 16:04:53 +02:00
Lucas Fernandes Nogueira
41cb06172a fix(ios): update wry, fix plugin config load (#6810) 2023-04-27 05:55:48 -07:00
Amr Bashir
124d5c5adf fix(cli): use snake_case fallback of app_name (#6788)
fix regression introduced in 2b22f64972
2023-04-25 18:21:06 -03:00
renovate[bot]
e8e214b72e chore(deps) Update Tauri API Definitions (#6739)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-24 11:19:59 -03:00
renovate[bot]
eae0150b0a chore(deps) Update Rust crate serde_json to 1.0.96 (#6738)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-24 11:19:49 -03:00
Lucas Fernandes Nogueira
942249060e refactor(core): generate TauriActivity on build script (#6783) 2023-04-24 11:17:59 -03:00
Amr Bashir
ecc9ac9603 fix(tauri-build): escape path to tauri-android project (#6785) 2023-04-24 11:14:43 -03:00
Lucas Fernandes Nogueira
d693e526e8 feat(android): add onNewIntent plugin hook (#6780) 2023-04-23 19:59:46 -03:00
Lucas Fernandes Nogueira
2a5175a8f8 feat(android): enhance JSObject return types (#6779) 2023-04-23 17:06:31 -03:00
Amr Bashir
31444ac196 chore(deps): update wry to 0.28 (#6725)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-04-23 16:59:39 -03:00
Lucas Fernandes Nogueira
cdad6e0837 refactor(core): use absolute path for the tauri Android library (#6774) 2023-04-23 15:40:47 -03:00
Lucas Fernandes Nogueira
2969d1cbba refactor(core): use absolute path to plugin Android project (#6773) 2023-04-23 11:21:36 -03:00
Lucas Fernandes Nogueira
dfa407ffcb feat(mobile): add plugin config to the Plugin class (#6763) 2023-04-23 09:15:13 -03:00
Lucas Fernandes Nogueira
41f49aeae6 fix(cli.js): adb commands not working, closes #6659 (#6708)
fix(cli.js): adb commands not working, closes #6659
2023-04-23 09:14:54 -03:00
Lucas Fernandes Nogueira
96639ca239 refactor(core): remove shell APIs (#6749) 2023-04-20 09:19:47 -03:00
Lucas Fernandes Nogueira
0c11023bcf refactor(core): remove http-multipart Cargo feature (#6748) 2023-04-19 20:17:41 -03:00
Lucas Fernandes Nogueira
ae102980fc refactor(core): read tray icon only on desktop, refactor Context (#6719) 2023-04-19 19:44:10 -03:00
Kárándi Tamás
51460340bf fix: copy failure in NSIS bundler #6743 (#6744) 2023-04-19 19:42:38 -03:00
Lucas Fernandes Nogueira
86488a6ad8 refactor(core): remove notification API (#6745) 2023-04-19 19:03:34 -03:00
Lucas Fernandes Nogueira
f78a378344 refactor(core): remove http features (#6742) 2023-04-19 11:47:29 -03:00
Lucas Fernandes Nogueira
2d5378bfc1 refactor(core): move dialog API to its own plugin (#6717) 2023-04-18 22:18:22 -03:00
Lucas Fernandes Nogueira
3f17ee82f6 refactor(core): remove global shortcut APIs (#6737) 2023-04-18 14:57:51 -03:00
Lucas Fernandes Nogueira
db9c12c1ad refactor(runtime): remove clipboard APIs (#6735) 2023-04-18 09:11:27 -03:00
Lucas Fernandes Nogueira
8e46695b7e Revert "feat(core): expose runtime_handle on AppHandle (#6727)"
This reverts commit 276e4a3fdb.
2023-04-18 08:30:25 -03:00
Lucas Fernandes Nogueira
cebd75261a refactor(core): remove the clipboard APIs (#6728) 2023-04-17 15:35:12 -03:00
Lucas Fernandes Nogueira
276e4a3fdb feat(core): expose runtime_handle on AppHandle (#6727) 2023-04-17 13:49:09 -03:00
Lucas Fernandes Nogueira
e6e586ad75 chore(examples): update API example plugin usage (#6715) 2023-04-16 09:31:38 -03:00
Lucas Fernandes Nogueira
fc4d687ef0 refactor(core): move file system endpoints to its own plugin (#6716) 2023-04-16 09:20:58 -03:00
Lucas Fernandes Nogueira
22a7633816 feat(core): expose SafePathBuf (#6713) 2023-04-15 15:44:05 -03:00
Lucas Fernandes Nogueira
09376af594 refactor(core): remove cli feature (#6704) 2023-04-14 15:33:53 -03:00
Lucas Fernandes Nogueira
34b8f339a4 feat(core): add app method on PluginApi (#6705) 2023-04-14 15:33:41 -03:00
github-actions[bot]
06fdcc0edd (NEXT) Apply Version Updates From Current Changes (#6701)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2023-04-13 19:43:17 -03:00
Lucas Fernandes Nogueira
ee2d3b971d fix(cli): remove buildSrc from Android project gitignored paths (#6702) 2023-04-13 19:29:18 -03:00
Lucas Fernandes Nogueira
9de897919a fix(core): iOS plugin freezing when receiving a bool parameter (#6700) 2023-04-13 18:26:45 -03:00
Lucas Fernandes Nogueira
abc5f91fa3 fix(cli): iOS Xcode script using incorrect library path (#6699) 2023-04-13 18:26:32 -03:00
Lucas Fernandes Nogueira
57fa569161 fix(ci): send ref to publish CLI workflows (#6674) 2023-04-12 11:32:23 -03:00
renovate[bot]
dfb5f52d3c chore(deps) Update Tauri API Definitions (#6684)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-12 11:20:44 -03:00
renovate[bot]
80069e1dc0 chore(deps) Update Rust crate json-patch to v1 (#6686)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-12 11:20:08 -03:00
renovate[bot]
5fcb55e420 chore(deps) Update Rust crate json-patch to v1 (#6687)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-12 11:19:55 -03:00
Lucas Fernandes Nogueira
ee71c31fd0 feat(core): allow configuring remote domains with IPC access, closes #5088 (#5918) 2023-04-11 08:50:15 -03:00
github-actions[bot]
f3917e7ee8 (NEXT) Apply Version Updates From Current Changes (#6633)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2023-04-10 10:12:04 -03:00
Lucas Fernandes Nogueira
055e9b3997 chore(deps): update wry, closes #6658 (#6671) 2023-04-10 09:55:24 -03:00
Lucas Fernandes Nogueira
f436cf8609 refactor(core): remove PathExt trait, add path function to Manager (#6670) 2023-04-09 11:25:08 -03:00
Lucas Nogueira
a8153b9ff4 chore(cli): gitignore iOS Externals folder 2023-04-07 21:03:26 -03:00
Lucas Fernandes Nogueira
f0570d9fee feat(core): improve run_mobile_plugin error handling (#6655) 2023-04-07 17:08:25 -03:00
Lucas Fernandes Nogueira
be941b9719 feat(core): add path plugin, implement mobile APIs (#6339) 2023-04-07 12:48:14 -03:00
Vilian Gerdzhikov
1eacd51d18 overloaded the open function for convenient type inference (#5619)
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-04-07 12:40:25 -03:00
Amr Bashir
6ff801e27d chore: rename config-schema to tauri-config-schema (#6250)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-04-07 12:11:05 -03:00
Lucas Fernandes Nogueira
db4c9dc655 feat(core): add option to configure Android's minimum SDK version (#6651) 2023-04-07 11:21:42 -03:00
renovate[bot]
44b4e2ee00 chore(deps) Update dependency eslint-config-standard-with-typescript to v34 (#6180)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-06 21:15:51 -03:00
renovate[bot]
5a1d86b346 chore(deps) Update Tauri JS CLI (#6177)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-06 21:14:04 -03:00
renovate[bot]
f4c9635724 chore(deps) Update Rust crate cargo_toml to 0.15 (#6214)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-06 21:13:25 -03:00
renovate[bot]
565dc3baa7 chore(deps) Update Tauri Utils (major) (#4717)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-06 21:12:33 -03:00
renovate[bot]
a3c9754950 chore(deps) Update Tauri Bundler (#6640)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-06 13:03:43 -03:00
thep0y
708efbd9b7 fix(core/tauri): upgrade open to 3.2 to fix a bug on Windows (#6441)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-04-06 12:08:32 -03:00
Amr Bashir
63f088e5fc feat(cli): add --release for android dev (#6638)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
closes #6594
2023-04-05 16:10:43 -03:00
Amr Bashir
d03e47d141 fix: only build specified rust targets for aab/apk build (#6625)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-04-05 15:14:14 -03:00
Lucas Fernandes Nogueira
052c5822b5 feat(core): implement Clone for PluginHandle (#6644) 2023-04-05 12:32:10 -03:00
Lucas Nogueira
d37808197d chore(cli): only create .tauri/plugins folder on Android 2023-04-04 15:52:48 -03:00
Lucas Nogueira
ec7d24b1ac chore(cli): update Android template gitignore files 2023-04-04 15:46:16 -03:00
Lucas Fernandes Nogueira
5288a386f1 fix(cli): readd Cargo.toml to the plugin template (#6637) 2023-04-04 15:11:47 -03:00
Lucas Fernandes Nogueira
5769ee6d29 fix(ci): use ubuntu-20.04 to build the CLI (#6632) 2023-04-04 10:58:09 -03:00
Si Yang
da30753754 style: needless_borrow, useless_format (#6620) 2023-04-04 10:10:47 -03:00
Amr Bashir
7fec0f083c fix(cli): use local ip addr for built-in server on mobile, closes #6454 (#6631)
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
fix(cli): use local ip addr for built-in server on mobile, closes #6454
2023-04-04 09:59:29 -03:00
github-actions[bot]
29ee62342a (NEXT) Apply Version Updates From Current Changes (#6622)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2023-04-03 16:19:10 -03:00
Lucas Fernandes Nogueira
a813792786 fix(core): compilation issues without execute or sidecar features (#6621) 2023-04-03 16:10:03 -03:00
Amr Bashir
0b46637eba fix(api): construct correct object for onResized and onMoved, closes #6507 (#6509)
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-04-03 12:18:36 -03:00
Si Yang
09d5dd520f style: warn(clippy::useless_format) (#6619) 2023-04-03 12:04:08 -03:00
Lucas Nogueira
f6c373e989 chore(cli): update lockfile 2023-04-03 12:03:30 -03:00
renovate[bot]
d3e4fb20b5 chore(deps) Update Tauri API Definitions (#6523)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-04-03 11:33:47 -03:00
Lucas Nogueira
e9482430ff chore(changes): add changes for 1.3 release merge 2023-04-03 11:32:53 -03:00
dependabot[bot]
919d96dd8a chore(deps): bump openssl from 0.10.40 to 0.10.49 in /tooling/cli (#6618)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 10:57:03 -03:00
github-actions[bot]
afc3237d0c (NEXT) Apply Version Updates From Current Changes (#6593)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2023-04-03 10:56:08 -03:00
Lucas Nogueira
f992e7f58b chore(changes): readd change file 2023-04-03 10:40:57 -03:00
dependabot[bot]
6c7eac7288 chore(deps): bump openssl from 0.10.45 to 0.10.48 in /examples/api/src-tauri (#6551)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 10:05:45 -03:00
dependabot[bot]
901ce937d6 chore(deps): bump openssl from 0.10.45 to 0.10.48 in /examples/updater/src-tauri (#6550)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 10:05:36 -03:00
Lucas Nogueira
f84fbe459f chore(cli): cherry pick #6603, fix webkit2gtk version 2023-04-03 10:01:59 -03:00
Lucas Nogueira
55900a2968 Merge branch 'dev' into next 2023-04-03 09:58:27 -03:00
Mokhtar Hamdoune
81b9c505cc return the commment of maximum number of redirects to its right place… (#6607) 2023-04-03 08:39:15 -03:00
afa
7489f96697 fix(bundler): fix problem of macOS bunder while i18n is set, closes #6614 (#6615)
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-04-03 08:37:50 -03:00
Miniontoby
a926b49a01 Fix Github Actions of Tauri Plugin with-api template (#6603)
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2023-04-03 08:12:49 -03:00
Lucas Fernandes Nogueira
4c3b9ecfdc fix(build): iOS deployment target env var is IPHONEOS_DEPLOYMENT_TARGET (#6602) 2023-03-31 14:32:30 -03:00
filip
509d4678b1 Support sending raw byte data to the "data" event for child command's stdout and stderr (#5789)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-03-31 12:51:27 -03:00
Zeeshan Ali Khan
5fdc616df9 feat: Use the zbus-backed of notify-rust (#6332)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-03-31 12:36:59 -03:00
Amr Bashir
1487b18dcb refactor: add useful diagnostics to tauri info (#6570)
* refactor: add useful diagnostics to `tauri info`

this also paves the way for interactive fixes in the future

* refactor: add useful diagnostics to `tauri info`

this also paves the way for interactive fixes in the future

* fix use_npm logic [skip ci]

* lint [skip ci]

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-03-31 10:23:34 -03:00
Lucas Fernandes Nogueira
7f820ee190 chore(tests): enhance and document updater NSIS test (#6556) 2023-03-31 10:13:35 -03:00
Lucas Fernandes Nogueira
54c6f158d9 chore(cli): enhance empty updater key password warning (#6558) 2023-03-31 10:13:25 -03:00
Fabian-Lars
23282873e7 docs(api.js): Fix basename example, closes tauri-apps/tauri-docs#1180 (#6553) 2023-03-31 10:13:04 -03:00
Amr Bashir
eb1ec0416c fix(core/updater): read and parse response after checking status code, closes #6192 (#6575) 2023-03-31 10:06:59 -03:00
Lucas Fernandes Nogueira
5e0c4489df fix(bundler): enhance extract_zip security by using enclosed_name() (#6555)
See https://docs.rs/zip/0.6.4/zip/read/struct.ZipFile.html#method.enclosed_name
2023-03-31 10:05:44 -03:00
Lucas Fernandes Nogueira
d788d23071 refactor(core): do not allow JS API to set additional browser args (#6216)
This was introduced in #5799, but it's dangerous to let the frontend set this option.
2023-03-31 10:05:18 -03:00
Lucas Fernandes Nogueira
adf4627b73 fix(core): adjust ProGuard rules (#6588) 2023-03-31 10:03:50 -03:00
Amr Bashir
a7ee5ca7c3 fix(cli): look for available ports for built-in dev server, closes #6511 (#6514)
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-03-31 10:03:38 -03:00
Amr Bashir
ff4ea1eabb fix: dispatch focus event to app.run on Windows, closes #6460 (#6504) 2023-03-31 10:03:25 -03:00
Lucas Nogueira
56fa900dbe fix(core): adjust TLS feature usage on dev 2023-03-30 12:09:02 -03:00
Lucas Fernandes Nogueira
cfdee00f2b refactor(core): fix tls features, use rustls on mobile (#6591) 2023-03-30 10:59:08 -03:00
Lucas Fernandes Nogueira
76668b3196 chore(cli): update dependencies (#6587) 2023-03-29 20:19:07 -03:00
github-actions[bot]
249db9e49b (NEXT) Apply Version Updates From Current Changes (#6586)
* apply version updates

* fix changelog

* typo

---------

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-03-29 16:11:42 -03:00
Lucas Nogueira
6b469c40c6 chore(changes): adjust change file for Android script execution fix 2023-03-29 16:01:09 -03:00
github-actions[bot]
1c7e5cae10 Revert "apply version updates (#6582)"
This reverts commit 3ad7414a3e.
2023-03-29 15:59:29 -03:00
github-actions[bot]
3ad7414a3e apply version updates (#6582)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2023-03-29 15:56:38 -03:00
Amr Bashir
39df2c982e fix(cli/android): fallback to ${program}.cmd (#6576)
* fix(cli/android): fallback to `${program}.cmd`

* cleanup [skip ci]

* revert variable to tauri-binary [skip ci]

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-03-29 14:44:19 -03:00
CzBiX
57c6bf07bb fix(cli): fix default-run not deserialized (#6584)
* fix(cli): fix default-run not deserialized

* Create fix-cli-default-run.md

* Update .changes/fix-cli-default-run.md [skip ci]

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2023-03-29 14:43:16 -03:00
Lucas Fernandes Nogueira
6e3e4c22be fix(cli): use correct variable on script to build Rust iOS code (#6581) 2023-03-29 11:35:18 -03:00
amrbashir
38ee5066e7 chore: update schema files 2023-03-28 16:25:33 +02:00
Elliot Waite
8c07076e25 docs: update grammer 2023-03-28 16:04:44 +02:00
Lucas Fernandes Nogueira
332b3fc419 fix(cli): adjust jsonrpsee feature flags for CI (#6521) 2023-03-21 19:10:42 -03:00
github-actions[bot]
a031e4a8a0 apply version updates (#6518) 2023-03-21 14:42:18 -03:00
Lucas Fernandes Nogueira
00241fa92d fix(cli): append .cmd on the gradle plugin binary on Windows, fix #6502 (#6503) 2023-03-21 13:43:09 -03:00
Amr Bashir
c787f749de fix(cli): only add -- to generated android template for npm (#6508) 2023-03-21 13:42:37 -03:00
Amr Bashir
d5ac76b53c chore(deps): update napi-rs, closes #6502 (#6513) 2023-03-21 13:40:21 -03:00
Lucas Fernandes Nogueira
8a1b1281ac fix(ci): adjust publish cli.js workflow (#6500)
* fix(ci): enable openssl vendored feature for cli.js

* enable feature on CI

* add openssl dep

* avoid openssl on Linux

* vendored openssl on macOS CI

* fix dep install

* lint [skip ci]
2023-03-20 11:54:33 -03:00
Lucas Fernandes Nogueira
1a24e4cafd chore(deps): unpin dependencies from 1.59 MSRV (#6499) 2023-03-20 11:54:09 -03:00
Lucas Nogueira
9c324bae61 chore(examples): update tauri-plugin-log 2023-03-20 09:06:49 -03:00
Lucas Nogueira
46e2def0ee fix(ci): set tauri-build dependency version on tauri crate 2023-03-20 08:45:26 -03:00
414 changed files with 9165 additions and 36228 deletions

View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Do not gitignore the Android project's `buildSrc` folder by default since we removed absolute paths from it.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Enhance parsing of annotated Android plugin methods to support private functions.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Added static function `loadConfig` on the Android `PluginManager` class.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Adjust Android plugin exception error.

10
.changes/bump-1.3.md Normal file
View File

@@ -0,0 +1,10 @@
---
"tauri-bundler": patch
"tauri-codegen": patch
"tauri-macros": patch
"tauri-utils": patch
"tauri-runtime": patch
"tauri-runtime-wry": patch
---
Pull changes from Tauri 1.3 release.

View File

@@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---
Removed the `UpdaterSettings::dialog` field.

6
.changes/channel-api.md Normal file
View File

@@ -0,0 +1,6 @@
---
"api": patch
"tauri": patch
---
Add channel API for sending data across the IPC.

View File

@@ -0,0 +1,6 @@
---
'cli.rs': 'patch'
'cli.js': 'patch'
---
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

View File

@@ -0,0 +1,6 @@
---
'cli.rs': 'patch'
'cli.js': 'patch'
---
Build only specified rust targets for `tauri android build` instead of all.

View File

@@ -0,0 +1,6 @@
---
'cli.rs': 'patch'
'cli.js': 'patch'
---
Use local ip address for built-in dev server on mobile.

View File

@@ -1,5 +0,0 @@
---
'cli.rs': 'patch'
---
Add `--port` to specify the port used for static files dev server. It can also be specified through `TAURI_DEV_SERVER_PORT` env var.

View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Add `key.properties` file to android's `.gitignore`.

View File

@@ -0,0 +1,6 @@
---
'cli.rs': 'patch'
'cli.js': 'patch'
---
On mobile, fix regression introduced in `tauri-cli` version `2.0.0-alpha.3` where library not found error was thrown.

6
.changes/cli-pnpm.md Normal file
View File

@@ -0,0 +1,6 @@
---
'cli.rs': 'patch'
'cli.js': 'patch'
---
Fix android project build crashing when using `pnpm` caused by extra `--`.

6
.changes/cli-wry-0-28.md Normal file
View File

@@ -0,0 +1,6 @@
---
'cli.rs': 'patch'
'cli.js': 'patch'
---
Update mobile template to `wry@0.28`

View File

@@ -209,7 +209,7 @@
"dependencies": ["tauri-codegen", "tauri-utils"],
"postversion": [
"node ../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }",
"cargo build --manifest-path ../config-schema/Cargo.toml"
"cargo build --manifest-path ../tauri-config-schema/Cargo.toml"
],
"assets": [
{
@@ -225,7 +225,8 @@
"tauri-macros",
"tauri-utils",
"tauri-runtime",
"tauri-runtime-wry"
"tauri-runtime-wry",
"tauri-build"
],
"postversion": "node ../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }"
},
@@ -236,7 +237,7 @@
"dependencies": ["cli.rs"],
"postversion": [
"node ../../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }",
"cargo build --manifest-path ../../../core/config-schema/Cargo.toml"
"cargo build --manifest-path ../../../core/tauri-config-schema/Cargo.toml"
],
"prepublish": [],
"publish": [],
@@ -248,7 +249,7 @@
"dependencies": ["tauri-bundler", "tauri-utils"],
"postversion": [
"cargo check",
"cargo build --manifest-path ../../core/config-schema/Cargo.toml"
"cargo build --manifest-path ../../core/tauri-config-schema/Cargo.toml"
],
"assets": [
{

View File

@@ -0,0 +1,5 @@
---
'tauri': 'patch'
---
On Android, update proguard rules.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Add `default_window_icon` getter on `App` and `AppHandle`.

View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
"tauri": patch
---
Change minimum Android SDK version to 21 for the plugin library.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Enhance Android's `JSObject` return types.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Use actual iOS plugin instance to run command with `throws`.

View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Fixes the iOS project script to build the Rust library.

View File

@@ -0,0 +1,5 @@
---
"cli.js": patch
---
Update tauri-mobile to fix running ADB scripts.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Fixes boolean plugin parameters freezing the application.

View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Clear Android plugin JSON file before building Rust library to ensure removed plugins are propagated to the Android project.

View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Readd the Cargo.toml file to the plugin template.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Fixes ProGuard rules.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Fix compilation issues without the shell API features.

View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Fixes the Android build gradle plugin implementation on Windows.

View File

@@ -0,0 +1,5 @@
---
'tauri-bundler': 'patch'
---
Correctly escape XML for resource files in WiX bundler.

View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Fixes iOS build script using the wrong path for the app library file.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Generate `TauriActivity` Kotlin class on the build script.

6
.changes/gradle-8.md Normal file
View File

@@ -0,0 +1,6 @@
---
'cli.rs': 'patch'
'cli.js': 'patch'
---
Update android template to gradle 8.0

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Improve the `run_mobile_plugin` function error handling.

View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Inject Tauri configuration in the Android assets.

View File

@@ -0,0 +1,6 @@
---
"tauri-macros": patch
"tauri": patch
---
Added support to attibutes for each command path in the `generate_handler` macro.

View File

@@ -0,0 +1,5 @@
---
"tauri-build": patch
---
Read the `IPHONEOS_DEPLOYMENT_TARGET` environment variable to set the Swift iOS target version, defaults to 13.

View File

@@ -0,0 +1,6 @@
---
"tauri": patch
"tauri-utils": patch
---
Remove `enable_tauri_api` from the IPC scope.

View File

@@ -0,0 +1,5 @@
---
"tauri-utils": patch
---
Added `android` configuration object under `tauri > bundle`.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Expose plugin configuration on the Android and iOS plugin classes.

6
.changes/move-app.md Normal file
View File

@@ -0,0 +1,6 @@
---
"api": patch
"tauri": patch
---
Moved the `app` feature to its own plugin in the plugins-workspace repository.

7
.changes/move-cli.md Normal file
View File

@@ -0,0 +1,7 @@
---
"api": patch
"tauri": patch
"tauri-utils": patch
---
Moved the `cli` feature to its own plugin in the plugins-workspace repository.

View File

@@ -0,0 +1,6 @@
---
"tauri": patch
"api": patch
---
Moved the dialog APIs to its own plugin in the plugins-workspace repository.

8
.changes/move-event.md Normal file
View File

@@ -0,0 +1,8 @@
---
"api": patch
"tauri": patch
"tauri-runtime": patch
"tauri-runtime-wry": patch
---
Moved the `event` JS APIs to a plugin.

6
.changes/move-fs.md Normal file
View File

@@ -0,0 +1,6 @@
---
"api": patch
"tauri": patch
---
Moved the file system APIs to its own plugin in the plugins-workspace repository.

View File

@@ -0,0 +1,6 @@
---
"api": patch
"tauri": patch
---
Moved the `http` feature to its own plugin in the plugins-workspace repository.

6
.changes/move-os.md Normal file
View File

@@ -0,0 +1,6 @@
---
"api": patch
"tauri": patch
---
Moved the `os` feature to its own plugin in the plugins-workspace repository.

6
.changes/move-process.md Normal file
View File

@@ -0,0 +1,6 @@
---
"api": patch
"tauri": patch
---
Moved the `process` feature to its own plugin in the plugins-workspace repository.

View File

@@ -0,0 +1,6 @@
---
"tauri": patch
"tauri-utils": patch
---
Moved the `protocol` scope configuration to the `asset_protocol` field in `SecurityConfig`.

8
.changes/move-shell.md Normal file
View File

@@ -0,0 +1,8 @@
---
"api": patch
"tauri": patch
"tauri-codegen": patch
"tauri-macros": patch
---
Moved the `shell` functionality to its own plugin in the plugins-workspace repository.

View File

@@ -0,0 +1,8 @@
---
"tauri": patch
"tauri-utils": patch
"cli.rs": patch
"cli.js": patch
---
Moved the updater configuration to the `BundleConfig`.

7
.changes/move-updater.md Normal file
View File

@@ -0,0 +1,7 @@
---
"api": patch
"tauri": patch
"tauri-utils": patch
---
Moved the `updater` feature to its own plugin in the plugins-workspace repository.

13
.changes/msrv-1.65.md Normal file
View File

@@ -0,0 +1,13 @@
---
"cli.rs": minor
"tauri-bundler": minor
"tauri": minor
"tauri-build": minor
"tauri-codegen": minor
"tauri-macros": minor
"tauri-utils": minor
"tauri-runtime": minor
"tauri-runtime-wry": minor
---
Bump the MSRV to 1.65.

5
.changes/napi-rs.md Normal file
View File

@@ -0,0 +1,5 @@
---
'cli.js': 'patch'
---
Update `napi-rs` dependencies to latest to fix CLI hanging up forever.

8
.changes/nsis-spanish.md Normal file
View File

@@ -0,0 +1,8 @@
---
'tauri-bundler': 'patch'
---
Added the following languages to the NSIS bundler:
- `Spanish`
- `SpanishInternational`

View File

@@ -0,0 +1,5 @@
---
'tauri-bundler': 'patch'
---
Correctly escape arguments in NSIS script to fix bundling apps that use non-default WebView2 install modes.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Added the `onNewIntent` Plugin hook on Android.

View File

@@ -0,0 +1,5 @@
---
"api": patch
---
Overload the dialog `open` function to have better TS result types.

View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
"tauri-build": patch
---
Use absolute path to each Android plugin project instead of copying the files to enhance developer experience.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Add `app` method for the `PluginApi` struct.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Implement `Clone` for `plugin::PluginHandle`.

View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Add Cargo manifest files for the plugin example templates.

6
.changes/pnpm-android.md Normal file
View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Fix `tauri android build/dev` crashing when used with standalone `pnpm` executable on Windows.

View File

@@ -3,39 +3,75 @@
"changes": [
".changes/add-mobile-to-plugin.md",
".changes/android-apis-runtime.md",
".changes/android-buildsrc-gitignore.md",
".changes/android-enhance-method-parse.md",
".changes/android-load-config.md",
".changes/android-plugin-command-exception.md",
".changes/build-android-env-vars.md",
".changes/bump-1.3.md",
".changes/bundler-remove-dialog-option.md",
".changes/channel-api.md",
".changes/cli-android-build.md",
".changes/cli-dev-server-port.md",
".changes/cli-android-dev-release.md",
".changes/cli-android-specified-targets-only.md",
".changes/cli-built-in-dev-server-mobile.md",
".changes/cli-ios-build.md",
".changes/cli-key-properties.md",
".changes/cli-libname-dashes.md",
".changes/cli-mobile-auto-ip.md",
".changes/cli-mobile-dev.md",
".changes/cli-mobile-plugin.md",
".changes/cli-nodejs-detection.md",
".changes/cli-pnpm.md",
".changes/cli-refactor-ipc-mobile.md",
".changes/cli-wry-0-28.md",
".changes/codegen-mobile-devurl.md",
".changes/core-wry-0-28.md",
".changes/default-tls-features.md",
".changes/default-window-icon.md",
".changes/dev-proxy-response-cache.md",
".changes/dev-proxy.md",
".changes/downgrade-min-sdk-version.md",
".changes/dynamic-wry-plugin.md",
".changes/enable-minify.md",
".changes/enhance-jsobject-return-types.md",
".changes/error-on-identifier-change.md",
".changes/fix-build-script-mobile-runner-npm.md",
".changes/fix-dev-server-proxy-path.md",
".changes/fix-empty-identifier.md",
".changes/fix-ios-plugin-throws-command.md",
".changes/fix-ios-run-xcode14.md",
".changes/fix-ios-template.md",
".changes/fix-mobile-env-vars.md",
".changes/fix-nodejs-android-cmds.md",
".changes/fix-orientation-crash.md",
".changes/fix-plugin-ios-bool.md",
".changes/fix-plugin-removal.md",
".changes/fix-plugin-template-cargotoml.md",
".changes/fix-proguard-rules.md",
".changes/fix-shell-build.md",
".changes/fix-tauri-binary-windows.md",
".changes/fix-wix-escape-resources.md",
".changes/fix-xcodescript-lib-path.md",
".changes/force-colored-logs.md",
".changes/generate-tauri-activity.md",
".changes/gradle-8.md",
".changes/gtk16.md",
".changes/improve-local-ip-detection.md",
".changes/improve-mobile-plugin-error-handling.md",
".changes/inject-config.md",
".changes/inject-proguard.md",
".changes/invoke-handler-attributes.md",
".changes/invoke-return-bool.md",
".changes/ios-deployment-target.md",
".changes/ios-icon-color.md",
".changes/ios-keep-alive.md",
".changes/ios-logs.md",
".changes/ipc-scope-remove-enable-tauri-api.md",
".changes/lib-name-xcode.md",
".changes/local-dev-path-mobile.md",
".changes/logcat-all-tags.md",
".changes/min-sdk-version.md",
".changes/mobile-config.md",
".changes/mobile-dev-watcher-ignore-gen.md",
".changes/mobile-entry-point-macro.md",
@@ -43,28 +79,74 @@
".changes/mobile-init.md",
".changes/mobile-lib-name.md",
".changes/mobile-open.md",
".changes/mobile-plugin-config.md",
".changes/mobile-plugins.md",
".changes/mobile-webview-access.md",
".changes/mobile.md",
".changes/move-app.md",
".changes/move-cli.md",
".changes/move-dialog-plugin.md",
".changes/move-event.md",
".changes/move-fs.md",
".changes/move-http-api.md",
".changes/move-os.md",
".changes/move-process.md",
".changes/move-protocol-asset.md",
".changes/move-shell.md",
".changes/move-updater-config.md",
".changes/move-updater.md",
".changes/msrv-1.64.md",
".changes/msrv-1.65.md",
".changes/napi-rs.md",
".changes/npm-pass-args.md",
".changes/nsis-spanish.md",
".changes/nsis-webview-installmodes.md",
".changes/on-new-intent.md",
".changes/only-proxy-on-mobile.md",
".changes/open-ts-overload.md",
".changes/package-info-crate-name.md",
".changes/plugin-android-project-refactor.md",
".changes/plugin-api-handle.md",
".changes/plugin-handle-clone.md",
".changes/plugin-init-fns.md",
".changes/plugin-init-refactor.md",
".changes/plugin-setup-refactor.md",
".changes/plugin-template-examples-manifest.md",
".changes/pnpm-android.md",
".changes/process-mod-refactor.md",
".changes/raw-encoding.md",
".changes/refactor-macros.md",
".changes/refactor-setup.md",
".changes/refactor-tauri-android-dependency.md",
".changes/remove-allowlist.md",
".changes/remove-attohttpc.md",
".changes/remove-clipboard.md",
".changes/remove-fs-apis.md",
".changes/remove-global-shortcut.md",
".changes/remove-macros-command-module.md",
".changes/remove-mobile-log.md",
".changes/remove-sdk-dir.md",
".changes/remove-shell-constructor.md",
".changes/remove-tray-icon-mobile.md",
".changes/remove-updater-dialog.md",
".changes/remove-updater-event.md",
".changes/remove-window.md",
".changes/rfd101.md",
".changes/run-mobile-plugin.md",
".changes/safepathbuf-refactor.md",
".changes/shadow-api.md",
".changes/shadow-config.md",
".changes/shadow.md",
".changes/shadows-default-on.md",
".changes/simplify-ios-plugin-init-fn.md",
".changes/target-dir-detection.md",
".changes/tauri-build-mobile.md",
".changes/tauri-mobile-entry-point.md",
".changes/tauri-runtime-wry-wry-0-28.md",
".changes/tls-features-automatically-enabled.md",
".changes/tls-features-refactor.md",
".changes/ubuntu-20.04-cli.js.md",
".changes/ubuntu-20.04-cli.rs.md",
".changes/with-webview.md",
".changes/wry26.md"
]

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Moved the `tauri::api::process` module to `tauri::process`.

6
.changes/raw-encoding.md Normal file
View File

@@ -0,0 +1,6 @@
---
"api": minor
"tauri": minor
---
Added `raw` encoding option to read stdout and stderr raw bytes.

View File

@@ -0,0 +1,6 @@
---
"tauri": patch
"tauri-build": patch
---
Changed how the `tauri-android` dependency is injected. This requires the `gen/android` project to be recreated.

View File

@@ -0,0 +1,8 @@
---
"tauri": patch
"tauri-utils": patch
"cli.rs": patch
"cli.js": patch
---
Removed the allowlist configuration.

View File

@@ -0,0 +1,8 @@
---
"tauri": patch
"tauri-runtime": patch
"tauri-runtime-wry": patch
"api": patch
---
Moved the `clipboard` feature to its own plugin in the plugins-workspace repository.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Removed extract and move APIs from `tauri::api::file`.

View File

@@ -0,0 +1,8 @@
---
"api": patch
"tauri": patch
"tauri-runtime": patch
"tauri-runtime-wry": patch
---
Moved the `global-shortcut` feature to its own plugin in the plugins-workspace repository.

View File

@@ -0,0 +1,5 @@
---
"tauri-macros": patch
---
Removed the module command macros.

View File

@@ -0,0 +1,5 @@
---
"tauri-build": patch
---
Remove `WindowsAttributes::sdk_dir`.

View File

@@ -0,0 +1,5 @@
---
"api": minor
---
Removed shell's `Command` constructor and added the `Command.create` static function instead.

View File

@@ -0,0 +1,6 @@
---
"tauri-codegen": patch
"tauri": patch
---
Refactor the `Context` conditional fields and only parse the tray icon on desktop.

View File

@@ -0,0 +1,6 @@
---
"tauri": patch
"tauri-utils": patch
---
Remove the updater's dialog option.

View File

@@ -0,0 +1,6 @@
---
"tauri": patch
---
Removed `UpdaterEvent`. See `tauri-plugin-updater` for new usage.

View File

@@ -0,0 +1,6 @@
---
"tauri": patch
"api": patch
---
Moved the `window` JS APIs to its own plugin in the plugins-workspace repository.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Expose `SafePathBuf` type in `tauri::path`.

View File

@@ -0,0 +1,5 @@
---
'tauri': 'patch'
---
Enable shadows by default.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Change iOS plugin init function signature to `func init_plugin() -> Plugin`.

View File

@@ -0,0 +1,5 @@
---
'tauri-runtime-wry': 'patch'
---
Update `wry` to `0.28`

View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Automatically enable the `rustls-tls` tauri feature on mobile and `native-tls` on desktop if `rustls-tls` is not enabled.

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
Renamed the `default-tls` feature to `native-tls` and added `rustls-tls` feature.

View File

@@ -0,0 +1,5 @@
---
"cli.js": patch
---
Use Ubuntu 20.04 to compile the CLI, increasing the minimum libc version required.

View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
---
- Use Ubuntu 20.04 to compile the CLI for cargo-binstall, increasing the minimum libc required.
-

View File

@@ -71,7 +71,7 @@ The code for the bundler is located in `[Tauri repo root]/tooling/bundler`, and
### Developing Tauri Core and Related Components (Rust API, Macros, Codegen, and Utils)
The code for Tauri Core is located in `[Tauri repo root]/core/tauri`, and the Rust API, Macros, and Utils are in `[Tauri repo root]/core/tauri-(api/macros/utils)`. The easiest way to test your changes is to use the `[Tauri repo root]/examples/helloworld` app. It automatically rebuilds and uses your local copy of the Tauri core packages. Just run `yarn tauri build` or `yarn tauri dev` in the helloworld app directory after making changes to test them out. To use your local changes in another project, edit its `src-tauri/Cargo.toml` file so that the `tauri` key looks like `tauri = { path = "PATH", features = [ "api-all", "cli" ] }`, where `PATH` is the relative path to `[Tauri repo root]/core/tauri`. Then, your local copy of the Tauri core packages will be rebuilt and used whenever you build that project.
The code for Tauri Core is located in `[Tauri repo root]/core/tauri`, and the Rust API, Macros, and Utils are in `[Tauri repo root]/core/tauri-(api/macros/utils)`. The easiest way to test your changes is to use the `[Tauri repo root]/examples/helloworld` app. It automatically rebuilds and uses your local copy of the Tauri core packages. Just run `yarn tauri build` or `yarn tauri dev` in the helloworld app directory after making changes to test them out. To use your local changes in another project, edit its `src-tauri/Cargo.toml` file so that the `tauri` key looks like `tauri = { path = "PATH" }`, where `PATH` is the relative path to `[Tauri repo root]/core/tauri`. Then, your local copy of the Tauri core packages will be rebuilt and used whenever you build that project.
#### Building the documentation locally

View File

@@ -30,11 +30,10 @@ body:
id: reproduction
attributes:
label: Reproduction
description: Steps to reproduce the behavior.
description: A link to a reproduction repo or steps to reproduce the behaviour.
placeholder: |
1. Go to ...
2. Click on ...
3. See error
Please provide a minimal reproduction or steps to reproduce, see this guide https://stackoverflow.com/help/minimal-reproducible-example
Why reproduction is required? see this article https://antfu.me/posts/why-reproductions-are-required
- type: textarea
id: expected-behavior

View File

@@ -1,107 +0,0 @@
# Copyright 2019-2023 Tauri Programme within The Commons Conservancy
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: MIT
name: updater test artifacts
on:
schedule:
- cron: '0 0 * * *'
pull_request:
paths:
- '.github/workflows/artifacts-updater.yml'
- 'examples/updater/**'
workflow_dispatch:
env:
RUST_BACKTRACE: 1
CARGO_PROFILE_DEV_DEBUG: 0 # This would add unnecessary bloat to the target folder, decreasing cache efficiency.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-artifacts:
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: install Linux dependencies
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
core -> ../target
tooling/cli
- name: build and install cli.rs
run: cargo install --path tooling/cli --force
- name: Check whether code signing should be enabled
id: enablecodesigning
env:
ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }}
run: |
echo "Enable code signing: ${{ env.ENABLE_CODE_SIGNING != '' }}"
echo "::set-output name=enabled::${{ env.ENABLE_CODE_SIGNING != '' }}"
# run only on tauri-apps/tauri repo (require secrets)
- name: build sample artifacts + code signing (updater)
if: steps.enablecodesigning.outputs.enabled == 'true'
working-directory: ./examples/updater
run: |
yarn install
cargo tauri build --verbose
env:
# Notarization (disabled)
# FIXME: enable only on `dev` push maybe? as it take some times...
#
# APPLE_ID: ${{ secrets.APPLE_ID }}
# APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
# Apple code signing testing
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
# Updater signature is exposed here to make sure it works in PR's
TAURI_PRIVATE_KEY: dW50cnVzdGVkIGNvbW1lbnQ6IHJzaWduIGVuY3J5cHRlZCBzZWNyZXQga2V5ClJXUlRZMEl5YTBGV3JiTy9lRDZVd3NkL0RoQ1htZmExNDd3RmJaNmRMT1ZGVjczWTBKZ0FBQkFBQUFBQUFBQUFBQUlBQUFBQWdMekUzVkE4K0tWQ1hjeGt1Vkx2QnRUR3pzQjVuV0ZpM2czWXNkRm9hVUxrVnB6TUN3K1NheHJMREhQbUVWVFZRK3NIL1VsMDBHNW5ET1EzQno0UStSb21nRW4vZlpTaXIwZFh5ZmRlL1lSN0dKcHdyOUVPclVvdzFhVkxDVnZrbHM2T1o4Tk1NWEU9Cg==
TAURI_KEY_PASSWORD:
# run on PRs and forks
- name: build sample artifacts (updater)
if: steps.enablecodesigning.outputs.enabled != 'true'
working-directory: ./examples/updater
run: |
yarn install
cargo tauri build --verbose
env:
TAURI_PRIVATE_KEY: dW50cnVzdGVkIGNvbW1lbnQ6IHJzaWduIGVuY3J5cHRlZCBzZWNyZXQga2V5ClJXUlRZMEl5YTBGV3JiTy9lRDZVd3NkL0RoQ1htZmExNDd3RmJaNmRMT1ZGVjczWTBKZ0FBQkFBQUFBQUFBQUFBQUlBQUFBQWdMekUzVkE4K0tWQ1hjeGt1Vkx2QnRUR3pzQjVuV0ZpM2czWXNkRm9hVUxrVnB6TUN3K1NheHJMREhQbUVWVFZRK3NIL1VsMDBHNW5ET1EzQno0UStSb21nRW4vZlpTaXIwZFh5ZmRlL1lSN0dKcHdyOUVPclVvdzFhVkxDVnZrbHM2T1o4Tk1NWEU9Cg==
TAURI_KEY_PASSWORD:
# upload assets
- uses: actions/upload-artifact@v2
if: matrix.platform == 'ubuntu-latest'
with:
name: linux-updater-artifacts
path: ./examples/updater/src-tauri/target/release/bundle/appimage/updater-example_*.AppImage.*
- uses: actions/upload-artifact@v2
if: matrix.platform == 'windows-latest'
with:
name: windows-updater-artifacts
path: ./examples/updater/src-tauri/target/release/bundle/msi/*
- uses: actions/upload-artifact@v2
if: matrix.platform == 'macos-latest'
with:
name: macos-updater-artifacts
path: ./examples/updater/src-tauri/target/release/bundle/macos/updater-example.app.tar.*

View File

@@ -12,7 +12,7 @@ on:
- 'core/tauri/scripts/bundle.global.js'
- 'core/tauri-utils/src/config.rs'
- 'tooling/cli/schema.json'
- 'core/config-schema/schema.json'
- 'core/tauri-config-schema/schema.json'
push:
branches:
- dev
@@ -22,7 +22,7 @@ on:
- 'core/tauri/scripts/bundle.global.js'
- 'core/tauri-utils/src/config.rs'
- 'tooling/cli/schema.json'
- 'core/config-schema/schema.json'
- 'core/tauri-config-schema/schema.json'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -47,7 +47,7 @@ jobs:
schema:
- 'core/tauri-utils/src/config.rs'
- 'tooling/cli/schema.json'
- 'core/config-schema/schema.json'
- 'core/tauri-config-schema/schema.json'
check-api:
runs-on: ubuntu-latest
@@ -90,7 +90,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path ./core/config-schema/Cargo.toml
args: --manifest-path ./core/tauri-config-schema/Cargo.toml
- name: check schema
run: ./.scripts/ci/has-diff.sh

View File

@@ -72,19 +72,17 @@ jobs:
if: |
steps.covector.outputs.successfulPublish == 'true' &&
contains(steps.covector.outputs.packagesPublished, 'cli.rs')
uses: peter-evans/repository-dispatch@v1
uses: benc-uk/workflow-dispatch@v1
with:
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
repository: tauri-apps/tauri
event-type: publish-clijs
client-payload: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }'
workflow: publish-cli-js.yml
inputs: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}", "ref": "${{ github.ref }}" }'
- name: Trigger cli.rs publishing workflow
if: |
steps.covector.outputs.successfulPublish == 'true' &&
contains(steps.covector.outputs.packagesPublished, 'cli.rs')
uses: peter-evans/repository-dispatch@v1
uses: benc-uk/workflow-dispatch@v1
with:
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
repository: tauri-apps/tauri
event-type: publish-clirs
workflow: publish-cli-rs.yml

View File

@@ -50,11 +50,10 @@ jobs:
clippy:
- { args: '', key: 'empty' }
- {
args: '--features compression,wry,linux-protocol-headers,isolation,custom-protocol,api-all,cli,updater,system-tray,windows7-compat,http-multipart',
args: '--features compression,wry,linux-protocol-headers,isolation,custom-protocol,system-tray',
key: 'all'
}
- { args: '--features custom-protocol', key: 'custom-protocol' }
- { args: '--features api-all', key: 'api-all' }
steps:
- uses: actions/checkout@v2

View File

@@ -30,64 +30,64 @@ jobs:
target: x86_64-apple-darwin
architecture: x64
build: |
yarn build:release
yarn build:release --features openssl-vendored
strip -x *.node
- host: windows-latest
build: yarn build:release
build: yarn build:release --features openssl-vendored
target: x86_64-pc-windows-msvc
architecture: x64
- host: windows-latest
build: yarn build:release --target i686-pc-windows-msvc
build: yarn build:release --features openssl-vendored --target i686-pc-windows-msvc
target: i686-pc-windows-msvc
architecture: x64
- host: ubuntu-18.04
- host: ubuntu-20.04
target: x86_64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
build: |
cd tooling/cli/node
yarn build:release --target x86_64-unknown-linux-gnu
yarn build:release --features openssl-vendored --target x86_64-unknown-linux-gnu
strip *.node
- host: ubuntu-18.04
- host: ubuntu-20.04
target: x86_64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: |
cd tooling/cli/node
yarn build:release
yarn build:release --features openssl-vendored
strip *.node
- host: macos-latest
target: aarch64-apple-darwin
build: |
yarn build:release --target=aarch64-apple-darwin
yarn build:release --features openssl-vendored --target=aarch64-apple-darwin
strip -x *.node
- host: ubuntu-18.04
- host: ubuntu-20.04
target: aarch64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
build: |
cd tooling/cli/node
yarn build:release --target aarch64-unknown-linux-gnu
yarn build:release --features openssl-vendored --target aarch64-unknown-linux-gnu
aarch64-unknown-linux-gnu-strip *.node
- host: ubuntu-18.04
- host: ubuntu-20.04
architecture: x64
target: armv7-unknown-linux-gnueabihf
setup: |
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf -y
build: |
yarn build:release --target=armv7-unknown-linux-gnueabihf
yarn build:release --features openssl-vendored --target=armv7-unknown-linux-gnueabihf
arm-linux-gnueabihf-strip *.node
- host: ubuntu-18.04
- host: ubuntu-20.04
architecture: x64
target: aarch64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: |
cd tooling/cli/node
rustup target add aarch64-unknown-linux-musl
yarn build:release --target aarch64-unknown-linux-musl
yarn build:release --features openssl-vendored --target aarch64-unknown-linux-musl
/aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip *.node
#- host: windows-latest
# architecture: x64
# target: aarch64-pc-windows-msvc
# build: yarn build:release --target aarch64-pc-windows-msvc
# build: yarn build:release --features openssl-vendored --target aarch64-pc-windows-msvc
name: stable - ${{ matrix.settings.target }} - node@16
runs-on: ${{ matrix.settings.host }}
steps:
@@ -179,7 +179,7 @@ jobs:
# freebsd-version
# cd ./tooling/cli/node/
# yarn install --ignore-scripts --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000
# yarn build:release
# yarn build:release --features openssl-vendored
# strip -x *.node
# rm -rf node_modules
# rm -rf ../target
@@ -299,7 +299,7 @@ jobs:
shell: bash
- name: Install system dependencies
run: |
apk add openssl-dev musl-dev glib-dev cairo-dev pkgconfig gdk-pixbuf-dev webkit2gtk-dev curl libappindicator-dev gtk+3.0-dev
apk add openssl-dev musl-dev glib-dev cairo-dev pkgconfig gdk-pixbuf-dev webkit2gtk-dev curl gtk+3.0-dev
- name: Setup and run tests
run: |
yarn tauri --help
@@ -355,7 +355,7 @@ jobs:
set -e
export PATH=/usr/local/cargo/bin/:/usr/local/fnm:$PATH
apt-get update
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install --no-install-recommends -y unzip webkit2gtk-4.1 libayatana-appindicator3-dev
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install --no-install-recommends -y unzip libayatana-appindicator3-dev
bash
curl https://sh.rustup.rs -sSf | bash -s -- -y
curl -fsSL https://fnm.vercel.app/install | bash -s -- --install-dir "/usr/local/fnm" --skip-shell
@@ -401,4 +401,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
RELEASE_ID: ${{ github.event.client_payload.releaseId || github.event.inputs.releaseId }}
RELEASE_ID: ${{ github.event.client_payload.releaseId || inputs.releaseId }}

View File

@@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
config:
- os: ubuntu-18.04
- os: ubuntu-20.04
rust_target: x86_64-unknown-linux-gnu
ext: ''
- os: macos-latest
@@ -32,14 +32,13 @@ jobs:
ext: '.exe'
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: 'Setup Rust'
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.config.rust_target }}
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.config.rust_target }}

View File

@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: MIT
name: test mobile
name: test android
on:
pull_request:
@@ -14,6 +14,7 @@ on:
- '!tooling/cli/src/mobile/ios/**'
- 'core/tauri-build/src/mobile.rs'
- 'core/tauri/mobile/android/**'
- 'core/tauri/mobile/android-codegen/**'
workflow_dispatch:
concurrency:
@@ -56,7 +57,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
java-version: 17
cache: gradle
- name: Setup NDK

View File

@@ -34,35 +34,35 @@ jobs:
- {
target: x86_64-pc-windows-msvc,
os: windows-latest,
toolchain: '1.64.0',
toolchain: '1.65.0',
cross: false,
command: 'test'
}
- {
target: x86_64-unknown-linux-gnu,
os: ubuntu-latest,
toolchain: '1.64.0',
toolchain: '1.65.0',
cross: false,
command: 'test'
}
- {
target: x86_64-apple-darwin,
os: macos-latest,
toolchain: '1.64.0',
toolchain: '1.65.0',
cross: false,
command: 'test'
}
- {
target: aarch64-apple-ios,
os: macos-latest,
toolchain: '1.64.0',
toolchain: '1.65.0',
cross: false,
command: 'build'
}
- {
target: aarch64-linux-android,
os: ubuntu-latest,
toolchain: '1.64.0',
toolchain: '1.65.0',
cross: true,
command: 'build'
}
@@ -72,11 +72,7 @@ jobs:
key: no-default
}
- {
args: --features api-all,
key: api-all
}
- {
args: --features compression,wry,linux-protocol-headers,isolation,custom-protocol,api-all,cli,updater,system-tray,windows7-compat,http-multipart,
args: --features compression,wry,linux-protocol-headers,isolation,custom-protocol,system-tray,
key: all
}

View File

@@ -10,4 +10,4 @@ dist
/tooling/cli/node
/tooling/cli/schema.json
/tooling/api/docs/js-api.json
/core/config-schema/schema.json
/core/tauri-config-schema/schema.json

View File

@@ -19,10 +19,10 @@ let url = null
switch (kind) {
case 'cargo':
url = `https://crates.io/api/v1/crates/${packageName}`
break;
break
case 'npm':
url = `https://registry.npmjs.org/${packageName}`
break;
break
default:
throw new Error('unexpected kind ' + kind)
}
@@ -30,7 +30,7 @@ switch (kind) {
const options = {
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
Accept: 'application/json',
'User-Agent': 'tauri (https://github.com/tauri-apps/tauri)'
}
}
@@ -44,10 +44,12 @@ https.get(url, options, (response) => {
response.on('end', function () {
const data = JSON.parse(chunks.join(''))
if (kind === 'cargo') {
const versions = data.versions.filter(v => v.num.startsWith(target))
const versions = data.versions.filter((v) => v.num.startsWith(target))
console.log(versions.length ? versions[0].num : '0.0.0')
} else if (kind === 'npm') {
const versions = Object.keys(data.versions).filter(v => v.startsWith(target))
const versions = Object.keys(data.versions).filter((v) =>
v.startsWith(target)
)
console.log(versions[versions.length - 1] || '0.0.0')
}
})

View File

@@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: MIT
declare -a examples=("api" "sidecar" "updater" "resources" "tauri-dynamic-lib" "workspace")
declare -a examples=("api" "sidecar" "resources" "tauri-dynamic-lib" "workspace")
declare -a tooling=("bench" "cli" "webdriver")
for example in "${examples[@]}"

View File

@@ -8,21 +8,19 @@ members = [
"core/tauri-utils",
"core/tauri-build",
"core/tauri-codegen",
"core/config-schema",
"core/tauri-config-schema",
# integration tests
"core/tests/restart",
"core/tests/app-updater"
]
exclude = [
# examples that can be compiled with the tauri CLI
"examples/api/src-tauri",
"examples/updater/src-tauri",
"examples/resources/src-tauri",
"examples/sidecar/src-tauri",
"examples/web/core",
"examples/workspace"
"examples/workspace",
]
# default to small, optimized workspace release binaries

Some files were not shown because too many files have changed in this diff Show More