Amr Bashir
4b75834a41
chore: update license headers 2024 ( #9043 )
2024-03-01 08:29:01 -03:00
Amr Bashir
c68218b362
refactor(cli): add --no-bundle
flag, skip bundling on invalid formats ( #8990 )
...
* refactor(cli): add `--no-bundle` flag, skip bundling on invalid formats
* enhance bundle format parsing
* lint [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-29 10:49:42 -03:00
Lucas Fernandes Nogueira
4f78941763
chore(cli): update deps, fix log compilation issue ( #9034 )
2024-02-29 10:22:47 -03:00
Amr Bashir
d1e77acd8d
refactor!(core): remove Icon
enum and add Image
type ( #9011 )
...
* refactor!(core): remove `Icon` enum and add `Image` type
* clippy
* revert api example config change
* Update image.rs
* fix build
* clippy
* change files
* add back removed methods as setter functions
* simplify error message
* Update .changes/runtime-icon-lifetime.md
* Update .changes/ico-featrue-flags.md
* Update core/tauri/src/image.rs
* update api lockfile
* update api ref
* lint
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-29 09:05:11 -03:00
github-actions[bot]
ab060ebb34
Apply Version Updates From Current Changes ( #9000 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-02-29 00:06:59 -03:00
Lucas Fernandes Nogueira
d7f56fef85
feat(acl): allow a permission to apply to a subset of target platforms ( #9014 )
...
* feat(acl): allow a permission to apply to a subset of target platforms
* fix cli
2024-02-28 17:23:52 -03:00
Lucas Fernandes Nogueira
d7d03c7197
fix(cli): dev watcher infinite loop on mobile ( #9017 )
2024-02-28 17:22:45 -03:00
Amr Bashir
f5f3ed5f6f
fix(cli): CLI path issues on mobile project initialization ( #9009 )
...
* fix(cli): fix panic when `android init` using cargo or yarn
closes #8531
* clippy
* try with fullpath
* clippy
* move cli
* Update test-android.yml
* add to path instead
* clippy
* try moving
* use cargo subcommand
* delete unused logic [skip ci]
* truncate on init [skip ci]
* enhance binary/args check
* update change files
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-28 14:38:24 -03:00
Lucas Fernandes Nogueira
cb92cfd6a6
fix(cli): wrong metadata for crate versions ( #9022 )
2024-02-28 13:48:14 -03:00
i-c-b
b658ded614
fix(cli): Truncate BuildTask.kt before writing ( #9015 )
...
* truncate BuildTask.kt before write
* Create truncate-before-write-buildtask.md
* remove unused checks
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-28 13:42:21 -03:00
Lucas Fernandes Nogueira
3657ad82f8
feat(core): allow defining permissions for the app commands ( #9008 )
...
* feat(core): allow defining permissions for the app commands
* global scope
* command scope
* write to disk
* lint
* fix path
* get autogenerated commands from generate_handler macro
* revert
* remove cli
* use const instead of empty str
2024-02-28 08:45:28 -03:00
github-actions[bot]
5a19147b06
Apply Version Updates From Current Changes ( #8991 )
...
* apply version updates
* update versions
---------
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-26 23:53:48 -03:00
github-actions[bot]
31a33d4680
Apply Version Updates From Current Changes ( #8980 )
...
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-02-26 23:05:51 -03:00
Amr Bashir
b9e6a01879
refactor(cli): use tauri/custom-protocol
instead of relying on user having custom-protocol
in their cargo features ( #8937 )
...
* refactor(cli): use `tauri/custom-protocol` instead of relying on user having `custom-protocol` in their cargo features
* tauri-build dev cfg
* pass build-feature when building apk
* run beforeBuildCommand before first build for plugins
* clippy
* fix
* mut
* enhance dev/prod checks
* lint [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-26 15:17:45 -03:00
Amr Bashir
06d63d67a0
feat(cli): add new acl subcommands ( #8827 )
...
* unify `CI` var handling, and lay foundation for `permission` subcommand
* feat(cli/init&new): create `permissions` directory by default for plugins
* generate permissions with consistent pathing on windows and unix
* `pemrission create` initial implementation
* add ls command
* finalize `permission create` subcommand
* `permission rm` subcommand
* `permission add` subcommand
* remove empty `permission copy` subcommand
* clippy
* `capability create` subcommand and move modules under `acl` directory
* fix multiselect for `permission add` when capabilty doesn't have identifier
* clippy
* `create` -> `new` and change file
* license headers
* more license headers
* clippy
* Discard changes to examples/resources/src-tauri/.gitignore
* fix build
* cleanup
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-26 14:42:13 -03:00
Amr Bashir
9be314f07a
feat(cli/migrate): add plugins to Cargo.toml ( #8951 )
...
* feat(cli/migrate): add plugins to Cargo.toml
closes #8933
* small cleanup
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-26 13:29:16 -03:00
Lucas Fernandes Nogueira
cbd9755e09
fix: process logs not showing on iOS ( #8977 )
2024-02-25 17:38:27 -03:00
i-c-b
9cc014f2df
fix(docs): fix API webview/window class doc example ( #8971 )
...
* fix class doc example
* fix class doc example
2024-02-24 22:36:45 +02:00
github-actions[bot]
f5e4b67203
Apply Version Updates From Current Changes ( #8954 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-02-22 22:24:49 -03:00
github-actions[bot]
0606ab326b
Apply Version Updates From Current Changes ( #8938 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-02-22 18:50:24 -03:00
Lucas Nogueira
5ddea72c50
chore: update cargo-mobile2 to 0.10.2 ref #8949
2024-02-22 15:35:14 -03:00
Lucas Fernandes Nogueira
a76fb118ce
refactor(core): allow configuring both local and remote URLs on capability ( #8950 )
2024-02-22 15:15:16 -03:00
Lucas Fernandes Nogueira
e538ba586c
fix(cli): process spawn not working on Node.js for mobile commands, closes #6203 ( #8949 )
2024-02-22 15:14:55 -03:00
Amr Bashir
84c783f6bc
fix(bundler): remove fallback for license_file ( #8948 )
...
* fix(bundler): remove fallback for license_file
closes #8944
* Update .changes/bundler-license.md
* use license only on rpm
* change file
* Update .changes/bundler-rpm-license.md
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-02-22 14:56:22 -03:00
Lucas Fernandes Nogueira
fdcaf935fa
feat(webview): add reparent API ( #8939 )
...
* feat(webview): add reparent API
* fix build
* fix import
* remove cfg
* fix windows
* clone
* clone value
* ()
2024-02-22 08:52:27 -03:00
Amr Bashir
b5eb64728a
feat(bundler): enable dpi awareness for NSIS ( #8940 )
...
closes #8896
2024-02-22 08:52:19 -03:00
github-actions[bot]
af646520cf
Apply Version Updates From Current Changes ( #8918 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-02-21 12:00:32 -03:00
Lucas Fernandes Nogueira
361ec37fd4
chore(deps): update to tao 0.26 ( #8932 )
...
* chore(deps): update to tao 0.26
* fallback to crate name
* move struct to runtime
* tests
2024-02-21 11:25:42 -03:00
Amr Bashir
33bbd7fe94
fix(cli/add): fix generating code for stronghold ( #8908 )
...
closes 8880
2024-02-21 10:23:04 -03:00
Lucas Fernandes Nogueira
a029b9f77e
feat(cli): codesign on iOS is optional for the simulator ( #8910 )
...
* feat(cli): codesign on iOS is optional for the simulator
* cargo-mobile2 0.10
2024-02-21 09:52:46 -03:00
github-actions[bot]
18ff84fc81
Apply Version Updates From Current Changes ( #8775 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-02-19 15:49:28 -03:00
Lucas Fernandes Nogueira
c115a978bb
fix(cli): adjust template for capabilities ( #8907 )
2024-02-19 15:12:52 -03:00
Lucas Fernandes Nogueira
f284f9c545
refactor: configure URLs instead of domains on capability remote ( #8898 )
2024-02-19 11:14:09 -03:00
Lucas Fernandes Nogueira
8d16a80d2f
feat(codegen): allow defining additional capabilities, closes #8798 ( #8802 )
...
* refactor(core): capabilities must be referenced on the Tauri config file
* add all capabilities by default
* feat(codegen): allow defining additional capabilities, closes #8798
* undo example
* lint
* move add_capability to runtime authority
* add change files
* go through code review
* fix tests
* remove tokens option
2024-02-19 11:13:36 -03:00
Lucas Nogueira
c426c0dca2
merge from 1.x
2024-02-19 08:03:05 -03:00
Lucas Nogueira
e816a46b95
chore: update lock files
2024-02-18 23:46:17 -03:00
Lucas Nogueira
a4b82d9dba
chore: bump tauri-utils
2024-02-18 22:31:35 -03:00
github-actions[bot]
b735b6799f
Apply Version Updates From Current Changes (v1) ( #8475 )
...
* chore: change bump to patch
* apply version updates
---------
Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-02-18 19:31:52 -03:00
Marc Espin
dbd525ca64
docs: Update doc comment from normalize
function in path
plugin to match definition ( #8886 )
...
The doc comment from the normalize function in the path plugin was not matching the actual definition.
Rust definition: 0cb0a15ce2/core/tauri/src/path/plugin.rs (L18)
Typescript definition: 0cb0a15ce2/tooling/api/src/path.ts (L589)
2024-02-18 15:12:46 -03:00
Sam Willis
28fb036ce4
fix(core): Incorrect resource_dir when app run from new style target/PLATFORM+ARCH/(debug|release) dir ( #8852 )
...
* Fix resource_dir when app run from new target/someting/(debug|release) dir
* Update core/tauri-utils/src/platform.rs
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
* change file, update logic, add tests
* lint
* fix tests
---------
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-18 15:10:21 -03:00
Lucas Fernandes Nogueira
83a68deb56
refactor(core): allow referencing capabilities on the Tauri config file ( #8797 )
...
* refactor(core): capabilities must be referenced on the Tauri config file
* add all capabilities by default
* refactor(cli): reference all capabilities by default
2024-02-18 10:42:09 -03:00
Lucas Fernandes Nogueira
0cb0a15ce2
feat(core): capabilities on multiwebview contexts ( #8789 )
...
* feat(core): capabilities on multiwebview contexts
* fix cli
* lint
* sort
2024-02-16 08:24:51 -03:00
Fabian-Lars
052e8b4311
fix(cli): Downgrade minisign to 0.7.3 once again ( #8838 )
...
* fix(cli): Downgrade minisign to 0.7.3 once again
* add tests
* add change file
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-16 08:24:00 -03:00
Amr Bashir
16e550ec15
refactor(core): add webview events ( #8844 )
...
* refactor(core): add webview events
* license header
* clippy
* fix doctests
* more doctests
* fix JS `listen` with `EventTarget::Any`
* typo
* update module import
* clippy
* remove console.log
* fix api example
* fix documentation for emiTo [skip ci]
* actually add RunEvent::WebviewEvent
* update migration
* lint
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-16 08:07:39 -03:00
Jason Tsai
3cee26a58a
fix(cli): use UTF-8 encoding for vswhere.exe output ( #8865 )
2024-02-15 16:55:31 +02:00
amrbashir
7b5e8712e7
ci: update msrv test and cargo.lock
2024-02-14 04:01:01 +02:00
Priyadarshan Giri
aa06a0534c
fix(cli): fix code output of tauri plugin android init
( #8810 )
...
* Fix: code output of tauri plugin android init
double quotes `"` wasn't matching in plugin android init command
* change file
2024-02-07 18:40:46 +02:00
Lucas Fernandes Nogueira
fb0d997117
fix(cli): regression on --config not accepting file paths ( #8783 )
...
* fix(cli): regression on --config not accepting file paths
* enhance dev server config parsing
* use serde_json::json!
* pass config to setup
2024-02-07 17:08:05 +02:00
Amr Bashir
b0f27814b9
fix(cli): map --profile dev
to debug
folder when finding executable ( #8776 )
2024-02-05 16:12:08 +02:00
Lucas Fernandes Nogueira
baca704d4b
fix(cli): skip migrating updater config if not active ( #8768 )
2024-02-05 09:54:29 -03:00