8000 fix(desktop): check the update's signature against the repository's key at build time by adeelahmad · Pull Request #354 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ jobs:
if [ -n "$TAG" ]; then
config="$(echo "$config" | python3 -c 'import json,sys; c=json.load(sys.stdin); c["version"]=sys.argv[1].lstrip("v"); print(json.dumps(c))' "$TAG")"
fi
if [ "${LENS_UPDATES:-0}" = 1 ]; then # the signed .app.tar.gz the updater downloads
config="$(echo "$config" | python3 -c 'import json,sys; c=json.load(sys.stdin); c["bundle"]["createUpdaterArtifacts"]=True; print(json.dumps(c))')"
if [ "${LENS_UPDATES:-0}" = 1 ]; then # the signed .app.tar.gz the updater downloads, checked against the key
config="$(echo "$config" | python3 -c 'import json,os,sys; c=json.load(sys.stdin); c["bundle"]["createUpdaterArtifacts"]=True; c["plugins"]={"updater":{"pubkey":os.environ["LENS_UPDATER_PUBKEY"].strip()}}; print(json.dumps(c))')"
fi
npx tauri build --config "$config" --bundles app,dmg
mkdir -p ../dist/desktop
Expand Down
Loading
0