#Auto update app
14 messages · Page 1 of 1 (latest)
for pubkey and privateKey:
https://tauri.app/v1/guides/distribution/updater#signing-updates
for signature:
a file contains signature is automatically generated in build process once you finish setup your environment and tauri.conf.json
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¿?
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)
(and if you need use translator, you could try out this: https://www.deepl.com/translator)
Ok, I think I understand, the only thing that when I try to do the command it tells me that:
"tauri is not recognized as an internal or external command,
program or executable batch file.
Do I have to put npm run in front of it or something?
Do I have to put npm run in front of it or something?
Yes
How can I build the app with development tools?
add the "devtools" feature flag to the tauri dependency in cargo.toml
yea
tauri = { version = "1.0.0-rc.17", features = ["api-all", "updater", "devtools"] }