Skip to content

Instantly share code, notes, and snippets.

Created April 7, 2016 09:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
BUILD_XML="<?xml version=\"1.0\" encoding=\"UTF-8\"?><project name=\"Minecraft\" default=\"default\" basedir=\".\"><taskdef name=\"bundleapp\" classname=\"\" classpath=\"appbundler-1.0.jar\" /><target name=\"bundle-Minecraft\"><bundleapp outputdirectory=\".\" name=\"Minecraft\" displayname=\"Minecraft\" identifier=\"net.minecraft\" mainclassname=\"net.minecraft.bootstrap.Bootstrap\"><classpath file=\"Minecraft.jar\" /></bundleapp></target></project>"
curl -o Minecraft.jar
curl -o appbundler-1.0.jar
echo "$BUILD_XML" > build.xml
ant bundle-Minecraft
mkdir Minecraft && unzip -d Minecraft Minecraft.jar
sips -s format icns Minecraft/favicon.png --out favicon.icns
mv -f favicon.icns
rm -rf appbundler-1.0.jar build.xml Minecraft Minecraft.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment