ãã¤ã¦ãelectron-packageでMacアプリを書き出す際の調査結果ãã¾ã¨ãã¾ããã
ä»åã¯ãWindowsã¢ããªãã¼ã¸ã§ã³ã§ãã
試ãããã¨
ã¾ãã¯ãåç´ã«ã
electron-packager . 'ã¢ããªå' --icon=icon.png --platform=win32 --arch=x64
ã¨ãpngãã¡ã¤ã«ãæå®ããã¨ããã
WARNING: Could not find icon "appicon.ico", not updating app icon
ã¨ãããWARNINGãåºã¾ããã
pngãæå®ããã®ã«icoãæ¢ãã«è¡ãã®ãè¥å¹²è¬ã§ããã確ãã«Windowsã®ã¢ã¤ã³ã³ã¨ããã°icoãã¡ã¤ã«ãªã®ã§ãicoãã¡ã¤ã«ãç¨æãã¦ã
electron-packager . 'ã¢ããªå' --icon=icon.ico --platform=win32 --arch=x64
ãå®è¡ãã¦ã¿ã¾ããã
ããã¨ã
Reserved header is not 0 or image type is not icon for 'appicon.ico'
Fatal error: Unable to set icon
ã¨ããã¨ã©ã¼ãåºã¾ããã
ã¨ã©ã¼ã調ã¹ã¦ã¿ãã¨ãelectron-builderのIssueã«ä¼¼ããããªäºä¾ãã
解決çãæ¢ãã¨ãpngããicoã«å¤æããéã« このサイト ã使ãã¨è¯ãã¨ã®åçãã
試ãã¦ã¿ãããã¨ã©ã¼ãæ¶ãç¡äºã«ã¢ã¤ã³ã³ãè¨å®ã§ãã¾ããã
ãã¾ã¾ã§ãpngãã¡ã¤ã«ãicoãã¡ã¤ã«ã«å¤æããéã¯ãMicrosoftãã¤ã³ãã§pngãã¡ã¤ã«ãBMPãã¡ã¤ã«ã¨ãã¦ä¿åãã¦ãæ¡å¼µåãicoã«å¤æ´ãã¦ããã®ã§ãããä»åã¯ããã ã¨ãã¾ãããã¾ããã§ããã
ãã ãMicrosoftãã¤ã³ã製ã®icoãã¡ã¤ã«ã¯faviconã¨ãã¦ãã使ã£ã¦ããªãã£ãã®ã§ããããããã¨ãã©ã¦ã¶ãããæãã«å¦çãã¦ããã¦ããã ããªã®ãããããªãã§ãã
ã¾ã¨ã
ⶠこのサイト ãªã©ã§pngãicoã«å¤æãã
â· electron-packager . 'ã¢ããªå' --icon=icon.ico --platform=win32 --arch=x64 ã§ã¢ããªãæ¸ãåºã
ã§ãWindowsã¢ããªã«ã¢ã¤ã³ã³ãè¨å®ãããã¨ãã§ãã¾ããã