Comments (17)
Hi Tj. You don't need to call checkForUpdates and downloadUpdate, just keep updater.init("https://github.com/tjoye20/vthreat-updates/releases/download/v2.0.0/updates.json").
from electron-simple-updater.
Hi! I got it working, kind of, but now I"m getting this error: Could not get code signature for running application,
even tho my package (.app folder) is signed. Or, should I be signing the .dmg image instead?
from electron-simple-updater.
Here's the code signing verification:
`> [email protected] verify:osx-signature /Users/toluoyeniyi/Electron/vthreat-desktop
spctl -a -vvvv dist/osx/'vThreat Bot-darwin-x64'/'vThreat Bot.app'/
dist/osx/vThreat Bot-darwin-x64/vThreat Bot.app/: accepted
source=Developer ID
origin=Developer ID Application:....`
from electron-simple-updater.
Both old (current) and new releases should be signed with the same certificate.
I don't use electron-packager so I can't help you with it. But with electron-builder I had no problems with signing.
from electron-simple-updater.
OK. Well, it says it's downloading, Downloading updates from https://github.com/tjoye20/vthreat-updates/releases/download/v2.0.0/vThreat.Bot.dmg
, but I've been waiting over 30 minutes and have even restarted the app, but it's still the same version number when I check what the package.json.version says.
How do I know/check the update status, or know when it's down updating?
from electron-simple-updater.
It should download json file, not dmg. Check your links. Or use electron-simple-publisher instead.
from electron-simple-updater.
Yes, that's what I was trying at first, and nothing was happening.
I set it up like the links in the example, Downloading updates from https://github.com/tjoye20/vthreat-updates/releases/download/v2.0.0/release.json
, and still, nothing happens.
That release.json file contains this url: https://github.com/tjoye20/vthreat-updates/releases/download/v2.0.0/vThreat.Bot.dmg.zip
, a .zip file of the image just like in the example.
from electron-simple-updater.
The format of this zip file is wrong, it should contain *.app folder, not dmg. Listen to the error event of updater.
from electron-simple-updater.
Well, still struggling with this. I really appreciate your patience and your help tho. Thank you.
from electron-simple-updater.
I recommend you to use electron-simple-publisher together with electron-builder, it will make all necessary resource and links for you.
from electron-simple-updater.
@tjoye20 How's your progress?
from electron-simple-updater.
I used Electron builder with electron-simple-publisher, and ran into the same issues. Getting this error: `
Found version 2.0.0 at https://github.com/tjoye20/vthreat-updates/releases/download/v2.0.0/latest-mac.json
{ Error: Could not get code signature for running application
at SimpleUpdater.onFoundUpdate (/Users/toluoyeniyi/Electron/vthreat-desktop/node_modules/electron-simple-updater/index.js:304:17)
at getUpdatesMeta.then (/Users/toluoyeniyi/Electron/vthreat-desktop/node_modules/electron-simple-updater/index.js:159:16)
at process._tickCallback (internal/process/next_tick.js:103:7)
preventDefault: [Function: preventDefault],
sender:
AutoUpdater {
_events: { 'update-downloaded': [Function], error: [Function] },
_eventsCount: 2 } }
Downloading updates from https://github.com/tjoye20/vthreat-updates/releases/download/v2.0.0/latest-mac.json
2017-03-22 09:29:58.871 Electron Helper[53931:14094011] Couldn't set selectedTextBackgroundColor from default ()`
It says it's downloading updates, but it doesn't do anything. Here's my main.js
const updater = require('electron-simple-updater'); updater.init("https://raw.githubusercontent.com/tjoye20/vthreat-updates/master/updates.json")
here's my publisher.json
{ "transport": { "module": "github", "token": "<token>", "updatesJsonUrl": "https://raw.githubusercontent.com/tjoye20/vthreat-updates/master/updates.json" } }
Here's the latest-mac.json that Electron builder created for me:
{ "version": "2.0.0", "releaseDate": "2017-03-22T04:24:49.772Z", "url": "https://github.com/tjoye20/vthreat-updates/releases/download/v2.0.0/vthreat-2.0.0-mac.zip" }
from electron-simple-updater.
If you're interested, would you be open to doing a quick 30 min MAX screenshare to help me troubleshoot this?
from electron-simple-updater.
It seems that you have created latest-mac.json by yourself, not using electron-simple-publisher. It contains a wrong link to zip.
I'll be available tomorrow.
from electron-simple-updater.
Yeah, I changed it while troubleshooting because it wasn't working before. It didn't actually publish anything to the link it created.
What time, your time, are you available tomorrow?
from electron-simple-updater.
Between 9am and 15pm gmt+5
from electron-simple-updater.
Fixed! Thank you for taking the time to help me through this. Great work on this module.
from electron-simple-updater.
Related Issues (20)
- NSIS Support HOT 3
- checkForUpdates not responding HOT 7
- Could not create temporary directory HOT 2
- Squirrel.Windows DEPRECATED :( HOT 6
- Enable downgrading/rollback HOT 1
- Events 'update-not-available', 'update-available', etc. not firing Render HOT 6
- Update often fails on Raspberry Pi HOT 4
- Update is disabled because the app is not packaged HOT 4
- opt.logger.debug is not a function HOT 1
- What should be path of update for windows HOT 2
- Add User agent to request HOT 5
- Simple Updater: The Request was Aborted HOT 6
- Empty warning text HOT 2
- Support for download progress (important for slow connections) HOT 3
- Linux App image HOT 1
- cannot perform update "Update is disabled because the app is not packaged" HOT 3
- Where can i locate the downlaoded electron packages? HOT 2
- Stuck at downloading windows squirrel HOT 3
- Documentation for updates.json ? HOT 8
- File downloaded file gets truncated in linux if calling quitAndInstall. HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-simple-updater.