{"id":403,"date":"2015-08-26T14:57:56","date_gmt":"2015-08-26T05:57:56","guid":{"rendered":"http:\/\/tech.at-iroha.jp\/?p=403"},"modified":"2019-10-21T08:54:08","modified_gmt":"2019-10-20T23:54:08","slug":"electron-%e3%81%a7%e5%ae%9f%e7%8f%be%e3%81%99%e3%82%8b%e3%82%af%e3%83%ad%e3%82%b9%e3%83%97%e3%83%a9%e3%83%83%e3%83%88%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e3%81%aa%e3%83%87%e3%82%b9%e3%82%af%e3%83%88","status":"publish","type":"post","link":"https:\/\/tech.at-iroha.jp\/?p=403","title":{"rendered":"Electron \u3067\u5b9f\u73fe\u3059\u308b\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306a\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u958b\u767a"},"content":{"rendered":"\n<p>Electron \u3068\u306f(\u65e7\uff1aAtom Shell)\u3068\u306fHTML5\/JavaScript\u306a\u3069Web\u6280\u8853\u3067\u5b9f\u88c5\u3055\u308c\u305f\u30a2\u30d7\u30ea\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5b9f\u884c\u74b0\u5883\u3067\u3059\u3002<br>NW.js \u3068\u540c\u69d8\u306b\u3001Chrominum \u3068 Node.js \u3092\u30d9\u30fc\u30b9\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u6700\u8fd1\u3001Microsoft \u304b\u3089\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f Visual Studio Code \u3082 Electron \u3067\u958b\u767a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/electron.png\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"561\" src=\"http:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/electron-700x561.png\" alt=\"electron\" class=\"wp-image-532\" srcset=\"https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/electron-700x561.png 700w, https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/electron-1024x820.png 1024w, https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/electron.png 1064w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Adobe AIR&nbsp;\u3068\u306e\u985e\u4f3c\u6027<\/h2>\n\n\n\n<p>\u203bAdobe AIR \u3092\u3054\u5b58\u3058\u306a\u3044\u65b9\u306f\u8aad\u307f\u98db\u3070\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u304b\u3064\u3066 Adobe \u793e\u306f\u4e00\u3064\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5168\u3066\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u3067\u5b9f\u884c\u3055\u305b\u308b Open Screen Project \u3068\u3044\u3046\u91ce\u5fc3\u7684\u306a\u69cb\u60f3\u3092\u6301\u3063\u3066\u3044\u307e\u3057\u305f\u3002<br>\u5727\u5012\u7684\u306a\u666e\u53ca\u7387\u3068\u3001\u5f37\u529b\u306a\u958b\u767a\u74b0\u5883\u3092\u6301\u3064 Flash \u3092\u30d9\u30fc\u30b9\u306b\u30012008\u5e74\u306b\u540c\u6280\u8853\u3067\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u958b\u767a\u3067\u304d\u308b Adobe AIR \u304c\u767a\u8868\u3055\u308c\u307e\u3057\u305f\u3002<br>(Adobe AIR \u304c\u767a\u8868\u3055\u308c\u305f\u6642\u306e\u8208\u596e\u306f\u4eca\u3067\u3082\u899a\u3048\u3066\u3044\u307e\u3059\u3002\u305d\u308c\u306f\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u9577\u5e74\u306e\u5922\u3092\u5b9f\u73fe\u3059\u308b\u3082\u306e\u3067\u3057\u305f\u3002)<br>Action Script \u3067\u66f8\u304b\u308c\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f Windows\u3001Mac\u3001Linux\u3001Web\u30d6\u30e9\u30a6\u30b6\u3068\u3042\u3089\u3086\u308b\u74b0\u5883\u3067\u8efd\u5feb\u306b\u52d5\u4f5c\u3057\u3001\u305d\u308c\u306f\u30b9\u30de\u30fc\u30c8\u30c7\u30d0\u30a4\u30b9\u3067\u3082\u5b9f\u73fe\u3059\u308b\u304b\u306b\u898b\u3048\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u7d50\u5c40\u305d\u306e\u76ee\u8ad6\u898b\u306f\u3001Apple \u793e(\u7279\u306b\u30b9\u30c6\u30a3\u30fc\u30d6\u30fb\u30b8\u30e7\u30d6\u30ba\u6c0f\u306e\u610f\u5411)\u306b\u963b\u307e\u308c\u3001\u305d\u306e\u5f8c\u306f\u6025\u901f\u306b\u52e2\u3044\u3092\u5931\u3063\u3066\u3044\u304d\u307e\u3057\u305f\u3002<br>Adobe \u4e00\u793e\u306b\u504f\u308a\u3059\u304e\u305f\u6226\u7565\u3084\u3001\u96fb\u529b\u6d88\u8cbb\u306e\u5927\u304d\u3044\u30d7\u30e9\u30b0\u30a4\u30f3\u65b9\u5f0f\u304c\u6d88\u8cbb\u8005\u3084\u696d\u754c\u306b\u53d7\u3051\u3044\u3089\u308c\u306a\u304b\u3063\u305f\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br>\u3057\u304b\u3057\u4eca\u3001\u304b\u3064\u3066\u306e Open Screen Project \u304c\u5225\u306e\u6280\u8853\u3067\u5b9f\u73fe\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u3059\u3002JavaScript\u3067\u3059\u3002<br>JavaScript \u306f\u53e4\u304f\u304b\u3089Web\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u52d5\u4f5c\u3059\u308b\u6a19\u6e96\u7684\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u3068\u3057\u3066\u9032\u5316\u3092\u7d9a\u3051\u3066\u304d\u307e\u3057\u305f\u3002\u305d\u306e\u5fdc\u7528\u7bc4\u56f2\u306f\u62e1\u5927\u306e\u4e00\u9014\u3092\u305f\u3069\u308a\u3001\u65e2\u306b\u591a\u304f\u306e\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306e\u30a2\u30d7\u30ea\u958b\u767a\u306a\u3069\u306b\u3082\u63a1\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u3057\u3066\u4eca\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u3082 JavaScript \u3067\u958b\u767a\u3059\u308b\u52d5\u304d\u304c\u8d77\u3053\u308a\u3064\u3064\u3042\u308a\u307e\u3059\u3002<br>JavaScript \u3067\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u3001\u4eca\u3001\u6700\u3082\u6ce8\u76ee\u3055\u308c\u3066\u3044\u308b\u306e\u304c Electron \u3067\u3059\u3002<br>(Flash\/Adobe AIR \u3092\u77e5\u3063\u3066\u3044\u308b\u4eba\u306f JavaScript \u3092 ActionScript \u306b\u3001Chrominum \u3092 Flash Player \u306b\u7f6e\u304d\u63db\u3048\u308b\u3068\u30b9\u30e0\u30fc\u30ba\u306b\u7406\u89e3\u3067\u304d\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Electron \u3067\u958b\u767a\u3059\u308b\u30e1\u30ea\u30c3\u30c8<\/h2>\n\n\n\n<p>Electron \u306f HTML\/JavaScript \u306e\u30b3\u30fc\u30c9\u306b\u3001\u305d\u308c\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e Chromium(Google \u4e3b\u5c0e\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306eWeb\u30d6\u30e9\u30a6\u30b6)\u3092\u30d0\u30f3\u30c9\u30eb\u3057\u3066\u914d\u5e03\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u958b\u767a\u8005\u306f\u5b9f\u884c\u74b0\u5883\u306e\u9055\u3044\u3092\u610f\u8b58\u305b\u305a\u306b\u958b\u767a\u3092\u884c\u3046\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002Electron \u306f Windows, Mac, Linux \u3068\u4e3b\u8981\u306a\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u5411\u3051OS\u306f\u307b\u307c\u5168\u3066\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001HTML\/JavaScript \u3060\u3051\u3067\u5b9f\u73fe\u3067\u304d\u306a\u3044\u30cd\u30a4\u30c6\u30a3\u30d6\u306e\u591a\u304f\u306e\u6a5f\u80fd\u3082\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u3057\u3066\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br>\u307e\u305f\u65e2\u5b58\u306e\u81a8\u5927\u306a JavaScript \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30d5\u30eb\u306b\u6d3b\u304b\u3057\u3066\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u30a2\u30d7\u30ea\u306e\u5927\u90e8\u5206\u306e\u30b3\u30fc\u30c9\u3092\u5171\u901a\u5316\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Electron \u306e\u6a5f\u80fd<\/h2>\n\n\n\n<p>Electron \u306b\u306f\u69d8\u3005\u306a\u6a5f\u80fd\u3084\u30c4\u30fc\u30eb\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4e3b\u306a\u3082\u306e\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u81ea\u52d5\u66f4\u65b0\u6a5f\u80fd<\/li><li>\u30af\u30e9\u30c3\u30b7\u30e5\u30ec\u30dd\u30fc\u30c6\u30a3\u30f3\u30b0\u6a5f\u80fd<\/li><li>Windows \u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u306e\u4f5c\u6210\u30c4\u30fc\u30eb<\/li><li>\u30c7\u30d0\u30c3\u30b0\u53ca\u3073\u5370\u5237\u6a5f\u80fd<\/li><li>\u30cd\u30a4\u30c6\u30a3\u30d6\u30e1\u30cb\u30e5\u30fc\u3084\u901a\u77e5\u6a5f\u80fd<\/li><\/ul>\n\n\n\n<p>\u307e\u305f\u305d\u306e\u4ed6\u306b\u3082 Node.js \u3067\u66f8\u304b\u308c\u305f\u69d8\u3005\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u516c\u5f0f\u30b5\u30a4\u30c8\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttp:\/\/electron.atom.io\/docs\/\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/github.com\/atom\/electron\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Electron \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p>Electron \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f Node.js \u306e npm \u30b3\u30de\u30f3\u30c9\u3067\u884c\u3044\u307e\u3059\u3002npm (Node Pacakge Manager) \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u4e8b\u524d\u306b Node.js \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>Node.js &nbsp;&nbsp;<a href=\"https:\/\/nodejs.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/nodejs.org\/<\/a><\/p>\n\n\n\n<p>1. \u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067Electron \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br><del>npm install electron-prebuilt -g<br><\/del><span style=\"color: #ff0000;\">\u203b 2019.10.21 electron-prebuilt \u306f deprecated \u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/span><\/p>\n\n\n\n<p>npm install electron -g<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Electron \u306b\u3088\u308b\u958b\u767a<\/h2>\n\n\n\n<p>Hello World \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Hello World \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u6210\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\n\/app\/\n|-- package.json\n|-- main.js\n|-- index.html\n<\/pre><\/pre>\n\n\n\n<p>package.json<br>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n{\n  \"name\"    : \"hello-world\",\n  \"version\" : \"0.1.0\",\n  \"main\"    : \"main.js\"\n}\n<\/pre><\/pre>\n\n\n\n<p>main.js<br>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u6642\u306b\u6700\u521d\u306b\u8aad\u307f\u8fbc\u307e\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nvar app = require('app');  \/\/ Module to control application life.\nvar BrowserWindow = require('browser-window');  \/\/ Module to create native browser window.\n\n\/\/ Report crashes to our server.\nrequire('crash-reporter').start();\n\n\/\/ Keep a global reference of the window object, if you don't, the window will\n\/\/ be closed automatically when the JavaScript object is GCed.\nvar mainWindow = null;\n\n\/\/ Quit when all windows are closed.\napp.on('window-all-closed', function() {\n  \/\/ On OS X it is common for applications and their menu bar\n  \/\/ to stay active until the user quits explicitly with Cmd + Q\n  if (process.platform != 'darwin') {\n    app.quit();\n  }\n});\n\n\/\/ This method will be called when Electron has finished\n\/\/ initialization and is ready to create browser windows.\napp.on('ready', function() {\n  \/\/ Create the browser window.\n  mainWindow = new BrowserWindow({width: 800, height: 600});\n\n  \/\/ and load the index.html of the app.\n  mainWindow.loadUrl('file:\/\/' + __dirname + '\/index.html');\n\n  \/\/ Open the devtools.\n  mainWindow.openDevTools();\n\n  \/\/ Emitted when the window is closed.\n  mainWindow.on('closed', function() {\n    \/\/ Dereference the window object, usually you would store windows\n    \/\/ in an array if your app supports multi windows, this is the time\n    \/\/ when you should delete the corresponding element.\n    mainWindow = null;\n  });\n});\n<\/pre><\/pre>\n\n\n\n<p>index.html<br>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u6642\u306b\u8868\u793a\u3055\u308c\u308bHTML\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002main.js \u304b\u3089\u8aad\u307f\u8fbc\u307e\u308c\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&amp;lt;!DOCTYPE html&gt;\n&amp;lt;html&gt;\n &amp;lt;head&gt;\n &amp;lt;title&gt;Hello World!&amp;lt;\/title&gt;\n &amp;lt;\/head&gt;\n &amp;lt;body&gt;\n &amp;lt;h1&gt;Hello World!&amp;lt;\/h1&gt;\n We are using io.js &amp;lt;script&gt;document.write(process.version)&amp;lt;\/script&gt;\n and Electron &amp;lt;script&gt;document.write(process.versions&#x5B;&#039;electron&#039;])&amp;lt;\/script&gt;.\n &amp;lt;\/body&gt;\n&amp;lt;\/html&gt;\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u884c<\/h2>\n\n\n\n<p>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\nelectron app\n<\/pre><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/2015-08-26-15.16.03.png\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"406\" src=\"http:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/2015-08-26-15.16.03-700x406.png\" alt=\"2015-08-26 15.16.03\" class=\"wp-image-533\" srcset=\"https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/2015-08-26-15.16.03-700x406.png 700w, https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/2015-08-26-15.16.03.png 843w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"525\" src=\"http:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/2015-08-26-14.54.47-700x525.png\" alt=\"2015-08-26 14.54.47\" class=\"wp-image-529\" srcset=\"https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/2015-08-26-14.54.47-700x525.png 700w, https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/2015-08-26-14.54.47.png 800w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>\u8d77\u52d5\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<br><\/p>\n\n\n\n<p>\u5f8c\u306f\u901a\u5e38\u306e&nbsp;HTML\/JavaScript \u306b\u3088\u308b\u958b\u767a\u3068\u5909\u308f\u308a\u307e\u305b\u3093\u3002<br>\u30c7\u30d0\u30c3\u30ac\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306e\u306f\u3001main.js \u4ee5\u4e0b\u306e\u884c\u304c\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002\u3053\u306e\u884c\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u3053\u3068\u3067\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: jscript; first-line: 30; title: ; notranslate\" title=\"\">\nmainWindow.openDevTools();\n<\/pre><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Electron \u30a2\u30d7\u30ea\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30f3\u30b0<\/h2>\n\n\n\n<p>\/dist\/ \u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>1. \u7ba1\u7406\u8005\u30e2\u30fc\u30c9\u3067\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3(cmd.exe)\u3092\u958b\u304d\u3001\u4f5c\u696d\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>2. electron-packager \u3092\u30a4\u30f3\u30b9\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\nnpm install electron-packager -g\n<\/pre><\/pre>\n\n\n\n<p>3. \u30d1\u30c3\u30b1\u30fc\u30b8\u30f3\u30b0\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Windows 32\u30d3\u30c3\u30c8\u7248\u3092\u30d1\u30c3\u30b1\u30fc\u30b8\u30f3\u30b0<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\nelectron-packager .\/app \"hello-world\" --out=dist --platform=win32 --arch=ia32 --version=0.25.3\n<\/pre><\/pre>\n\n\n\n<p>Windows\/Mac \u306e64\u30d3\u30c3\u30c8\u7248\u3092\u30d1\u30c3\u30b1\u30fc\u30b8\u30f3\u30b0<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\nelectron-packager .\/app \"hello-world\" --out=dist --platform=darwin,win32 --arch=x64 --version=0.25.3\n<\/pre><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"497\" src=\"http:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/2015-08-26-14.47.42-700x497.png\" alt=\"2015-08-26 14.47.42\" class=\"wp-image-528\" srcset=\"https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/2015-08-26-14.47.42-700x497.png 700w, https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/2015-08-26-14.47.42.png 843w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u30f3\u30b0\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u30d5\u30a9\u30eb\u30c0\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\n\/dist\/\n|-- \/hello-world-darwin-x64\/ (Mac OSX \u7248)\n|-- \/hello-world-win32-ia32\/ (Windows 32\u30d3\u30c3\u30c8\u7248)\n|-- \/hello-world-win32-x64\/ (Windows 64\u30d3\u30c3\u30c8\u7248)\n<\/pre><\/pre>\n\n\n\n<p>\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u914d\u5e03\u3059\u308b\u3053\u3068\u3067\u4ed6\u306e\u74b0\u5883\u3067\u3082\u5b9f\u884c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/electron_folder.png\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"557\" src=\"http:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/electron_folder-700x557.png\" alt=\"electron_folder\" class=\"wp-image-578\" srcset=\"https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/electron_folder-700x557.png 700w, https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2015\/08\/electron_folder.png 774w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/figure>\n\n\n\n<p>hello-world-win32-x64 \u30d5\u30a9\u30eb\u30c0\u306e\u5185\u5bb9<br><br>hello-world.exe \u306b\u3066\u5b9f\u884c\u53ef\u80fd\u3002\u305d\u306e\u4ed6\u306e\u30d5\u30a1\u30a4\u30eb\u3082\u30e9\u30f3\u30bf\u30a4\u30e0\u30d5\u30a1\u30a4\u30eb\u3068\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u306b Electron \u306b\u3066\u4ee5\u4e0b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><a href=\"http:\/\/www.at-iroha.jp\/irohanote2-alpha#download\">iroha Note 2.0 (\u30d9\u30fc\u30bf\u7248)<\/a><\/p>\n\n\n\n<p>\u307e\u305f Electron \u3067\u958b\u767a\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e Windows \u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u306e\u4f5c\u6210\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3082\u307e\u3068\u3081\u307e\u3057\u305f\u3002<br>\u300c<a href=\"http:\/\/tech.at-iroha.jp\/?p=548\">Electron \u3067\u958b\u767a\u3057\u305f\u30a2\u30d7\u30ea\u306e Windows\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u306e\u4f5c\u6210<\/a>\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Electron \u3068\u306f(\u65e7\uff1aAtom Shell)\u3068\u306fHTML5\/JavaScript\u306a\u3069Web\u6280\u8853\u3067\u5b9f\u88c5\u3055\u308c\u305f\u30a2\u30d7\u30ea\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5b9f\u884c\u74b0\u5883\u3067\u3059\u3002NW.js \u3068\u540c\u69d8\u306b\u3001Chrominum \u3068 No [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":532,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,12],"tags":[],"class_list":["post-403","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electron","category-html5js"],"_links":{"self":[{"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/posts\/403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=403"}],"version-history":[{"count":41,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/posts\/403\/revisions"}],"predecessor-version":[{"id":1138,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/posts\/403\/revisions\/1138"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/media\/532"}],"wp:attachment":[{"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}