#Can I build a binary that runs immediately when I click on it instead of an installer
16 messages · Page 1 of 1 (latest)
Depends a bit on the platform, but you will have problems on macOS and windows if you don’t code-sign
If you don’t care, this page and its daughter pages will explain more:
@stray kettle Thanks for your reply
I'm trying to build for windows
I checked out the link you send above, but I could not find a section on how to build a binary without installing at all, just click it and UI shows up
you want an exe
but as i said, that won't really be portable
as in, others will get HUGE warnings that the developer can not be found
I understand, my employer wants this behaviour and we are just building for windows
from what I understand from the docs, it only creates an installer when building
Is there a way to skip the installer and just run the exe
disable the bundler either by setting bundle.active = false in tauri.conf.json or temporally by doing yarn tauri build -b none. The exe will always be built no matter if you also build installers or not.
Keep in mind though that there is no guarantee from our side that the exe is really portable (and whether that state changes between releases).
For example, you now have to make sure webview2 is installed yourself (it should be on newer systems). Desktop notifications won't show the right icon or name. Features like bundling resources and sidecars obviously don't work either.
you can sign the exe itself too right?
but you still need to ship the sig
afaik this is why a bundle / installer is needed
that'd be news to me. i thought that signtool somehow attaches the signature to the file itself