Git Product home page Git Product logo

electron-gh-releases's People

Contributors

ekonstantinidis avatar jaybizzle avatar jenslind avatar maxcnunes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

electron-gh-releases's Issues

Windows architecture

How can I upload 32 and 64 bits nupkg? Do I have to use an special name? Grunt electron installer creates the same nupkg name. I've tried uploading 64 bits version only but it breaks 32 bits app. How do I handle both versions?

TypeError: Cannot read property 'autoUpdater' of undefined at install

Hello! When I'm trying to use updater.install() but it seems that updater is undefined. Here you can find the source code.

Details

  • Electron 1.0.2
  • electron-gh-releases 2.0.3 (Also tried 2.0.2)

Source Code

const updater = new GhReleases(autoUpdateOptions);

updater.on('error', (event, message) => {
  console.log('ERRORED.');
  console.log('Event: ' + JSON.stringify(event) + '. MESSAGE: ' + message);
});

updater.on('update-downloaded', (info) => {
  console.log('Update downloaded');
  confirmAutoUpdate(updater.install);
});

The Error

Uncaught Exception:
TypeError: Cannot read property 'autoUpdater' of undefined
    at install (/Applications/Gitify.app/Contents/Resources/app.asar/node_modules/electron-gh-releases/GhReleases.js:197:11)
    at Function.<anonymous> (/Applications/Gitify.app/Contents/Resources/app.asar/main.js:45:9)

Screenshots

The value of updater:
screen shot 2016-06-02 at 13 44 17

The error:
screen shot 2016-06-02 at 13 44 26

Update

It looks like it is actually updating the app but it still throws that error

Could not locate update bundle

I get this error after an update is downloaded. I see the log of update downloaded but "update-downloaded" event is never fired. I've checked the folder where zip should be and it's empty but something is downloaded and removed before the crash.

The full error is:

Could not locate update bundle for {appname} within file:///Users/{me}/Library/Application%20Support/{appname}.ShipIt/update.nQcEUZ3/: (null) at Error (native)

Any idea on what could be wrong? I'm using electron-release and electron-packager to package and upload to github.

API improvements

Instead of having access to auto_updater only in the callback when creating a new instance we should make sure it is returned instead.

So instead of how it works now, we should do something like this:

var update = new gh_releases(options)

// Electrons auto_updater instance
update.auto_updater

// Also, adding an downloaded event to gh_releases
update.on('downloaded', function (info, quitAndUpdate) {
  // Install the update
  quitAndUpdate()
})

Looks better ๐Ÿˆ

Usage Example Question

Hello.

New to developing Electron apps, so I'm not quite sure where the Usage Example would go - would it be in the electron app file, or my app's own index file?

Thanks.

Unable to get latest release tag from Github

I get this error after updating to electron 0.36.0.

This is the full error returned on _getLatestTag method:

{ [ReadError: unexpected end of file]
  code: 'Z_BUF_ERROR',
  message: 'unexpected end of file',
  host: 'github.com',
  hostname: 'github.com',
  method: 'HEAD',
  path: '/myapp/myapp-desktop/releases/latest' }

I updated electron trying to find if the issue with quitAndUpdate not working was fixed.

Facing the issue while updating the new version from gitHub.

Facing the issue while updating the new version from github.

Uncaught Exception:
Error: Code signature at URL file:///~/Library/Caches/com.electron.sample.ShipIt/update.3QUAiQg/sample.app/ did not pass validation: code object is not signed at all
    at Error (native)

The zipUrl ... is a invalid release URL

Hello there, I've been using electron-gh-releases for some time now (auto-updated about 4 new versions with success) for Gitify.

So the procedure I follow every time is:

  • Use electron-packager
  • Code sign the app
  • Compress the app

I'm about to release a new version of Gitify, reaching version 1.0.0 from 0.0.19 and I'm trying to test if the autoupdater works but it looks like it is not working. I've got a test repository with version 1.0.1 release(with a tag and auto_update.json).

In order to test it, I've also built version 1.0.0 but when it loads I'm getting the following error:

Error: The zipUrl (https://github.com/ekonstantinidis/gitify-test/releases/download/1.0.1/gitify-osx.zip) is a invalid release URL. Status: false

If you go to the zipUrl you will see that it is working fine. Any ideas on what could be wrong?

Ps. Thank you for the great work on the package!

no errors are caught

electron-gh-releases needs to use autoUpdater.on('error', cb) to catch update errors.

Enhancement: autodetect download URL

would it be possible to implement an option to [attempt] to autodetect the download based on the file name? for example, it could look for "osx" in the file name

Download error

Hi, I am not too sure if I'm doing anything wrong but this is the error I get when executing updater.check()

image

Any idea?

Publish the compiled files

Is there a reason you are not publishing the compiled files (ES5 support)?

Even being possible include this package in my babel configuration like this example below. I usually have seen people providing the compiled version.

"ignore": "/node_modules\/(?!electron-gh-releases)/"

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.