fix(updater): narrow signed update before install
Some checks failed
Desktop Release / Bootstrap updater signing key (push) Has been cancelled
Desktop Release / Windows x64 NSIS (push) Has been cancelled
Desktop Release / Linux x64 DEB + AppImage (push) Has been cancelled
Desktop Release / Publish public desktop release (push) Has been cancelled
Some checks failed
Desktop Release / Bootstrap updater signing key (push) Has been cancelled
Desktop Release / Windows x64 NSIS (push) Has been cancelled
Desktop Release / Linux x64 DEB + AppImage (push) Has been cancelled
Desktop Release / Publish public desktop release (push) Has been cancelled
This commit is contained in:
parent
d6e2a8483c
commit
af231cebec
@ -487,9 +487,12 @@ async function installAvailableUpdate() {
|
||||
let downloaded = 0
|
||||
let total = 0
|
||||
|
||||
const signedUpdate = availableUpdate
|
||||
if (!signedUpdate) return
|
||||
|
||||
try {
|
||||
state.textContent = `Downloading FieldLens Print ${availableUpdate.version}…`
|
||||
await availableUpdate.downloadAndInstall((event) => {
|
||||
state.textContent = `Downloading FieldLens Print ${signedUpdate.version}…`
|
||||
await signedUpdate.downloadAndInstall((event) => {
|
||||
if (event.event === 'Started') {
|
||||
total = event.data.contentLength ?? 0
|
||||
downloaded = 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user