以下の内容はhttps://seinzumtode.hatenadiary.jp/entry/20150507/1430985335より取得しました。


electron(旧atom-shell)最速開発

http://qiita.com/sl2/items/66872c2df965d1ea575a

npm install electron-prebuilt
cd node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/
mkdir app && cd app #名前はappじゃないといけない→index.jsのrequire() で指定している
npm init

index.js

var app = require('app');
var BrowserWindow = require('browser-window');

var mainWindow = null;

app.on('window-all-closed', function() {
    if (process.platform != 'darwin') {
        app.quit();
    }
});

app.on('ready', function() {
    // メインウィンドウを作成
    mainWindow = new BrowserWindow({width: 1000, height: 600});
    // index.html を読み込む
    mainWindow.loadUrl('file://' + __dirname + '/index.html');
    mainWindow.on('closed', function() {
        mainWindow = null;
    });
});

index.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>hello</title>
</head>
<body>
  <h1>hello</h1>
</body>
</html>

Electron.appを開ける。

open ../../../../Electron.app/ #pwd => node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/app



以上の内容はhttps://seinzumtode.hatenadiary.jp/entry/20150507/1430985335より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14