Giter Club home page Giter Club logo

Comments (17)

megahertz avatar megahertz commented on July 20, 2024

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.

tjoye20 avatar tjoye20 commented on July 20, 2024

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.

tjoye20 avatar tjoye20 commented on July 20, 2024

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.

megahertz avatar megahertz commented on July 20, 2024

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.

tjoye20 avatar tjoye20 commented on July 20, 2024

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.

megahertz avatar megahertz commented on July 20, 2024

It should download json file, not dmg. Check your links. Or use electron-simple-publisher instead.

from electron-simple-updater.

tjoye20 avatar tjoye20 commented on July 20, 2024

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.

megahertz avatar megahertz commented on July 20, 2024

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.

tjoye20 avatar tjoye20 commented on July 20, 2024

Well, still struggling with this. I really appreciate your patience and your help tho. Thank you.

from electron-simple-updater.

megahertz avatar megahertz commented on July 20, 2024

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.

megahertz avatar megahertz commented on July 20, 2024

@tjoye20 How's your progress?

from electron-simple-updater.

tjoye20 avatar tjoye20 commented on July 20, 2024

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.

tjoye20 avatar tjoye20 commented on July 20, 2024

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.

megahertz avatar megahertz commented on July 20, 2024

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.

tjoye20 avatar tjoye20 commented on July 20, 2024

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.

megahertz avatar megahertz commented on July 20, 2024

Between 9am and 15pm gmt+5

from electron-simple-updater.

tjoye20 avatar tjoye20 commented on July 20, 2024

Fixed! Thank you for taking the time to help me through this. Great work on this module.

from electron-simple-updater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.