electron-chrome

  • 所有者: koush/electron-chrome
  • 平台:
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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
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.

主要指标

概览
名称与所有者koush/electron-chrome
主编程语言JavaScript
编程语言JavaScript (语言数: 5)
平台
许可证Other
所有者活动
创建于2016-08-23 03:24:37
推送于2021-06-09 17:56:31
最后一次提交2020-03-21 09:50:16
发布数0
用户参与
星数1k
关注者数52
派生数55
提交数156
已启用问题?
问题数42
打开的问题数18
拉请求数2
打开的拉请求数12
关闭的拉请求数6
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?