Giter VIP home page Giter VIP logo

electron-chrome's Introduction

electron-chrome

Run Chrome apps in Electron. (Because Google thought it would be a good idea to kill Chrome apps.)

This is basically an incomplete polyfill on the Chrome APIs.

Install

git clone https://github.com/koush/electron-chrome.git
cd electron-chrome
npm install

Electron is required, and is not installed by the npm install. Install by running npm install -g electron or yarn global add electron.

Run:

electron --enable-logging . --app-dir=/path/to/chrome-app/

Or run directly from the chrome store, by providing a chrome store app id. This will also download updates as they become available. For example, to run Vysor from the Chrome store:

electron --enable-logging . --app-id=gidgenkbbabolejbgbpnhbimgjbffefm

Build Installer (must be run on host platform, Mac or Windows. Linux not supported.):

npm run package -- --app-dir=/path/to/chrome/app/

Goals

Chrome apps are being phased out on all platforms but ChromeOS.

I want to continue distributing Chrome apps (Vysor) on the Chrome store (which works on ChromeOS). After the phase out, this project will allow an simple way to distribute and run Chrome apps on desktop systems. Directly from the Chrome store, including automatic updates.

Having to build and distribute a 100MB+ Electron binary per platform, per app update is not ideal. So runtime and app updates will be decoupled from the Electron update, and from each other. Ideally, the updates to Chrome apps running on electron-chrome are just the CRX that you get from the Chrome store, or the handful of runtime files which polyfill the chrome.* API.

Mostly implemented:

chrome.identity

chrome.desktopCapture

chrome.storage.local

chrome.notifications

chrome.app.window

Want to implement:

chrome.usb

Not implemented (and no plans to implement):

chrome.socket: This Chrome API is kinda crap. I ended up wrapping it with my own, and then wrapped node.js Socket as well.

electron-chrome's People

Contributors

bpaterak avatar gwpantazes avatar koush 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  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

electron-chrome's Issues

npm install command failed, can not donwload tmp-12655-0-electron-v4.2.2-linux-x64.zip.

i install electron-chrome and execute "npm install" command, and got 502 error:

[email protected] postinstall /home/songsz/electron-chrome/electron-chrome/node_modules/electron
node install.js

Downloading tmp-12655-0-electron-v4.2.2-linux-x64.zip
Error: GET https://github.com/electron/electron/releases/download/v4.2.2/electron-v4.2.2-linux-x64.zip returned 502
/home/songsz/electron-chrome/electron-chrome/node_modules/electron/install.js:49
throw err
^

Error: GET https://github.com/electron/electron/releases/download/v4.2.2/electron-v4.2.2-linux-x64.zip returned 502

Apps won't run

Running electron 1.4.15 and I followed the steps exactly in the readme, but upon running (post-install):
electron --enable-logging . --app-id=gidgenkbbabolejbgbpnhbimgjbffefm

the terminal just displays

using chrome runtime 1.2.8
and spits me back into input mode.

Electron fails to build on Ubuntu 16.04

Ubuntu 16.04

apt-get install npm
git clone https://github.com/koush/electron-chrome.git
cd electron-chrome
npm install

npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm ERR! Linux 4.4.0-51-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] postinstall: node install.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electron-prebuilt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs electron-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls electron-prebuilt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /opt/electron/electron-chrome/npm-debug.log

npm-debug.txt

Did something change?

I have an app published with this utility that stopped receiving auto-updates recently, does anyone know if the restriction imposed by Google on the 21st effected this tool?

Thanks!

installation failure

Hi,

Installation fails on a debian jessie system:

11474 error [email protected] postinstall: node install.js
11474 error Exit status 127
11475 error Failed at the [email protected] postinstall script.
11475 error This is most likely a problem with the electron-prebuilt package,
11475 error not with npm itself.
11475 error Tell the author that this fails on your system:
11475 error node install.js
11475 error You can get their info via:
11475 error npm owner ls electron-prebuilt
11475 error There is likely additional logging output above.
11476 error System Linux 4.8.6-040806-generic
11477 error command "/usr/bin/nodejs" "/usr/bin/npm" "install"
11478 error cwd /home/gia-admin/electron-chrome
11479 error node -v v0.10.29
11480 error npm -v 1.4.21
11481 error code ELIFECYCLE
11482 verbose exit [ 1, true ]

chrome.fileSystem progress?

I know this API was mentioned in some articles covering electron-chrome ... is there still a plan to implement it?

nwjs?

Is there any reason why you didn't just use nw.js? It already supports all the chrome.* APIs...

chrome.sockets api

Is the chrome.sockets api going to be implemented? You said you do not plan to implement chrome.socket but this is different from chrome.sockets. If we could get chrome.sockets available, then we could use this tool to convert Web Server for Chrome (Which I think is the best and easiest web server)

Install problem

When I run "npm install" on my Debian system, I get:

npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No license field.
npm WARN package.json [email protected] No license field.
npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'types/node' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'electron'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm install fails on Ubuntu 16.04

I installed npm with sudo apt-get install npm. I then ran the command: npm install in the electron-chrome directory. It failed, and suggested I include this log in a bug report:
npm-debug.txt

Note: Github wouldn't let me upload it with the .log extension, so I changed it to .txt.

I assume the error has to do with apt installing an older version of npm. Since this is outside my domain, could you suggest how to install a newer version?

chrome.hid

Does the plan to support chrome.usb include a plan to support chrome.hid?

Distribute app as executable

Hi! I don't know if this is the place to ask for help...

I want to distribute an app in the chrome store, but I don't want that the user needs to put commands or install packages. I want to give them an executable (or an install program) with all stuff and when the user executes it, the app will be downloaded from the chrome store and executed. I don't know if the program is cached then to access in local until there's a new version.

I've seen this project, and it seems to make something similar. Can it be used to accomplish that? I've made my program compatible with Electron, so this part is done.

Thanks!

Windows 10 cmd issue

I try to run electron in the cmd, but it just open the electron builder window and telling me to drag the app in it, but what it need?
When I used
electron.exe --enable-logging . --app-id=gidgenkbbabolejbgbpnhbimgjbffefm
then I just got an error.
Anyone know why?

Black Screen (Vysor - Arch Linux - KDE)

I have already installed Vysor as an app in Google Chrome. Its working fine. When I'm running Vysor using electron-chrome it connects to phone and also navigation through the app working fine, only problem is it shows a blank screen, my phone screen is not mirroring. Can you guide me through how to find the solution please..

Could you update the script to support the latest Electron

After I update electron to 6.0.10, I resolved all the deprecated function. But there remains a problem I cannot deal with.

"Uncaught TypeError: Cannot read property 'runtime' of undefined", source: chrome-extension://gidgenkbbabolejbgbpnhbimgjbffefm/main.js (8)

It seems that the chrome app cannot run properly. If you have time, please kindly update the script or provide me with some info to solve the problem. Thanks!

Failed at the [email protected] start script

I ran into this error message while running npm start.
I have node v9.9.0 and npm v5.6.0

Here is the complete log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]: [email protected]
6 info lifecycle [email protected]: [email protected]
7 verbose lifecycle [email protected]: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/bb/Documents/electron-chrome/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
9 verbose lifecycle [email protected]: CWD: /home/bb/Documents/electron-chrome
10 silly lifecycle [email protected]: Args: [ '-c', 'electron .' ]
11 silly lifecycle [email protected]: Returned: code: 1 signal: null
12 info lifecycle [email protected]: Failed to exec start script
13 verbose stack Error: [email protected] start: electron .
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
13 verbose stack at EventEmitter.emit (events.js:180:13)
13 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:180:13)
13 verbose stack at maybeClose (internal/child_process.js:936:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
14 verbose pkgid [email protected]
15 verbose cwd /home/bb/Documents/electron-chrome
16 verbose Linux 4.13.0-37-generic
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
18 verbose node v9.8.0
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: electron .
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Cannot read property 'runtimeId' of undefined

Trying to run electron-chrome with Vysor (using the --app-id flag) results in the following startup log for me:

using chrome runtime 1.0.7
embedded null found
app not installed, fetching...
App threw an error during load
TypeError: Cannot read property 'runtimeId' of undefined
    at /Users/simon/Documents/personal/electron-chrome/chrome/main/start.js:123:52
    at Object.<anonymous> (/Users/simon/Documents/personal/electron-chrome/chrome/main/start.js:225:3)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.exports.start (/Users/simon/Documents/personal/electron-chrome/chrome/index.js:36:5)

The app can't start since Electron gets stuck with the error message in a popup.

Environment:
Node: 6.5.0
Electron: 1.3.5

What could I be doing wrong?

Implementation Question

First, @koush, thanks a bunch for all the effort here. This is a really helpful project.

Just what I hope is a quick question on practical implementation here... assuming I'm intending to continue to develop Chrome App and create downstream installs in Electron for Windows and OS X.

I have an app I need to open with no frame and need to disable resizing. Something like this in pure Electron:

   BrowserWindow({
        frame: false,
        resizable: false,
        width: 300,
        height: 700
    });

Any idea on what the best way to allow our packager to pick up and deploy these customizations without having to hack up the package each time?

identity

https://github.com/koush/electron-chrome/blob/master/chrome/api/chrome-identity/index.js#L215

It seems that the code here doesn't work for 3rd party OAuth identification

Maybe a better workaround is to use BrowserWindow to open the url.

const authWindow = new BrowserWindow(windowParams)
authWindow.loadURL(url)
authWindow.show()
safeRegister(remote.getCurrentWindow(), authWindow.webContents, (e, url) => {
  authCallback(null, url)
  setImmediate(function () {
    authWindow.close()
  })
}, 'will-navigate')
// register the same handler for `did-get-redirect-request` event

Error converting Signal app via app-id

I am trying to convert the Signal Chrome Extension (https://chrome.google.com/webstore/detail/signal-private-messenger/bikioccmkafdpakkkcpdbppfkghcmihk?hl=en) to Electron using your tool and I get the following error in a pop up window

Uncaught Exception:
TypeError: Cannot read property 'map' of undefined
    at Function.<anonymous> (/home/thesheriff/apps/Electron-Chrome/electron-chrome/chrome/main/start.js:222:11)

The resulting windows that appear do not have the Signal app (or any of its assets that are visible) and so I am not sure what I am doing wrong :/

I am running Xubuntu 16.04 and I made sure I had the most updated version of NPM, Nodejs and this repo.

I am guessing this extension will require saving things to the local system, so I was expecting some issues given that the filesystem API isn't ported yet. Anyway, any information you can give to help out would be AWESOME. Thanks again Koush for another amazing contribution to the community and I apologize for my inexperience (the idea of converting Chrome extensions into pure desktop apps is too intriguing to me to not tinker with). Thanks again!

Installation problem

I don't see where the error is, maybe someone can have a look.
Here is the verbose output of npm install: https://paste.ee/p/3CMuS

I'm sorry that I can't describe the problem 😞

I just found #24 so I updated node to 8.5 and npm to 5.3. But after another try to install it still didn't worked. Seems to be another problem(?)

Installation failure with electron-chrome

$ npm install

> [email protected] postinstall /home/shark/StandaloneApp/electron-chrome/node_modules/electron
> node install.js

/home/shark/StandaloneApp/electron-chrome/node_modules/electron/install.js:46
  throw err
  ^

Error: ENOENT: no such file or directory, lstat '/home/shark/StandaloneApp/electron-chrome/node_modules/electron/dist/resources'
[email protected] /home/shark/StandaloneApp/electron-chrome
├── [email protected] 
├─┬ [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ ├─┬ [email protected] 
│ │ │ │ ├── [email protected]  deduped
│ │ │ │ └── [email protected] 
│ │ │ ├── [email protected] 
│ │ │ ├── [email protected]  deduped
│ │ │ ├─┬ [email protected] 
│ │ │ │ └── [email protected]  deduped
│ │ │ └── [email protected]  deduped
│ │ ├─┬ [email protected] 
│ │ │ └─┬ [email protected] 
│ │ │   ├── [email protected] 
│ │ │   └── [email protected] 
│ │ ├── [email protected]  deduped
│ │ ├─┬ [email protected] 
│ │ │ ├─┬ [email protected] 
│ │ │ │ ├─┬ [email protected] 
│ │ │ │ │ ├── [email protected] 
│ │ │ │ │ └─┬ [email protected] 
│ │ │ │ │   └── [email protected] 
│ │ │ │ ├── [email protected]  deduped
│ │ │ │ ├── [email protected] 
│ │ │ │ ├─┬ [email protected] 
│ │ │ │ │ └── [email protected] 
│ │ │ │ ├── [email protected] 
│ │ │ │ ├─┬ [email protected] 
│ │ │ │ │ ├── [email protected]  deduped
│ │ │ │ │ ├── [email protected]  deduped
│ │ │ │ │ ├── [email protected] 
│ │ │ │ │ └── [email protected] 
│ │ │ │ └─┬ [email protected] 
│ │ │ │   └─┬ [email protected] 
│ │ │ │     └── [email protected]  deduped
│ │ │ ├─┬ [email protected] 
│ │ │ │ ├── [email protected]  deduped
│ │ │ │ ├── [email protected]  deduped
│ │ │ │ ├── [email protected]  deduped
│ │ │ │ ├── [email protected]  deduped
│ │ │ │ └── [email protected]  deduped
│ │ │ └─┬ [email protected] 
│ │ │   ├── [email protected] 
│ │ │   ├── [email protected] 
│ │ │   ├── [email protected] 
│ │ │   ├─┬ [email protected] 
│ │ │   │ └── [email protected] 
│ │ │   ├── [email protected] 
│ │ │   ├── [email protected] 
│ │ │   ├─┬ [email protected] 
│ │ │   │ ├── [email protected] 
│ │ │   │ ├── [email protected]  deduped
│ │ │   │ └── [email protected]  deduped
│ │ │   ├─┬ [email protected] 
│ │ │   │ ├─┬ [email protected] 
│ │ │   │ │ ├── [email protected] 
│ │ │   │ │ └─┬ [email protected] 
│ │ │   │ │   └── [email protected] 
│ │ │   │ └── [email protected] 
│ │ │   ├─┬ [email protected] 
│ │ │   │ ├─┬ [email protected] 
│ │ │   │ │ └── [email protected]  deduped
│ │ │   │ ├─┬ [email protected] 
│ │ │   │ │ └── [email protected]  deduped
│ │ │   │ ├── [email protected] 
│ │ │   │ └─┬ [email protected] 
│ │ │   │   └── [email protected]  deduped
│ │ │   ├─┬ [email protected] 
│ │ │   │ ├── [email protected] 
│ │ │   │ ├─┬ [email protected] 
│ │ │   │ │ ├── [email protected] 
│ │ │   │ │ ├── [email protected] 
│ │ │   │ │ ├── [email protected] 
│ │ │   │ │ └─┬ [email protected] 
│ │ │   │ │   └── [email protected]  deduped
│ │ │   │ └─┬ [email protected] 
│ │ │   │   ├── [email protected] 
│ │ │   │   ├── [email protected] 
│ │ │   │   ├─┬ [email protected] 
│ │ │   │   │ └── [email protected]  deduped
│ │ │   │   ├─┬ [email protected] 
│ │ │   │   │ └── [email protected] 
│ │ │   │   ├─┬ [email protected] 
│ │ │   │   │ └── [email protected]  deduped
│ │ │   │   ├─┬ [email protected] 
│ │ │   │   │ └── [email protected] 
│ │ │   │   ├─┬ [email protected] 
│ │ │   │   │ └── [email protected]  deduped
│ │ │   │   ├── [email protected] 
│ │ │   │   └── [email protected] 
│ │ │   ├── [email protected] 
│ │ │   ├── [email protected] 
│ │ │   ├── [email protected] 
│ │ │   ├─┬ [email protected] 
│ │ │   │ └── [email protected] 
│ │ │   ├── [email protected] 
│ │ │   ├── [email protected] 
│ │ │   ├── [email protected] 
│ │ │   ├── [email protected] 
│ │ │   ├── [email protected] 
│ │ │   ├─┬ [email protected] 
│ │ │   │ └── [email protected] 
│ │ │   ├─┬ [email protected] 
│ │ │   │ └── [email protected]  deduped
│ │ │   └── [email protected] 
│ │ └─┬ [email protected] 
│ │   └── [email protected]  deduped
│ ├─┬ [email protected] 
│ │ └── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected]  deduped
│ │ ├── [email protected]  deduped
│ │ ├── [email protected]  deduped
│ │ ├─┬ [email protected] 
│ │ │ ├── [email protected]  deduped
│ │ │ ├── [email protected] 
│ │ │ ├─┬ [email protected] 
│ │ │ │ ├── [email protected] 
│ │ │ │ └─┬ [email protected] 
│ │ │ │   ├─┬ [email protected] 
│ │ │ │   │ ├── [email protected] 
│ │ │ │   │ └── [email protected]  deduped
│ │ │ │   ├── [email protected] 
│ │ │ │   ├─┬ [email protected] 
│ │ │ │   │ ├─┬ [email protected] 
│ │ │ │   │ │ └── [email protected] 
│ │ │ │   │ └── [email protected] 
│ │ │ │   ├── [email protected] 
│ │ │ │   ├── [email protected] 
│ │ │ │   ├── [email protected]  deduped
│ │ │ │   ├── [email protected] 
│ │ │ │   ├─┬ [email protected] 
│ │ │ │   │ ├─┬ [email protected] 
│ │ │ │   │ │ ├─┬ [email protected] 
│ │ │ │   │ │ │ └── [email protected]  deduped
│ │ │ │   │ │ └─┬ [email protected] 
│ │ │ │   │ │   └── [email protected] 
│ │ │ │   │ └─┬ [email protected] 
│ │ │ │   │   ├─┬ [email protected] 
│ │ │ │   │   │ ├── [email protected]  deduped
│ │ │ │   │   │ ├── [email protected]  deduped
│ │ │ │   │   │ ├── [email protected]  deduped
│ │ │ │   │   │ ├── [email protected]  deduped
│ │ │ │   │   │ └─┬ [email protected] 
│ │ │ │   │   │   └── [email protected] 
│ │ │ │   │   ├── [email protected]  deduped
│ │ │ │   │   └─┬ [email protected] 
│ │ │ │   │     ├── [email protected]  deduped
│ │ │ │   │     ├── [email protected]  deduped
│ │ │ │   │     └── [email protected]  deduped
│ │ │ │   ├─┬ [email protected] 
│ │ │ │   │ ├─┬ [email protected] 
│ │ │ │   │ │ └─┬ [email protected] 
│ │ │ │   │ │   └─┬ [email protected] 
│ │ │ │   │ │     └── [email protected]  deduped
│ │ │ │   │ └─┬ [email protected] 
│ │ │ │   │   └── [email protected]  deduped
│ │ │ │   └── [email protected] 
│ │ │ ├─┬ [email protected] 
│ │ │ │ ├── [email protected] 
│ │ │ │ └─┬ [email protected] 
│ │ │ │   ├── [email protected]  deduped
│ │ │ │   └─┬ [email protected] 
│ │ │ │     └── [email protected] 
│ │ │ ├── [email protected]  deduped
│ │ │ ├─┬ [email protected] 
│ │ │ │ └─┬ [email protected] 
│ │ │ │   ├── [email protected] 
│ │ │ │   ├─┬ [email protected] 
│ │ │ │   │ └── [email protected] 
│ │ │ │   └─┬ [email protected] 
│ │ │ │     └── [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ ├── [email protected] 
│ │ │ ├── [email protected] 
│ │ │ ├── [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected]  deduped
│ │ └─┬ [email protected] 
│ │   └── [email protected]  deduped
│ ├─┬ [email protected] 
│ │ ├── [email protected]  deduped
│ │ ├── [email protected] 
│ │ ├── [email protected]  deduped
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected]  deduped
│ │ └─┬ [email protected] 
│ │   ├── [email protected]  deduped
│ │   └── [email protected] 
│ ├─┬ [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ ├── [email protected]  deduped
│ │ │ ├─┬ [email protected] 
│ │ │ │ ├── [email protected] 
│ │ │ │ ├── [email protected] 
│ │ │ │ ├── [email protected]  deduped
│ │ │ │ ├── [email protected] 
│ │ │ │ ├── [email protected] 
│ │ │ │ ├─┬ [email protected] 
│ │ │ │ │ └── [email protected]  deduped
│ │ │ │ └── [email protected] 
│ │ │ └── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected]  deduped
│ │ └─┬ [email protected] 
│ │   └─┬ [email protected] 
│ │     └── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ └─┬ [email protected] 
│ │   └── [email protected]  deduped
│ ├─┬ [email protected] 
│ │ ├── [email protected]  deduped
│ │ ├── [email protected]  deduped
│ │ ├── [email protected] 
│ │ └─┬ [email protected] 
│ │   ├─┬ [email protected] 
│ │   │ └─┬ [email protected] 
│ │   │   ├─┬ [email protected] 
│ │   │   │ └── [email protected] 
│ │   │   └── [email protected] 
│ │   └─┬ [email protected] 
│ │     ├─┬ [email protected] 
│ │     │ ├── [email protected]  deduped
│ │     │ ├─┬ [email protected] 
│ │     │ │ └─┬ [email protected] 
│ │     │ │   └── [email protected] 
│ │     │ ├── [email protected] 
│ │     │ └── [email protected] 
│ │     ├─┬ [email protected] 
│ │     │ ├── [email protected] 
│ │     │ ├─┬ [email protected] 
│ │     │ │ └── [email protected] 
│ │     │ ├── [email protected]  deduped
│ │     │ └─┬ [email protected] 
│ │     │   ├─┬ [email protected] 
│ │     │   │ └── [email protected] 
│ │     │   └── [email protected] 
│ │     └─┬ [email protected] 
│ │       └── [email protected]  deduped
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ └─┬ [email protected] 
│ │   └── [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ └── [email protected]  deduped
├─┬ [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected]  deduped
│ │ ├── [email protected]  deduped
│ │ ├─┬ [email protected] 
│ │ │ ├── [email protected]  deduped
│ │ │ ├── [email protected]  deduped
│ │ │ ├── [email protected]  deduped
│ │ │ ├── [email protected]  deduped
│ │ │ └── [email protected]  deduped
│ │ ├── [email protected]  deduped
│ │ ├── [email protected]  deduped
│ │ └── [email protected]  deduped
│ ├── [email protected] 
│ ├── [email protected]  deduped
│ ├─┬ [email protected] 
│ │ ├── [email protected]  deduped
│ │ ├── [email protected]  deduped
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected]  deduped
│ │ ├── [email protected] 
│ │ └─┬ [email protected] 
│ │   └─┬ [email protected] 
│ │     ├── [email protected] 
│ │     ├── [email protected]  deduped
│ │     ├── [email protected]  deduped
│ │     ├── [email protected]  deduped
│ │     ├── [email protected]  deduped
│ │     └── [email protected]  deduped
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ └─┬ [email protected] 
│ │   └── [email protected]  deduped
│ └─┬ [email protected] 
│   ├── [email protected] 
│   └── [email protected] 
├─┬ [email protected] 
│ └── [email protected] 
└── [email protected] 

npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls electron
npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/shark/.npm/_logs/2017-04-30T09_49_07_748Z-debug.log

2017-04-30T09_49_07_748Z-debug.log

USB Support

Just as a question how long would it take to implement the USB Support ??

chrome.syncfilesystem

I notice in the readme that chrome.filesystem is believed to be a fairly trivial update that is on the dev roadmap.

Will chrome.syncfilesystem be included in this merge/fix? Or is that either (a) additional work or (b) not something that will be possible given what I expect would be a required tie in to chrome.identity?

Error on elementary OS Loki Beta 2

bgiesing@bgiesing-Aspire-ZC-700G:~/Documents/electron-chrome-master$ electron . --app-id=gidgenkbbabolejbgbpnhbimgjbffefm
Gtk-Message: Failed to load module "pantheon-filechooser-module"
using chrome runtime 1.0.0.2
chrome app id gidgenkbbabolejbgbpnhbimgjbffefm
{ Error: ENOENT: no such file or directory, scandir '/home/bgiesing/.config/electron-chrome/crx/gidgenkbbabolejbgbpnhbimgjbffefm'
    at Error (native)
    at Object.fs.readdirSync (fs.js:951:18)
    at Object.fs.readdirSync (ELECTRON_ASAR.js:570:28)
    at getLatestInstalledCrx (/home/bgiesing/Documents/electron-chrome-master/chrome/api/chrome-update.js:144:28)
    at Object.unpackLatestInstalledCrx (/home/bgiesing/Documents/electron-chrome-master/chrome/api/chrome-update.js:153:21)
    at /home/bgiesing/Documents/electron-chrome-master/chrome/main/start.js:37:55
    at Object.<anonymous> (/home/bgiesing/Documents/electron-chrome-master/chrome/main/start.js:140:3)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: '/home/bgiesing/.config/electron-chrome/crx/gidgenkbbabolejbgbpnhbimgjbffefm' }
starting runtime

Not sure what the issue is but it opens the Electron Dev console window and that error appears in the terminal.

Local build & CORS issue

If I try to execute my app from my pc (not from store), I get this error:

"./node_modules/.bin/electron" --enable-logging . --app-dir= "/home/vignesh/OFFICIAL/workspace/chrome/app" [9609:0830/170753:ERROR:browser_main_loop.cc(231)] Running without the SUID sandbox! See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the sandbox on. using chrome runtime 1.0.0.3 starting chrome app at /home/vignesh/OFFICIAL/workspace/chrome/app no key in manifest, please provide an --app-id

If I try to execute the app from the store, it runs and when I do signin in my app (XMLHttpRequest),

"./node_modules/.bin/electron" --enable-logging . --app-id="dlpjljhdpgignbioilieekedeodphhfh"

I get this error:

[10230:0830/173927:INFO:CONSOLE(0)] "XMLHttpRequest cannot load https://empsense.ramco.com/auth/signin. Response for preflight has invalid HTTP status code 404", source: chrome-extension://dlpjljhdpgignbioilieekedeodphhfh/index.html#/app/register (0)

But the thing is the app works well as a chrome app (without any cors issue)

Any help is appreciated.
Thanks in advance.

Support for Chrome Extensions?

I tried running this on a Chrome Extension and I get the following:

using chrome runtime 1.0.0.3
starting chrome app at ../build
chrome app id aliibbbfcilolackhjmkgdikmipbiemp
starting runtime
[39664:0903/171506:INFO:CONSOLE(15)] "appId aliibbbfcilolackhjmkgdikmipbiemp", source: C:\Projects\Recall-ext\electron-chrome\chrome\api \chrome-runtime.js (15)
[39664:0903/171506:INFO:CONSOLE(39)] "chrome runtime started", source: C:\Projects\Recall-ext\electron-chrome\chrome\api\chrome-runtime.js (39)
[39664:0903/171506:INFO:CONSOLE(263)] "initialized", source: C:\Projects\Recall-ext\electron-chrome\chrome\api\chrome-runtime.js (263)
[39664:0903/171506:INFO:CONSOLE(64)] "creating window", source: C:\Projects\Recall-ext\electron-chrome\chrome\api\chrome-app.js (64)
[39664:0903/171506:INFO:CONSOLE(230)] "Uncaught (in promise) TypeError: Cannot read property 'background' of undefined", source: C:\Projects\Recall-ext\electron-chrome\chrome\api\chrome-runtime.js (230)

I know this wasn't created for converting apps, but could it be done with minor modification or would it be a big project?

Could someone explain how to use this? (NOOB alert)

I have a Chrome App, Boxy SVG, than I want to convert to an electron app on an armhf Debian machine. (Raspberry Pi)

It's .crx has been extracted, and the containing folder is located at /home/pi/Desktop/3.33.2_0.
Inside 3.33.2_0, there are all the App's files, including manifest.json.

From the $HOME folder, I've run these commands:

git clone https://github.com/koush/electron-chrome.git
cd electron-chrome
npm install

This command seemed to exit with errors:

pi@raspberrypi:~/electron-chrome $ sudo npm install -g electron
/usr/bin/electron -> /usr/lib/node_modules/electron/cli.js
npm WARN lifecycle The node binary used for scripts is /usr/local/bin/node but npm is using /usr/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
[...]
Error: EACCES: permission denied, mkdtemp '/usr/lib/node_modules/electron/electron-download-KQ0oj5'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-07-01T14_40_12_944Z-debug.log

But here's where I'm having trouble:

$ electron --enable-logging . --app-dir=/home/pi/Desktop/3.33.2_0
bash: electron: command not found

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.