#Can I build a binary that runs immediately when I click on it instead of an installer

16 messages · Page 1 of 1 (latest)

low dragon
#

I want to build a tauri binary, that when I click on it, it opens the window that displays UI
currently, when I build a binary, I get an installer, Is there a way to get a binary without installer?

stray kettle
#

Depends a bit on the platform, but you will have problems on macOS and windows if you don’t code-sign

low dragon
#

@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

stray kettle
#

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

low dragon
#

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

winged trench
#

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.

stray kettle
#

and you will definitely hit the smartscreen

#

(because no app signatures)

winged trench
#

you can sign the exe itself too right?

stray kettle
#

but you still need to ship the sig

#

afaik this is why a bundle / installer is needed

winged trench
#

that'd be news to me. i thought that signtool somehow attaches the signature to the file itself