Atom-Shell 入门 现在已经有很多框架可以让我们用JavaScript、HTML和CSS来编写跨平台桌面应用,Atom Shell便是其中之一。... We are using node.js document.write(process.version) and atom-shell document.write(process.versions['atom-shell'])....\atom-shell\atom.exe your-app\ Linux: ./atom-shell/atom your-app/ Mac OS X: ....然后把atom-shell文件夹压缩打包分发给用户即可。 如果你用的打包工具是grunt,那么可以用grunt-download-atom-shell来自动下载对应平台的Atom Shell。
我想了一下,几乎毫不犹豫地推荐了node-webkit, 但又想起前段时间看到的atom-shell,于是也推荐了下atom-shell,随手写了个atom-shell的例子给他。...= 'darwin') app.quit(); }); // This method will be called when atom-shell has done everything //
上一篇文章写了一个简单的PingDemo应用,今天参照atom-shell的文档将那个应用打包到mac应用,试了多久终于成功了,记录一下。...atom-shell的文档上讲mac下应用是这样的 To distribute your app with atom-shell, you should name the folder of your...app as app, and put it under atom-shell’s resources directory (on OS X it is Atom.app/Contents/Resources.../, and on Linux and Windows it is resources/), like this: On Mac OS X: atom-shell/Atom.app/Contents.../Resources/app/ ├── package.json ├── main.js └── index.html On Windows and Linux: atom-shell/resources
在Electron中使用需要重新构建 npm rebuild --runtime=electron --target=1.1.3 --disturl=https://atom.io/download/atom-shell...--abi=72 整体的命令就是 npm rebuild --runtime=electron --target=6.0.12 --disturl=https://atom.io/download/atom-shell...package.json 中 "rebuild": "npm rebuild --runtime=electron --target=6.0.12 --disturl=https://atom.io/download/atom-shell
vsc是用atom-shell(现在叫electron)写的,这玩意和node-webkit(现在叫nw.js)一样,都是把node.js和chrome结合起来的工具,所以可以这么使用。
node-gyp rebuild --runtime=electron --target_arch=ia32 --target=1.7.11 --disturl=https://atom.io/download/atom-shell
如果我们想针对electron进行编译的话,可以使用下面的命令 npm rebuild --runtime=electron --disturl=https://atom.io/download/atom-shell
编辑器嵌入 Node.js 实践 https://speakerdeck.com/zcbenz/practice-on-embedding-node-dot-js-into-atom-editor atom-shell
桌面系统的领地,被node-webkit,atom-shell等一大票基于CEF [5] 的chrome衍生品也攻克了。
Greenworks: node-gyp rebuild --target= --arch=x64 --dist-url=https://atom.io/download/atom-shell
electron-rebuild npm install --save-dev electron-rebuild 设置下npm export npm_config_disturl=https://atom.io/download/atom-shell
而 Atom 是 GitHub 在 2014 年发布的一款基于 Web 技术构建的文本编辑器,其中 atom-shell,也就是后来的 Electron,是和 NW.js 类似的技术。
Electron 的前身叫做 Atom-Shell,本来是 GitHub 发布开源编辑器 Atom 时一并发布的副产物,但是后来这个副产物的影响力远远的超过了 Atom 本身,于是便改名为一个独立专案,
跨平台的桌面app基本上就是在nw.js(前身node-webkit)和eletron(前身atom-shell)中选择。两者都是基于webkit打造,技术上差别不大。
Electron 原名 Atom-Shell,是 Github 为 Atom 编辑器编写的一个开源框架。
领取专属 10元无门槛券
手把手带您无忧上云