- 1 year ago
Electron JS App still has default Icons (.appx file built with electron-windows-store)
If your Electron JS app built with electron-windows-store
still has default icons after generating the .appx
package, it might be due to incorrect icon configuration or missing icon files. Here are some steps to troubleshoot and resolve the issue:
Verify Icon Configuration: Check your Electron app's
package.json
file and ensure that the icon configuration is set correctly. Thepackage.json
should include anicons
field that specifies the file paths for various icon sizes.Provide Icon Files: Make sure that you have the icon files available at the specified paths. The icon files should exist in the correct locations and have the required dimensions according to the icon configuration in the
package.json
. Verify that the icon files are properly named and have the correct file extensions (e.g.,.ico
,.png
).Rebuild the App Package: If you have made changes to the icon configuration or added/updated the icon files, you'll need to rebuild the
.appx
package usingelectron-windows-store
with the updated settings. Ensure that the rebuild process completes successfully without any errors.Clear App Cache: If you had previously installed and run the Electron app, it's possible that the icon cache is causing the default icons to still appear. Try uninstalling the app, clearing any related cache, and then reinstalling it to see if the custom icons show up correctly.
Test on a Different System: In some cases, the issue might be specific to the system where you are testing the app. Try running the app package on a different Windows machine to see if the custom icons are displayed correctly. This can help identify if the problem is related to the app package or the system configuration.
If the issue persists after following these steps, it might be helpful to review the documentation and support resources specific to electron-windows-store
for further guidance. Additionally, consider reaching out to the Electron JS community or the maintainers of the electron-windows-store
package for assistance with troubleshooting the icon issue in your Electron app.