{"id":68324,"date":"2019-03-25T09:41:21","date_gmt":"2019-03-25T00:41:21","guid":{"rendered":"https:\/\/www.softantenna.com\/wp\/?p=68324"},"modified":"2019-03-25T09:41:24","modified_gmt":"2019-03-25T00:41:24","slug":"deskgap","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/deskgap\/","title":{"rendered":"DeskGap - \u30b7\u30b9\u30c6\u30e0\u306eWebView\u3092\u5229\u7528\u3057\u305f\u8efd\u91cf\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u4f5c\u6210\u7528\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/03\/s_20190320_190409.jpg\" alt=\"S 20190320 190409\" title=\"s_20190320_190409.jpg\" border=\"0\" width=\"848\" height=\"560\" \/><\/p>\n<p>\u6700\u8fd1HTML\u3084JavaScript\u3001CSS\u3068\u3044\u3063\u305fWeb\u6280\u8853\u3092\u6d3b\u7528\u3057\u3066\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u4eba\u6c17\u3092\u96c6\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>GitHub\u306eElectron\u306f\u305d\u306e\u4ee3\u8868\u683c\u3067\u3059\u304c\u3001\u30e9\u30f3\u30bf\u30a4\u30e0\u3068\u3057\u3066Chromium\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u542b\u3080\u305f\u3081\u3001\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u304c\u304b\u306a\u308a\u5927\u304d\u304f\u306a\u308b\u306e\u304c\u5f31\u70b9\u3068\u3044\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/deskgap.com\/\">DeskGap<\/a>\u300d\u306f\u3001\u305d\u306e\u5f31\u70b9\u3092\u89e3\u6d88\u3059\u308b\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5bfe\u5fdc\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u4f5c\u6210\u7528\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002<\/p>\n<p>HTML\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u30a8\u30f3\u30b8\u30f3\u306e\u304b\u308f\u308a\u306b\u3001OS\u306b\u642d\u8f09\u3055\u308c\u305f\u30b7\u30b9\u30c6\u30e0\u306eWebView\u3092\u6d3b\u7528\u3059\u308b\u8efd\u91cf\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u4f7f\u7528\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>DeskGap\u306e\u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>DeskGap\u3067\u3069\u306e\u3088\u3046\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u4f5c\u6210\u3067\u304d\u308b\u306e\u304b\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u3001\u300cAPI Demos\u300d\u30a2\u30d7\u30ea\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5b9f\u884c\u3059\u308b\u306e\u304c\u7c21\u5358\u3067\u3059\u3002<a href=\"https:\/\/github.com\/patr0nus\/DeskGap\/releases\">GitHub<\/a>\u304b\u3089macOS\/Linux\/Windows\u7528\u306e\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30e2\u30a2\u30d7\u30ea\u3067\u306fDeskGap\u306e\u52d5\u4f5c\u3068\u5bfe\u5fdc\u3059\u308b\u30b3\u30fc\u30c9\u3092\u540c\u6642\u306b\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/03\/s_20190320_190520.jpg\" alt=\"S 20190320 190520\" title=\"s_20190320_190520.jpg\" border=\"0\" width=\"848\" height=\"560\" \/><\/p>\n<p>\u25b2\u300cMenu\u300d\u3067\u306f\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u306e\u4f5c\u6210\u65b9\u6cd5\u304c\u5206\u304b\u308a\u307e\u3059\u3002\u300cRun\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u753b\u9762\u4e0a\u306b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/03\/s_20190320_190538.jpg\" alt=\"S 20190320 190538\" title=\"s_20190320_190538.jpg\" border=\"0\" width=\"848\" height=\"560\" \/><\/p>\n<p>\u25b2\u300cdialog\u300d\u3067\u306f\u30c0\u30a4\u30a2\u30ed\u30b0\u306e\u8868\u793a\u65b9\u6cd5\u304c\u89e3\u8aac\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/03\/s_20190320_190642.jpg\" alt=\"S 20190320 190642\" title=\"s_20190320_190642.jpg\" border=\"0\" width=\"848\" height=\"560\" \/><\/p>\n<p>\u25b2\u300cBrowser Window\u300d\u306b\u306f\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30b5\u30a4\u30ba\u3084\u4f4d\u7f6e\u306e\u5236\u5fa1\u3092\u884c\u3046\u30b3\u30fc\u30c9\u304c\u63b2\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u6e96\u5099\u3057\u307e\u3059\u3002<\/p>\n<pre>\nhello-deskgap\/\n\u251c\u2500\u2500 package.json\n\u251c\u2500\u2500 index.js\n\u2514\u2500\u2500 index.html\n<\/pre>\n<p><strong>package.json<\/strong>: \u30a2\u30d7\u30ea\u306b\u542b\u307e\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6210\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre>\n{\n  \"name\": \"hello-deskgap\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"deskgap .\"\n  }\n}\n<\/pre>\n<p><strong>index.js<\/strong>: HTML\u30da\u30fc\u30b8\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f5c\u6210\u3059\u308b\u30a8\u30f3\u30c8\u30ea\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<pre>\nconst { app, BrowserWindow } = require('deskgap');\n\napp.once('ready', () => {\n    const win = new BrowserWindow();\n    win.loadFile('index.html');\n});\n<\/pre>\n<p><strong>index.html<\/strong>: \u8868\u793a\u3059\u308b\u30da\u30fc\u30b8\u3067\u3059\u3002<\/p>\n<pre>\n&lt;!DOCTYPE&nbsp;html&gt;\n&lt;html&gt;\n&nbsp;&nbsp;&lt;head&gt;&lt;meta&nbsp;charset=\"utf-8\"&nbsp;\/&gt;&lt;title&gt;Hello&nbsp;DeskGap&lt;\/title&gt;&lt;\/head&gt;\n&nbsp;&nbsp;&lt;body&gt;&lt;h1&gt;Hello&nbsp;DeskGap&lt;\/h1&gt;&lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n<p>\u3053\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u6e96\u5099\u3057\u305f\u3089\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>\nnpm install --save-dev deskgap\nnpm start\n<\/pre>\n<p>\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/03\/s_20190321_163211.jpg\" alt=\"S 20190321 163211\" title=\"s_20190321_163211.jpg\" border=\"0\" width=\"880\" height=\"659\" \/><\/p>\n<p>\u3053\u3053\u304b\u3089\u5148\u306f<a href=\"https:\/\/deskgap.com\/api\/\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u53c2\u7167\u3057\u3066\u4f5c\u696d\u3092\u9032\u3081\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>DeskGap\u306fWebView\u3092\u5229\u7528\u3057\u305f\u8efd\u91cf\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u4f5c\u6210\u7528\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002<a href=\"https:\/\/electronjs.org\/\">Electron<\/a>\u3068\u7570\u306a\u308a\u8efd\u91cf\u3067\u3001<a href=\"https:\/\/github.com\/pojala\/electrino\">electrino<\/a>\u3084<a href=\"https:\/\/github.com\/jscherer92\/Quark\">Quark<\/a>\u3068\u3044\u3063\u305f\u540c\u7a2e\u306e\u8efd\u91cf\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u6bd4\u8f03\u3059\u308b\u3068\u3001Node.js\u306e\u30e9\u30f3\u30bf\u30a4\u30e0\u304c\u30d0\u30f3\u30c9\u30eb\u3055\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u7279\u5fb4\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u3060\u958b\u767a\u9014\u4e2d\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u304c\u3001\u4eca\u5f8c\u306b\u671f\u5f85\u3067\u304d\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u3044\u3048\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1HTML\u3084JavaScript\u3001CSS\u3068\u3044\u3063\u305fWeb\u6280\u8853\u3092\u6d3b\u7528\u3057\u3066\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u4eba\u6c17\u3092\u96c6\u3081\u3066\u3044\u307e\u3059\u3002 GitHub\u306eElectron\u306f\u305d\u306e\u4ee3\u8868\u683c\u3067\u3059\u304c\u3001\u30e9\u30f3\u30bf\u30a4\u30e0\u3068\u3057\u3066Chro [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":68406,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3459],"tags":[1214],"class_list":["post-68324","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-desktop"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/68324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=68324"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/68324\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/68406"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=68324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=68324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=68324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}