#Replacing updater pubkey during build

3 messages · Page 1 of 1 (latest)

quick adder
#

Is there a way to replace the updater plugin pubkey field during build in Tauri v2?

I'd hoped it would be possible by merging configs using --config src-tauri/tauri-ci.conf.json but it doesn't appear to be working, I'm seeing errors that my keys do not match.

Reason for this being desirable is due to security. Our devs can run the Tauri app, as can our CI on PRs, but we do not want access to our real private key or secret there, so we have a set of keys for development/PRs. Only code merged via PR review gets access to our real keys. I've tried simply removing the development keys, as we don't need an updater in dev builds or the PR build, but this causes the app to fail to launch.

With merging there's mention of using the JSON patch merge standard, although I tried using a patch document and it did not work. Merging seems to expect a Tauri format JSON object, which as mentioned initially isn't working for me

#

I might be being silly of course. I think I've managed to make a typo in my secret handling instead

#

Definitely made a typo in my secrets handling. Possibly not an issue. Will mark as resolved and re-open if needed