I haven't figured out if there's a way to do this across platforms without modifying package.json manually before building, but this works well enough and barely adds any overhead. electron-icon-maker -input=svgx-logo-v3-1024.png -output=./appicons Step 3īack in the Electron app directory, add the appropriate icon path to package.json, before running the build command. In my case, I ran this in the folder where my source image svgx-logo-v3-1024.png is located, and outputted it to another folder called appicons. The source image should be at least 1024x1024 in size. Next you'll run the command to generate a set of Mac/Windows/Linux icons from a single png image. Step 1įirst, install the electron-icon-builder utility which generates the icons for you. I'm also using this template as a starter. SVGX is an Electron app built with Svelte, as well as Forge which is a helpful tool for creating and publishing such apps. It took me a while to figure out, but eventually I got it. Unfortunately there don't seem to be a lot of resources out there for how to actually create proper Mac and Windows (and Linux) icons for the final build. The application icon may seem like a minor detail, yet I consider it very important, not just for branding, but also as a sign that the app is complete. Part of that is building platform-specific executables. As I'm wrapping things up on SVGX.app, a desktop app for managing SVG icon libraries, I find myself slogging through the most tedious 10% of the work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |