Lucas Fernandes Nogueira
073bb4f459
refactor(core): remove deprecated webview_fixed_runtime_path option ( #10772 )
...
* refactor(core): remove deprecated webview_fixed_runtime_path option
* update migration
2024-08-25 16:35:42 -03:00
Amr Bashir
91e9e784aa
feat(cli/info): include plugins info ( #10729 )
...
* feat(cli/info): include plugins info
closes #10682
* header
* resolve package manager once
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2024-08-23 08:29:03 -03:00
Lucas Fernandes Nogueira
1a60822a42
fix(cli): add should use 2.0.0-rc for known plugins ( #10699 )
...
changes the CLI `add` command to match the CLI major and pre requirements for known plugins
this is required because right now adding the deep-link plugin installs the v1 plugin (latest version known by cargo as the v2 is still in RC), even though we're running the v2 CLI
2024-08-20 14:09:50 -03:00
Amr Bashir
01f6aa3405
build: migrate repo to use pnpm as the package manager ( #10607 )
...
* build: migrate repo to use `pnpm` as the pacakge manager
* corepack enable
* update lock file
* format files
* format .github
* fix audit js
* wrap in quotes
* --frozen-lockfile
* simplify packageManager field
* lockfile
* remove cache from audit workflow
2024-08-16 23:04:08 -03:00
Lucas Fernandes Nogueira
10fb027b75
fix(cli): migrate v1 plugin dependencies, prevent dup, closes #10650 ( #10656 )
2024-08-16 19:58:20 -03:00
Lucas Fernandes Nogueira
3bec7b1595
feat(cli): add support to Svelte and Vue.js code on v1 migration ( #10544 )
...
* feat(cli): add support to Svelte and Vue.js code on v1 migration
* clippy
2024-08-12 13:45:42 +09:00
Lucas Fernandes Nogueira
3998570fd3
fix(cli): manifest v1 migration ( #10540 )
...
update features that got removed/renamed, and also migrate any core crate on any dependency table
2024-08-12 12:23:39 +09:00
Lucas Fernandes Nogueira
3beba92b5b
fix(cli): incorrect JS generated by frontend migration closes #10500 ( #10542 )
...
* fix(cli): incorrect JS generated by frontend migration closes #10500
2024-08-12 12:10:27 +09:00
Lucas Fernandes Nogueira
f3837d5b98
fix(cli): broken v1 updater migration, add TOML support, closes #10508 ( #10539 )
...
- make the v1 config migration more resilient by checking null values
- fix "targets: all" incorrectly migrating createUpdaterArtifacts when there's no updater configuration (this is problematic because this targets config is the default)
- migrate Tauri.toml
- add more tests
2024-08-12 11:56:13 +09:00
Sam Kearney
2d47352a07
fix(cli): make app_dir() logic consistent ( #10418 )
...
* fix(cli): Make app_dir() consistent by basing it on the explicit invocation directory rather than the current working directory
* resolve app paths before everything else
* fix xcode script
* fix test
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2024-08-11 09:44:15 -03:00
Maarten
bba1a44191
feat(cli): allow skipping rustfmt project reformatting when adding a plugin ( #10457 )
...
* feat(cli): allow skipping rustfmt project reformatting
* Apply suggestions from code review
* fixes, change file
* fix change file
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app >
2024-08-10 17:09:07 -03:00
Lucas Fernandes Nogueira
2e8ab7bac1
fix(cli): v1 migration should add the updater plugin if it is enabled ( #10481 )
...
* fix(cli): v1 migration should add the updater plugin if it is enabled
* fix change tag
* move to process_updater
* Update tooling/cli/src/migrate/migrations/v1/config.rs
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de >
---------
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de >
2024-08-05 10:00:33 -03:00
Lucas Fernandes Nogueira
8e1e15304e
feat(cli): check if Rust lib contains required Android and iOS symbols #10094 ( #10483 )
...
* feat(cli): check if Rust lib contains required Android symbols #10094
* check for ios aswell
2024-08-05 09:46:28 -03:00
Lucas Fernandes Nogueira
d5511c3117
feat(cli): add migration from 2.0.0-beta to 2.0.0-rc ( #10395 )
...
* refactor(cli): check tauri version on migration
* rc migration
* license headers
* fix tests
* add path
* update schema
2024-07-30 16:32:59 -03:00
Lucas Fernandes Nogueira
758d28c8a2
refactor: core plugin permissions are now prefixed core:, closes #10359 ( #10390 )
...
* refactor: core plugin permissions are now prefixed core:, closes #10359
* code review
* expand reserved plugin names
* fix
* add core:default permission set
* fix permission usage
---------
Co-authored-by: Tillmann <28728469+tweidinger@users.noreply.github.com >
2024-07-30 07:52:43 -03:00
Amr Bashir
c01e87ad46
refactor(cli/migrate): use oxc kit to parse and migrate js/ts files ( #10198 )
...
* refactor(cli/migrate): use `oxc` kit to parse and migrate js/ts files
closes #10192
* fix tests
* use majic-string to perserve formatting
* more comments
* Discard changes to package.json
* Update cli-migrate-enhancemnets.md
* Update cli-migrate-enhancemnets.md
* more context
* add missing quotes, rename getcurrent
* fix change file
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2024-07-12 09:03:30 -03:00
Amr Bashir
94136578bc
fix(cli/migrate): fix clipboard permissions migration ( #10186 )
...
closes #10185
The plugin has been updated recently and its permissions has changed.
2024-07-04 10:47:44 +03:00
Tony
911242f092
feat!(core): add bundle createUpdaterArtifacts configuration ( #9883 )
...
* Add updater field
* Don't sign updaters when updater field is false
* Clippy
* Add updater to bundle migration
* Format
* Add updater config to api example
* No warning if update is not enabled
* Build
* Add change file
* We don't generate updater for dmg package
* Warning only for v1 compatible
* clean up
* More clean up
* little bit more
* Apply suggestions from code review
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com >
* Revert license header change
* Remove option around pubkey and msi args
* More migration tests
* Refactor private_key getter
* Only generate signature for updater for v1 compat
* Format
* Use map_err instead of anyhow context
* Don't generate updater for api example
* Fix misaligned comment
* Rename `updater` to `createUpdaterArtifacts`
* Revert changes in helloworld example
* Add warning for v1 compatible
* Update .changes/separate-updater-field.md
Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com >
* update error messages [skip ci]
---------
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com >
Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com >
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2024-07-01 08:34:58 -03:00
Kareem Ebrahim
019a74e970
fix(cli): correct module name resolution for clipboard and globalShortcut plugins ( #9931 )
2024-06-03 21:57:46 +03:00
Amr Bashir
aaa332c6e7
fix(cli/migrate): migrate only known plugins ( #9540 )
...
* fix(cli/migrate): migrate only known plugins
closes #9533
* use tuple
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2024-04-22 15:28:19 +02:00
Kornel
73c1c2d338
fix(cli/migrate): tolerate non-UTF-8 in migration ( #9457 )
2024-04-15 11:39:53 +02:00
Amr Bashir
7213b9e472
feat(cli/add): add default permission to capabilities ( #9124 )
...
* feat(cli/add): add default permission to capabilities
also cleanup `tauri add` command
* license headers & clippy
* print permission name
* do not error out if default permission is not set
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2024-03-13 11:58:25 -03:00
Lucas Fernandes Nogueira
3e472d0afc
refactor(acl): permission and capability platforms are optional ( #9115 )
...
* refactor(acl): permission and capability platforms are optional
* add iterator version
* fix build
---------
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com >
2024-03-07 14:18:15 -03:00
Lucas Fernandes Nogueira
b5c7432769
feat(core): use a strict CSP on the isolation iframe ( #9086 )
2024-03-05 14:20:17 -03:00
i-c-b
947a50b8e2
fix(cli): migration for http plugin ACL ( #9049 )
...
* fix cli migration of http allowlist to ACL
* Create fix-cli-migration-http-acl.md
2024-03-03 09:28:31 -03:00
Amr Bashir
4b75834a41
chore: update license headers 2024 ( #9043 )
2024-03-01 08:29:01 -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
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
a76fb118ce
refactor(core): allow configuring both local and remote URLs on capability ( #8950 )
2024-02-22 15:15:16 -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
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
Lucas Fernandes Nogueira
baca704d4b
fix(cli): skip migrating updater config if not active ( #8768 )
2024-02-05 09:54:29 -03:00
Amr Bashir
8de308d1bf
feat(core): implement new config structure ( #8723 )
...
* feat(core): implement new config structure
RFC#5 f3e82a6b0c/texts/0005-tauri-config-restructure.md
* fixes
* remove tauri-plugin copy [skip ci]
* move platform specific configs
* fix build
* fix cli
* doctests
* change files
* read updater plugin config on CLI
* doctests
* remove env var from docs
* fix getting pubkey
* add migrations
* clippy
* update change file [skip ci]
* rename frontendDist to prodFrontend?
* Revert "rename frontendDist to prodFrontend?"
This reverts commit ef7394f085 .
* fix all_features check
* fix field name
* single license getter on bundler
* readd msiexec_args
* remove unused fixture
* update template
* Update .changes/tauri-bundle-settings-rfc-5.md
* Update .changes/config-restructure-rfc-5.md
* lint bundler, fix change file
* rename AppUrl to FrontendDist, add explicit variants for docs
* fix build
* lint
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app >
2024-02-03 00:39:48 -03:00
Lucas Fernandes Nogueira
11de49788a
feat(cli): migrate allowlist scope ( #8698 )
...
* feat(cli): migrate allowlist scope
* fix tests
* lint
* fix totokens impl
2024-01-29 12:50:21 -03:00
Lucas Fernandes Nogueira
d70470f868
feat(build): save ACL metadata ( #8678 )
...
* feat(build): save ACL metadata
metadata will be read by the CLI later to show the user what has been enabled and what can be done
* lint
* fix cli
2024-01-25 15:33:36 -03:00
Lucas Fernandes Nogueira
1878766f7f
feat(cli): migrate allowlist to new ACL ( #8667 )
2024-01-24 16:57:40 -03:00
Lucas Fernandes Nogueira
0ec28c39f4
feat(cli): migrate tauri-build version ( #8529 )
...
* feat(cli): migrate tauri-build version
This changes the migrate command to also migrate the tauri-build dependency to v2, previously it only updated the tauri dependency.
* lint
2024-01-02 15:24:50 -03:00
Lucas Fernandes Nogueira
7e4580afed
fix(cli): remove test only relevant to v1 branch, adjust migration test ( #8451 )
2023-12-20 18:35:50 -03:00
Fabian-Lars
c2ad4d28c4
refactor(api)!: Rename primitives mod to core ( #8273 )
2023-11-20 17:53:13 -03:00
Amr Bashir
a63e71f979
refactor(core&api)!: hide internal functions and reuse them in api.js & rename tauri module to primitives ( #7942 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2023-10-17 09:40:20 -03:00
Lucas Fernandes Nogueira
d5074af562
fix: custom protocol on Windows, change scheme on Android, closes #7801 ( #7808 )
2023-09-11 12:25:06 -03:00
Lucas Fernandes Nogueira
4cb51a2d56
refactor(core): custom protocol on Windows now uses the http scheme ( #7779 )
2023-09-07 19:57:16 -03:00
Lucas Fernandes Nogueira
964282a267
fix(cli): migration tests ( #7745 )
2023-09-06 13:43:17 -03:00
Amr Bashir
7fb419c326
refactor: move to muda and tray_icon crates ( #7535 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio >
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2023-08-13 22:25:50 -03:00
Lucas Fernandes Nogueira
fbeb5b9185
refactor(core): use webview's URI schemes for IPC ( #7170 )
...
Co-authored-by: chip <chip@chip.sh >
2023-08-10 10:12:38 -03:00
Lucas Fernandes Nogueira
8af2497496
feat(cli): automate API -> plugin migration ( #7561 )
2023-08-08 13:21:46 -03:00
Lucas Fernandes Nogueira
b0f947752a
feat(cli): add migrate command ( #7008 )
2023-05-20 20:28:46 -03:00