#Auto update app

14 messages · Page 1 of 1 (latest)

olive aspen
#

Como genero el signature del json del server y el pubkey del ttauri.conf.json

vast crypt
olive aspen
#

Lo acabo de leer, pero sigue sin quedarme claro una cosa, tengo que generar la clave con:
tauri signer generate -w ~/.tauri/myapp.key

hacer el build y ya¿?

vast crypt
# olive aspen Lo acabo de leer, pero sigue sin quedarme claro una cosa, tengo que generar la c...

this will generate a privateKey and a pubKey in the target path.
the privateKey is the path you provided.
the pubKey is the path you provided with a .pub appended.

you need keep the privateKey and the pubKey safely
and for security, do not share the privateKey with anyone.

then you need to config your tauri.conf.json, and setup your environment variables if you want to build on your machine.

for tauri.conf.json:
https://tauri.app/v1/guides/distribution/updater#configuration

for setup environment variables:

Environment variables used to sign with the Tauri bundler:
If they are set, the bundler automatically generates and signs the updater artifacts.
TAURI_PRIVATE_KEY Path or String of your private key
TAURI_KEY_PASSWORD Your private key password (optional)

Configuration

olive aspen
jade tendon
#

Do I have to put npm run in front of it or something?
Yes

olive aspen
jade tendon
#

add the "devtools" feature flag to the tauri dependency in cargo.toml

olive aspen
#

tauri = { version = "1.0.0-rc.17", features = ["api-all", "updater"] }

#

under

#

¿?

jade tendon
#

yea

vast crypt
#

tauri = { version = "1.0.0-rc.17", features = ["api-all", "updater", "devtools"] }