GithubHelp home page GithubHelp logo

grunt-download-electron's People

Contributors

50wliu avatar anaisbetts avatar brettle avatar ducky427 avatar gwwfps avatar kevinsawicki avatar maxbrunsfeld avatar mcolyer avatar shama avatar simtel12 avatar thedaniel avatar thehippo avatar zcbenz 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

Watchers

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

grunt-download-electron's Issues

Format for filename changed?

grunt-download-atom-shell has worked like a charm (thanks!) up until I tried to switch to 0.13.1. I appears it is looking for:

atom-shell-v0.13.1-darwin.zip

and the file is

atom-shell-v0.13.1-darwin-x64.zip

Logs:

Running "download-atom-shell" task
Verifying properties download-atom-shell.version, download-atom-shell.outputDir exist in config...OK
>> Cannot find atom-shell-v0.13.1-darwin.zip in atom-shell v0.13.1 release

And my config:

    'download-atom-shell':
      version: '0.13.1'
      outputDir: 'binaries'

Task creates Atom.app, should it be Electron.app?

I'm trying to migrate the build scripts for LightTable which is broken since the name change to Electron. In trying to be consistent and remove the mention of Atom everywhere, I notice that this task creates an Atom.app package. I was expecting an Electron.app directory...

I tried recreating this in a new project buy following the same steps LightTable does, and I get ./electron/Atom.app

Gruntfile.js

module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    "download-electron": {
      version: "0.22.1",
      outputDir: "./electron",
      rebuild: true
    }
  });

  grunt.loadNpmTasks('grunt-download-electron');

};

package.json

{
    "name": "martin",
        "version": "0.1.0",
        "devDependencies": {
            "grunt": "^0.4.5",
            "grunt-download-electron": "^2.0.0"
        }
}

Then I run

> npm install grunt-cli
> npm install
> ./node_modules/.bin/grunt download-electron

I'm running on
OSX 10.9,5

v0.8.0 fails to install atom-shell < v0.13.0 due to missing 'arch' in release filename

Background: I'm starting a new project and included the latest version of this plugin. It works fine for installing atom-shell v0.13.0+, but releases prior to that did not include '-arch' suffix in the release filename, and this change causes it to fail.

Repro: running v0.8.0 of this plugin and installing atom-shell v0.12.7 results in this error:
Cannot find atom-shell-v0.12.3-darwin-x64.zip in atom-shell v0.12.3 release

When you look at the github releases, you'll see the actual filename is atom-shell-v0.12.3-darwin.zip.

I switched back to ~0.7.0 to get this working, but I can submit a PR to make this backwards compatible if you'd like.

-Ben

Unable to download atom-shell releases.

Master branch is only able to download 'electron' releases, this makes it unable to download atom-shell v0.23 and older.
#24 is an attempt to fix it, but perhaps there's a better way.

Cross-platform downloads

It would be nice if this grunt task could be configured to download pre-built binaries for all supported platforms. This would allow to package applications, which don't have any binary modules, on any computer.

For node-webkit there is this excellent grunt plugin, which does this exactly this and also packages the executables with your HTML/JavaScript/CSS/... files: grunt-node-webkit-builder.

Atom Shell downloaded as non-executable

On Ubuntu 12.04, atom shell is downloaded but fails with Fatal error: spawn ENOENT. The atom binary is there but I can't run it until I do sudo chmod u+x ./atom-shell/atom. Then it seems to run as expected (I've not noticed any obvious problems).

Rebuilding native modules breaks the asar module.

It appears that grunt-download-atom-shell is not compatible with any project that uses asar [ asar, grunt-asar, etc].

After native modules have been built by the download-atom-shell task, any calls to the asar module will fail with "Warning: Module version mismatch. Expected 14, got 43. Use --force to continue."

This is a persistent error - asar must be reinstalled in order to work again.

Example files that can be used to demonstrate this:
Gruntfile.js: http://pastebin.com/RxgXFXhY
package.json: http://pastebin.com/UCyXEvD1

Use those, run npm install to get the modules installed, and then grunt -v - you should see the above error.

This appears related to apm rebuilding the version of chromium-pickle that asar uses, but I'm at a loss for workarounds.

spawn ENOENT on OSX

Hi,

I run into this error when executing grunt download-atom-shell on Mavericks:

Running "download-atom-shell" task
Fatal error: spawn ENOENT

The Atom.app package works as expected though my grunt tasks abort because of the error reports. Could be similar to #8?

I use node v0.10.31 and download-atom-shell v0.8.2.

Any help is appreciated.
Thanks!

Not downloading atom-shell

I've included the plugin inside my Gruntfile.js as specified in the readme, but when I run
grunt --verbose I only get:

Running "download-atom-shell" task
Verifying properties download-atom-shell.version, download-atom-shell.outputDir exist in config...OK

And that's it - it does not download anything, just stops after that one line.
I've tested this on Linux and OSX and got the same result.

use node-pre-gyp + npm

it would be super kewl if you could simply npm install atom-shell!

we do this for leveldb and have a package called leveldown-prebuilt that uses node-pre-gyp

most of the setup is in the package.json for that module (e.g. see the binary and scripts keys)

we host the binaries themselves using Releases https://github.com/mafintosh/leveldown-prebuilt/blob/master/package.json

currently the binaries in leveldown-prebuilt are hand compiled, but @springmeyer has some repos set up that use travis/appveyor to auto build new linux/windows binaries and upload them directly on successful builds

what the user sees if their platform doesnt have a prebuilt binary during npm install:

...
npm http 304 https://registry.npmjs.org/object-keys

> [email protected] install /Users/maxogden/src/js/dat/node_modules/leveldown-prebuilt
> node-pre-gyp install --fallback-to-build

node-pre-gyp http GET https://github.com/mafintosh/node-leveldown/releases/download/v0.10.2/leveldown-v0.10.3-node-v11-darwin-x64.tar.gz
node-pre-gyp http 404 https://github.com/mafintosh/node-leveldown/releases/download/v0.10.2/leveldown-v0.10.3-node-v11-darwin-x64.tar.gz
node-pre-gyp http Pre-built binary not available for your system (falling back to source compile with node-gyp) 
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/builder.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/db_impl.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/db_iter.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/filename.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/dbformat.o
...

otherwise they get:

...
npm http 304 https://registry.npmjs.org/object-keys

> [email protected] install /Users/maxogden/src/js/dat/node_modules/leveldown-prebuilt
> node-pre-gyp install --fallback-to-build

node-pre-gyp http GET https://github.com/mafintosh/node-leveldown/releases/download/v0.10.2/leveldown-v0.10.3-node-v11-darwin-x64.tar.gz
node-pre-gyp http 200 https://github.com/mafintosh/node-leveldown/releases/download/v0.10.2/leveldown-v0.10.3-node-v11-darwin-x64.tar.gz
[leveldown-prebuilt] Success: "/Users/maxogden/src/js/dat/node_modules/leveldown-prebuilt/build-pre-gyp/leveldown.node" is installed via remote
[email protected] node_modules/leveldown-prebuilt
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected] ([email protected])

cannot find atom-shell in download-atom-shell task

npm start

[email protected] start /Users/username/Documents/workspace/testapp3
grunt build && ./bin/Atom.app/Contents/MacOS/Atom ./app

Running "download-atom-shell" task

Cannot find atom-shell v0.12.7 from GitHub null
Warning: Task "download-atom-shell" failed. Use --force to continue.

Aborted due to warnings.

npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.12.0
npm ERR! npm v2.7.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: grunt build && ./bin/Atom.app/Contents/MacOS/Atom ./app
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the [email protected] start script 'grunt build && ./bin/Atom.app/Contents/MacOS/Atom ./app'.
npm ERR! This is most likely a problem with the test-atom-app package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! grunt build && ./bin/Atom.app/Contents/MacOS/Atom ./app
npm ERR! You can get their info via:
npm ERR! npm owner ls test-atom-app
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/username/Documents/workspace/testapp3/npm-debug.log

"Cannot find electron v0.22.1 from GitHub null" 'warning'

We're bumping the version of Electron anyways but this might be pertinent to others.

The error message:

Running "download-electron" task
>> Cannot find electron v0.22.1 from GitHub null
Warning: Task "download-electron" failed. Use --force to continue.

Aborted due to warnings.

We had some users report problems building our app. I couldn't initially reproduce, almost certainly because I already had the relevant version of Electron on my box.

I think I can reproduce the likely source of failure with curl. From my last comment on the issue from my project to which I linked above:

Interestingly, if I run curl https://api.github.com/repos/atom/electron/releases the last release listed in the result is v0.22.2. I suspect that the recent Electron releases – two in the last week alone – bumped the release we were using to the 'second page' of results. I ran curl https://api.github.com/repos/atom/electron/releases/tags/v0.22.1:

{
  "url": "https://api.github.com/repos/atom/electron/releases/1064349",
  "assets_url": "https://api.github.com/repos/atom/electron/releases/1064349/assets",
  "upload_url": "https://uploads.github.com/repos/atom/electron/releases/1064349/assets{?name}",
  "html_url": "https://github.com/atom/electron/releases/tag/v0.22.1",
  "id": 1064349,
  "tag_name": "v0.22.1",
  "target_commitish": "master",
  "name": "atom-shell v0.22.1",
  "draft": false,
  ...

Fatal error: CERT_UNTRUSTED

On ANTERGOS, however applies to Arch Linux in general currently.

Uname: 'Linux ANTERGOS 3.17.6-1-ARCH #1 SMP PREEMPT Sun Dec 7 23:43:32 UTC 2014 x86_64 GNU/Linux'

grunt -v in build/

Running "download-atom-shell" task
Verifying properties download-atom-shell.version, download-atom-shell.outputDir exist in config...OK
Fatal error: CERT_UNTRUSTED

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.