You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{ app, autoUpdater }=require('electron');letversion=app.getVersion();letserver='https://colube-deploy-pnjad1iun-wenwu.vercel.app';//let url = `${server}/update/${process.platform}/${app.getVersion()}`;letplatform=process.platform+'_arm64';leturl=`${server}/update/${platform}/${version}`;autoUpdater.setFeedURL({ url });setInterval(()=>{autoUpdater.checkForUpdates();},15*60*1000);setTimeout(()=>{autoUpdater.checkForUpdates();},3000);autoUpdater.on('update-downloaded',(event,releaseNotes,releaseName)=>{releaseName,releaseNotes);constdialogOpts={type : 'info',buttons : ['Restart','Later'],title : 'Application Update',message : process.platform==='win32' ? releaseNotes : releaseName,detail : 'A new version has been downloaded. Restart the application to apply the updates.',}dialog.showMessageBox(dialogOpts).then((returnValue)=>{if(returnValue.response===0)autoUpdater.quitAndInstall();})});autoUpdater.on('before-quit-for-update',()=>{});autoUpdater.on('error',(message)=>{console.error('There was a problem updating the application.');console.error(message);});
Some background information:
I am testing on M2-chip MacOS Monterey 12.4. Electron version is ^19.0.8
I am implementing
auto update
feature for myElectron
app. I am encountering an error:This error is thrown from inside
Electron
node module, specifically fromSquirrel.framework
:Part of my
electron
main.js
code:Some background information:
M2-chip MacOS Monterey 12.4
.Electron
version is^19.0.8
autoUpdater
fromelectron
modulegithub
repo.TOKEN
(my github personal token).url
argument passed tosetFeedURL()
ishttps://colube-deploy-pnjad1iun-wenwu.vercel.app/update/darwin_arm64/0.9.13
autoUpdater.checkForUpdates()
is status code200
withobject
like:colube-deploy-pnjad1iun-wenwu.vercel.app/download/darwin_arm64?update=true
to browser can successfully download the app.The text was updated successfully, but these errors were encountered: