tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
85.38k stars 2.58k forks source link

[feat] build without signing cli flag #11626

Open ShaunSHamilton opened 1 week ago

ShaunSHamilton commented 1 week ago

Describe the problem

Myself, and especially contributors to a Tauri-based app, do not want/have the signing keys when testing. However, when the various environment variables are not set, the build just fails.

There is no quick way to build a non-signed bundle of an app.

Describe the solution you'd like

tauri build --no-sign

Alternatives considered

Currently, the workaround is to have something like a tauri.conf.dev.json file with values like:

"bundle": { "windows": null }

Then, use tauri build --config src-tauri/tauri.conf.dev.json.

I just find it odd there is no flag in the cli to disable signing.

Additional context

It is helpful to go through the whole workflow of installing, manually opening, checking the closing and re-opening behaviour, checking uninstalling (if all expected files are removed). Also, with things like the updater plugin, checking the automated update/restart workflow.