app-icon
app-icon copied to clipboard
Delete old cordova iOS icons
I'm using this tool to generate my iOS icons. I looked into the AppIcon.appiconset/
directory and I see that the default cordova icon files are still in the folder after running the tool. It would be best if those files were removed, because they're no longer needed.
BTW Thanks for creating this tool!
Thanks for the note! Yes it would make sense to clean them up, but perhaps only when a flag is set, to avoid people inadvertently losing anything. Will look into this for the next release.
A flag is not necessarily needed. Here're two ideas:
- https://www.npmjs.com/package/trash It's an npm package that moves files into the trash instead of deleting them outright (cross plattform).
- Or (better I think): Detect whether the files are the default cordova boilerplate icons via their sha1 hash and then delete them without asking. No one needs the boilerplate icons in their app. :D
Nice ideas, will check them both out and see what I can do!