A script to add a CFBundleIconFile entry to plist file for exported .app air packages for mac.
This was made to correctly add icons to .app packages built using BowlerHat LLCs excellent extension for vscode. The problem was that the build process of the extension does not correctly add the provided .icns file to the package Info.plist file.
git clone [email protected]:heijler/add-icon-to-plist.git
cd add-icons-to-plist
npm install
node --experimental-modules index.mjs [absolute path to .app] [icns file name]
node --experimental-modules index.mjs /Users/heijler/dev/BulletReign/bin/BulletReign.app game.icns