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

Rename app

Open kevincolten opened this issue 9 years ago • 3 comments

Is there a way to name the app something like Imagemin. Right now (on OSX, at least) it shows up as Atom

screen shot 2017-01-04 at 10 13 22 am

kevincolten avatar Jan 04 '17 16:01 kevincolten

Leaving this here for reference in case someone wants to pick it up or I get some extra time.

I believe you can achieve this by adding your own Info.plist, putting it into the Contents directory, and changing CFBundleName to Imagemin

generated default:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>BuildMachineOSBuild</key>
	<string>12F45</string>
	<key>CFBundleIconFile</key>
	<string>atom.icns</string>
	<key>CFBundleIdentifier</key>
	<string>com.github.atom</string>
	<key>CFBundleName</key>
	<string>Atom</string>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<key>CFBundleVersion</key>
	<string>0.12.5</string>
	<key>DTSDKBuild</key>
	<string>13C64</string>
	<key>DTSDKName</key>
	<string>macosx</string>
	<key>DTXcode</key>
	<string>0511</string>
	<key>DTXcodeBuild</key>
	<string>5B1008</string>
	<key>NSMainNibFile</key>
	<string>MainMenu</string>
	<key>NSPrincipalClass</key>
	<string>AtomApplication</string>
	<key>NSSupportsAutomaticGraphicsSwitching</key>
	<true/>
</dict>
</plist>

kevincolten avatar Jan 04 '17 16:01 kevincolten

Here's an example of an app that is doing that as part of a build step https://github.com/awvessel/vessel

kevincolten avatar Jan 04 '17 16:01 kevincolten

The new electron-packager should solve this. There is a fork with an electron-packager npm script but it is not a working rewrite as it seems and there is https://github.com/imagemin/imagemin-app/tree/next.

Or you can take my latest version and use it with the electron-packager.

https://github.com/DanielRuf/imagemin-app

DanielRuf avatar Dec 04 '17 07:12 DanielRuf