app-icon icon indicating copy to clipboard operation
app-icon copied to clipboard

Delete old cordova iOS icons

Open MajorBreakfast opened this issue 7 years ago • 3 comments

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!

MajorBreakfast avatar Jan 10 '18 15:01 MajorBreakfast

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.

dwmkerr avatar Jan 18 '18 02:01 dwmkerr

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

MajorBreakfast avatar Jan 18 '18 08:01 MajorBreakfast

Nice ideas, will check them both out and see what I can do!

dwmkerr avatar Jan 24 '18 05:01 dwmkerr