Commit Graph

1483 Commits

Author SHA1 Message Date
github-actions[bot]
089939bb97 Apply Version Updates From Current Changes (v1) (#12203)
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2025-01-10 20:20:41 +01:00
Mariela Sassi
a3584c143e backport: always check parent directory to 1.x (#11960)
Co-authored-by: griffi-gh <prasol258@gmail.com>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
Co-authored-by: Fabian-Lars <github@fabianlars.de>
fix #8679)
2025-01-04 01:04:48 +01:00
Fabian-Lars
9752eb638f ci: Remove tauri-driver from covector config (#11588)
we messed up the versions which causes the publishing pipeline to fail all the time.

i doubt we'll release any further v1 tauri-driver updates anyway
2024-11-05 08:14:15 -03:00
github-actions[bot]
b09d8873a1 apply version updates (#11434)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-10-21 08:16:28 -03:00
Amr Bashir
a5f045e527 fix(bundler): try to sign binaries only if targeting windows (#11404)
* fix(bundler): try to sign binaries only if targeting windows

closes #10505

* fmt
2024-10-20 08:56:41 -03:00
Lucas Fernandes Nogueira
7b0aac9129 chore: publish 1.x NPM packages with the v1 tag (#11188) 2024-10-15 06:02:01 +03:00
github-actions[bot]
e7153a85a3 apply version updates (#11075)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-10-14 13:13:53 -03:00
Lucas Fernandes Nogueira
3c7258d651 fix(ci): run on ubuntu 22.04 (#11358)
* fix(ci): install libsoup2.4-dev

* update action

* ubuntu 22.04

* fix image

* latest for cli checks

* ubuntu 20.04

* Revert "ubuntu 20.04"

This reverts commit 6fd0ebb2c3.

* fix audit

* fix cli audit
2024-10-14 10:28:14 -03:00
Amr Bashir
343b11d7c7 feat: add deno support (#11305)
* feat: add deno support

ref: denoland/deno#20738

* Update packages_nodejs.rs

* typo

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-10-11 16:47:55 -03:00
Lucas Fernandes Nogueira
c72cd45ccd fix(core): deadlock when creating new window with tracing feature (#11213) 2024-10-04 16:13:44 -03:00
Orvar Segerström
019f94f128 fix(nsis): properly handle Webview2 download return value (#11131) 2024-09-26 02:38:57 +03:00
Amr Bashir
9ef1be46e8 fix(updater): encode version when making requests (#11070)
* fix(updater): encode version when making requests

closes #10908

* encode `+` only

* use normal const
2024-09-20 07:57:47 -03:00
github-actions[bot]
bd3c153145 Apply Version Updates From Current Changes (v1) (#11012)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-09-15 16:23:08 -03:00
Lucas Fernandes Nogueira
26d243f43a fix(core): restart cannot handle binary name change on macOS (#10991)
* fix(core): `restart` cannot handle binary name change on macOS

Tauri v2 changed the default binary name of the bundled apps (no longer follows the productName, just uses the default name from Cargo instead). This breaks the `restart` function, which expects the current binary path to match the new one.

Due to this change, the restart() function for macOS is broken - the .app is correctly replaced even if the productName changed, but the restart() function cannot handle the new binary path. This change adds a simple check on macOS to read the `Contents/MacOS` folder and if it only contains a single binary, we use it to restart instead.
This inference cannot be used if there's sidecars, so in this case we just let the existing implementation run and if it fails to restart, we do not panic but only warn and exit instead.

AppImage updates are not affected by this, and the Windows installer is responsible for restarting, so this change is only applied to macOS binaries.

* fix: use Info.plist to determine binary name

* use log instead of eprintln

* move log
2024-09-14 10:51:29 -03:00
Amr Bashir
298f8ca584 feat(bundler/nsis): store main binary name to be used in registry for future updates (#10952)
* feat(bundler): store main binary name to be used in registry for furture updates

* revert wix changes as leftover binaries are fixed by https://github.com/tauri-apps/tauri/pull/10967
2024-09-13 16:08:51 +03:00
Fabian-Lars
2e87e85f85 fix(core): Use productName for FileDescription (#10976) 2024-09-12 20:51:46 +03:00
Amr Bashir
14443a1319 refactor(updater/wix): launch app after update, maintain args (#10966)
* refactor(updater/wix): launch app after update, maintain args

* change files
2024-09-12 16:07:04 +03:00
Amr Bashir
50fbf7bf1d feat(updater): support updating using non-zipped files (#10939)
* feat(updater): support updating using non-zipped files

* minor

* fix compilation

* clippy

* pass `/UPDATE` to NSIS installer on updates

* clippy

* revert user-agent change

* add v1 -> v2 migration e2e test

* fix npm exec on windows

* downgrade serial-test for msrv

* fix sig ext for nsis v2

* fix windows e2e test

* add lcense headers

* fix conflict on e2e test on windows [skip ci]

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-09-11 17:55:25 -03:00
github-actions[bot]
1f45808ba0 Apply Version Updates From Current Changes (v1) (#10220)
* apply version updates

* use audit-ci

* fmt

---------

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-08-23 15:16:33 -03:00
Lucas Fernandes Nogueira
c3a90e5c27 fix(tauri-runtime-wry): ensure tray is created when event loop ready (#10611) 2024-08-15 08:21:48 -03:00
Lucas Fernandes Nogueira
937849f28c refactor(tauri-runtime-wry): Arc instead of Rc, closes #9775 (#10587) 2024-08-13 08:37:46 -03:00
Lucas Fernandes Nogueira
48a7415c21 chore(deps): update serialize-to-javascript to 0.1.2 (#10594) 2024-08-13 14:37:22 +03:00
Fabian-Lars
297cd55c44 fix: Fix bundler&cli MSRV (#10499)
* chore(deps) Update Tauri Bundler

* ci: Also check bundler and cli in msrv check

* fix

* 1

* 2

* 3

* msrv

* downgrade handlebars again

* x

* x

* x

* x

* x

* x

* this makes no sense

* srsly wtf

* me dumb dumb

* bufreader

* x

* x

* changefile

* fix permissions

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-08-08 16:50:13 -03:00
Lucas Fernandes Nogueira
a3946222b3 fix(core): usage without the compression feature (#10433) 2024-07-31 18:39:51 -03:00
Lucas Fernandes Nogueira
67b7ca6ef4 feat(core): fallback to file system for AssetResolver::get, closes #8411 (#10356)
* fix(core): fallback to file system for AssetResolver::get, closes #8411

Changes the AssetResolver::get implementation to fallback to reading the distDir directly when using the development mode pointing to a external URL (which is the way most people use the dev mode and means there's no embedded assets to pull from).

* fix clippy

* fix test

* clippy

* clippy2

* update time
2024-07-31 07:13:52 -03:00
Fabian-Lars
eb58ac382b fix(core): Return early in core.js if it's inside an iframe (#10300)
* fix(core): Return early in core.js if it's inside an iframe

* ipc.js
2024-07-30 16:27:40 +09:00
anatawa12
fbcbc5ef7c chore: emit rustc-check-cfg for rust 1.80 (#10392)
* chore: emit rustc-check-cfg for rust 1.80

* build: add lints.rust.unexpected_cfgs to suppress false positive warnings
2024-07-29 12:58:26 -03:00
chip
51d043209b integration tests related to recent security advisory (#9983)
* test if an uninitialized iframe can call the ipc

* test that calls without __TAURI_INVOKE_KEY__ fail

* fix cargo manifest newline change

* add comment to help unknown error message changes

* license headers

* add identifier and icons to config

* fix clippy error

* Create change-pr-9983.md

* add tag to changefile

* rename changefile
2024-07-23 11:23:29 +09:00
Fabian-Lars
56ffd29bc8 fix(core/windows): Remove UNC prefix from tempdir fn (#10288)
fixes #10285
2024-07-15 20:00:43 +03:00
Amr Bashir
212001c1df fix(cli): parse cargo--target-dir flag (#10233)
* fix(cli): parse cargo`--target-dir` flag

closes #10190

* clippy
2024-07-10 16:01:13 +03:00
Amr Bashir
220bf92ed8 fix(core/updater): pass /NS to nsis installer to disable creating shortcuts on updates (#9413)
* fix(core/updater): pass `/NS` to nsis installer to disable creating shortcuts on updates

closes #9395

* Update .changes/utils-nsis-args-ns.md [skip ci]

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-07-08 20:57:31 -03:00
Fabian-Lars
0aa0378c8d feat(cli): add macos hardened runtime signing config option (#9318) (#10199)
* feat(cli): add macos signing config option

* rename option to hardened_runtime

* chore(cli): use default true in hardened runtime config

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-07-08 15:51:20 +03:00
Amr Bashir
1c2ff81335 fix(bundler): update nsis_tauri_utils to 0.4.1 (#10183) 2024-07-08 13:34:15 +02:00
github-actions[bot]
0a00375f56 apply version updates (#10178)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-07-02 13:40:45 +02:00
Fabian-Lars
4bffa5cff0 fix(core): fix compilation when shell-execute or shell-sidecar (#10174)
* fix(core): fix compilation when `shell-execute` or `shell-sidecar` (#9729)

* fix(core): fix compilation when `shell-execute` or `shell-sidecar`

regression from: https://github.com/tauri-apps/tauri/pull/9706

* change file

* lint

---------

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-07-02 07:38:46 -03:00
github-actions[bot]
89f3048f52 apply version updates (#9871)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-07-01 23:13:05 -03:00
Amr Bashir
08f57efefd fix(cli): parse --profile=<profile> syntax (#10136)
* fix(cli): parse `--profile=<profile>` syntax

ref: https://github.com/tauri-apps/tauri/issues/6255#issuecomment-2192466839

* Update tooling/cli/src/interface/rust.rs

* derive default

* safe check next arg

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-06-27 06:53:29 -03:00
Harry Mallon
924387092e feat: add dmg settings, cherry picked from #7964 (#8334)
* feat(bundler): add dmg settings, closes #4669 (#7964)

* fix(bundler): lint and cleanup for #7964 (#8275)

* fmt

---------

Co-authored-by: Andrew <andrey255@live.com>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2024-06-17 13:25:12 +02:00
Pylogmon
674accad75 fix: missing depends for rpm package (#10015)
* fix: missing depends for rpm package

* chore: add changes
2024-06-12 04:24:03 +03:00
anatawa12
940aa183c7 fix(nsis): run app as normal user (#9944) (#9995)
(cherry picked from commit 6f469534b0)

Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
2024-06-06 15:00:23 +02:00
Lucas Fernandes Nogueira
07b02c9f96 fix(core): test invoke key, closes #9960 (#9972) 2024-06-04 17:02:18 -03:00
Jerry
8ee8f09390 fix(core): fix check temp path permission on mac os, fix #6256 (#9588)
* fix: check temp path permission on mac os

* chore: format code
2024-06-04 10:02:54 -03:00
Pylogmon
78fc841370 feat(bundler): add provides, conflicts and replaces for deb and rpm (#9942)
Backport of #9331
2024-06-04 04:47:17 +03:00
AnthonyNGarcia
a301be52d2 fix(windows): Fix Windows System User build failures by using the current directory for bundling tools (fix: 9895) (#9914)
Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
2024-06-03 21:45:44 +03:00
muwoo
5909662766 feat(bundler): support custom sign command on Windows (#9902) 2024-06-03 21:34:49 +03:00
Harry Mallon
253595a22d feat(bundler): Add RPM packaging, closes #4402 (#5202) (#9809)
* feat(bundler): Add RPM packaging

* feat(bundler): Update 'rpm' to 0.13.1

* Fix fmt

Co-authored-by: Olivier Lemasle <olivier.lemasle@apalia.net>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-05-28 22:31:29 -03:00
Fabian-Lars
a020828d0e feat(bundler/windows): Update wix to fix vulnerabilities and add arm support (#9861)
* feat(bundler/windows): Update wix to fix vulnerbilities and add arm support

* is this what it's complaining about?

* delete change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-05-28 22:31:16 -03:00
Amr Bashir
e48157da2f fix(core/shell/command): retry sending events when it fails, closes #7684 (#9698)
* fix(core/shell/command): retry sending events when it fails, closes #7684

* try normally first

* sleep first
2024-05-28 11:48:57 -03:00
Amr Bashir
44e3335da8 fix(core/shell): speedup Command.execute & fix extra new lines (#9796)
* fix(core/shell): speedup `Command.execute` & fix extra new lines (#9706)

* fix(core/shell): speedup `Command.execute` & fix extra new lines

The speed gains comes from running the Command in Rust fully and returning the result in one go instead of using events.

The extra new lines was a regression from https://github.com/tauri-apps/tauri/pull/6519

ref: https://github.com/tauri-apps/tauri/issues/7684#issuecomment-2100897383

* fix unix build

* clippy

* cleanup

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>

* lock file

* minor

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-05-24 13:40:05 -03:00
github-actions[bot]
bf708a21a8 apply version updates (#9857)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-05-22 23:10:41 -03:00