{"id":3563,"date":"2024-02-25T00:38:01","date_gmt":"2024-02-24T15:38:01","guid":{"rendered":"https:\/\/test.ji0vwl.net\/?p=3563"},"modified":"2024-03-18T21:29:32","modified_gmt":"2024-03-18T12:29:32","slug":"mac%e3%81%a7-electron-forge-react-mui-%e3%81%a7pc%e3%82%a2%e3%83%97%e3%83%aa%e3%82%92%e4%bd%9c%e3%82%8b%ef%bc%88%e3%81%9d%e3%81%ae%ef%bc%91%ef%bc%89","status":"publish","type":"post","link":"https:\/\/ji0vwl.net\/index.php\/2024\/02\/25\/3563\/","title":{"rendered":"Mac\u3068 Electron Forge + React + MUI \u3067PC\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\uff08\u305d\u306e\uff11\uff09"},"content":{"rendered":"<p>CW Freak.NET \u306e\u958b\u767a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308b.NET Framework\u306e\u66f4\u65b0\u304c\u4eca\u5f8c\u884c\u308f\u308c\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u6b21\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u691c\u8a0e\u3057\u3066\u3044\u307e\u3059\u3002\u5f8c\u7d99\u306e.NET Maui\u304c\u672c\u547d\u304b\u3068\u8003\u3048\u3066\u3044\u307e\u3057\u305f\u304c\u30012\u5e74\u304f\u3089\u3044\u7d4c\u3063\u3066\u3082\u306a\u304b\u306a\u304b\u666e\u53ca\u3057\u3066\u6765\u306a\u3044\u306e\u3067\u3061\u3087\u3063\u3068\u307e\u3060\u65e9\u3044\u304b\u306a\u3068\u3044\u3046\u30a4\u30e1\u30fc\u30b8\u3002<\/p>\n<p>\u305d\u3053\u3067\u4eca\u56de\u306f\u6bd4\u8f03\u7684\u6b74\u53f2\u306e\u9577\u304f\u5b89\u5b9a\u3057\u3066\u3044\u305d\u3046\u306a\u3001Web\u30a2\u30d7\u30ea\u3092PC\u30a2\u30d7\u30ea\u5316\u3067\u304d\u308bElectron\u3092\u8ef8\u306b\u518d\u691c\u8a0e\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u6b21\u70b9\u306fFlutter\u3067\u3059\u304c\u307e\u3060\u89e6\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>.NET\u306eVisual Studio\u3068\u6bd4\u8f03\u3057\u3066\u3057\u307e\u3046\u3068Electron\u306f\u958b\u767a\u74b0\u5883\u3092\u7528\u610f\u3059\u308b\u306e\u304c\u304b\u306a\u308a\u9762\u5012\u306a\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u8a66\u3057\u3066\u307f\u305f\u306e\u306f\u3001<a href=\"https:\/\/www.electronforge.io\">Electron Forge<\/a> \u3068\u3044\u3046\u914d\u5e03\u65b9\u6cd5\u307e\u3067\u4e00\u62ec\u63d0\u4f9b\u3055\u308c\u305fElectron\u958b\u767a\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3059\u3002\u3068\u306f\u3044\u3048Visual Studio\u306b\u6bd4\u3079\u308c\u3070\u624b\u9593\u3067\u3059\u304c\u3002UI\u306fReact\u3067\u3001\u30c7\u30d5\u30a1\u30af\u30c8\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\uff1f\u306eUI\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308bMUI\u3092\u5c0e\u5165\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u958b\u767a\u74b0\u5883\uff1a<br \/>\n\u30fbMacBook Pro 2019\u3001macOS Sonoma 14.2.1<br \/>\n\u30fbElectron 29.0.1<br \/>\n\u30fbNode.js <span class=\"s1\">v18.19.1<\/span><br \/>\n\u30fbnpm <span class=\"s1\">10.2.4<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089Node.js (npm)\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\nHomebrew\u3084Nodebrew\u304c\u5165\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u5148\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>$ \/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"\r\n$ brew install nodebrew<\/pre>\n<pre>$ nodebrew setup\r\n$ <span class=\"nb\">echo<\/span> <span class=\"s1\">'export PATH=$HOME\/.nodebrew\/current\/bin:$PATH'<\/span> <span class=\"o\">&gt;&gt;<\/span> ~\/.zshrc\r\n$ <span class=\"nb\">source<\/span> ~\/.zshrc\r\n$ nodebrew ls-remote\r\n. .\r\n. .\r\nv18.18.0 v18.18.1 v18.18.2 v18.19.0 v18.19.1\r\n. .\r\n. .\r\n$ sudo nodebrew install-binary v18.19.1\r\n$ nodebrew list\r\nv18.19.1\r\n$ nodebrew use v18.19.1\r\n$ node -v\r\nv18.19.1\r\n$ npm -v\r\n10.2.4\r\n<\/pre>\n<p>Electron\u958b\u767a\u7528\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u308a\u3001\u4e2d\u306bElectron Forge\u3067my-app\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u307e\u3059<\/p>\n<p>(\u203b2024\/3\/18 <a href=\"https:\/\/kinsta.com\/jp\/blog\/vite-vs-webpack\/\">webpack \u2192 vite\u306b\u5909\u66f4<\/a>)<\/p>\n<pre>$ mkdir electron\r\n$ cd electron\r\n$ npm init electron-app@latest my-app -- --template=vite-typescript<\/pre>\n<p>\u3068\u308a\u3042\u3048\u305a\u8d77\u52d5<\/p>\n<pre>$ cd my-app\r\n$ npm start<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3580\" src=\"https:\/\/test.ji0vwl.net\/wp-content\/uploads\/2024\/02\/b088175e9d91b54f1e2ba3e2359ab9d0-800x625.png\" alt=\"\" width=\"800\" height=\"625\" srcset=\"https:\/\/ji0vwl.net\/wp-content\/uploads\/2024\/02\/b088175e9d91b54f1e2ba3e2359ab9d0-800x625.png 800w, https:\/\/ji0vwl.net\/wp-content\/uploads\/2024\/02\/b088175e9d91b54f1e2ba3e2359ab9d0-1024x799.png 1024w, https:\/\/ji0vwl.net\/wp-content\/uploads\/2024\/02\/b088175e9d91b54f1e2ba3e2359ab9d0-150x117.png 150w, https:\/\/ji0vwl.net\/wp-content\/uploads\/2024\/02\/b088175e9d91b54f1e2ba3e2359ab9d0-768x600.png 768w, https:\/\/ji0vwl.net\/wp-content\/uploads\/2024\/02\/b088175e9d91b54f1e2ba3e2359ab9d0-1536x1199.png 1536w, https:\/\/ji0vwl.net\/wp-content\/uploads\/2024\/02\/b088175e9d91b54f1e2ba3e2359ab9d0.png 1824w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089ctrl+C\u3067\u3001\u4e00\u65e6\u30a2\u30d7\u30ea\u3092\u7d42\u4e86\u3057\u307e\u3059\u3002<br \/>\n\u6b21\u306bReact\u3092\u5c0e\u5165\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/test.ji0vwl.net\/index.php\/2024\/02\/25\/3593\/\">Mac\u3068 Electron Forge + React + MUI \u3067PC\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\uff08\u305d\u306e\uff12\uff09<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CW Freak.NET \u306e\u958b\u767a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308b.NET Framework\u306e\u66f4\u65b0\u304c\u4eca\u5f8c\u884c\u308f\u308c\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u6b21\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u691c\u8a0e\u3057\u3066\u3044\u307e\u3059\u3002\u5f8c\u7d99\u306e.NET Maui\u304c\u672c\u547d\u304b\u3068\u8003\u3048\u3066\u3044\u307e\u3057\u305f\u304c\u30012\u5e74\u304f\u3089\u3044\u7d4c\u3063\u3066 &hellip; <a href=\"https:\/\/ji0vwl.net\/index.php\/2024\/02\/25\/3563\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Mac\u3068 Electron Forge + React + MUI \u3067PC\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\uff08\u305d\u306e\uff11\uff09<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,19],"tags":[],"class_list":["post-3563","post","type-post","status-publish","format-standard","hentry","category-electron","category-19"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/posts\/3563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/comments?post=3563"}],"version-history":[{"count":0,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/posts\/3563\/revisions"}],"wp:attachment":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/media?parent=3563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/categories?post=3563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/tags?post=3563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}