Created
November 4, 2012 20:21
-
-
Save nclsjstnn/4013534 to your computer and use it in GitHub Desktop.
Revisions
-
Nicolas Justiniano revised this gist
Nov 4, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,4 +19,4 @@ else echo "Info.plist not found in /Applications/MinecraftSP.app/Contents/" fi cp /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub /Applications/MinecraftSP.app/Contents/MacOS/ -
Nicolas Justiniano revised this gist
Nov 4, 2012 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,17 +6,17 @@ if [[ ! -d ~/Minecraft_Backups/ ]];then echo "Creating backup directory ~/Minecraft_Backups/" mkdir -p ~/Minecraft_Backups/ fi tar -czf ~/Minecraft_Backups/`date +%Y%m%d`-backup.tgz /Applications/MinecraftSP.app #Modify the Info.plist file for the new version of Java if [[ -a /Applications/MinecraftSP.app/Contents/Info.plist ]];then sed -i -e 's/1\.5\+/1.6+/' /Applications/MinecraftSP.app/Contents/Info.plist sed -i -e '/I386/ c\ X86_64<\/string>\ I386<\/string>\ ' /Applications/MinecraftSP.app/Contents/Info.plist else echo "Info.plist not found in /Applications/MinecraftSP.app/Contents/" fi cp /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub /Applications/MinecraftSP.app/Contents/MacOS/</code> -
Nicolas Justiniano created this gist
Nov 4, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ #!/bin/bash # Perform Backup of all the files if [[ ! -d ~/Minecraft_Backups/ ]];then echo "Creating backup directory ~/Minecraft_Backups/" mkdir -p ~/Minecraft_Backups/ fi tar -czf ~/Minecraft_Backups/`date +%Y%m%d`-backup.tgz /Applications/Minecraft/Minecraft.app #Modify the Info.plist file for the new version of Java if [[ -a /Applications/Minecraft/Minecraft.app/Contents/Info.plist ]];then sed -i -e 's/1\.5\+/1.6+/' /Applications/Minecraft/Minecraft.app/Contents/Info.plist sed -i -e '/I386/ c\ X86_64<\/string>\ I386<\/string>\ ' /Applications/Minecraft/Minecraft.app/Contents/Info.plist else echo "Info.plist not found in /Applications/Minecraft/Minecraft.app/Contents/" fi cp /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub /Applications/Minecraft/Minecraft.app/Contents/MacOS/</code>