diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c8b8eb --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.zip +.DS_Store diff --git a/README.md b/README.md new file mode 100644 index 0000000..9546cd8 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# Shoes 4 Mac App Templates + +Source repo for Shoes 4 Mac apps. Non-binary stuff is kept here. Things like +the JDK downloads are only kept around as releases to keep the size down. + +## App Template Updates + +The general process for revising a package is: + +* Make updats as necessary in `mac-app-template` +* Run `./build.rb 0.0.1` with your desired version number +* Upload resulting zipfile to a new release +* Upload a compatible `jdk.zip` alongside (can reuse from prior releases if + not updating) + +## JDK Updates + +Document soon!!! diff --git a/build.rb b/build.rb new file mode 100755 index 0000000..5bead87 --- /dev/null +++ b/build.rb @@ -0,0 +1,11 @@ +#! /usr/bin/env ruby + +require 'fileutils' + +version = ARGV[0] +raise "Must include a version as argument" unless version + +root = File.expand_path(File.join(__FILE__, "..")) + +`find . -name ".DS_Store" -exec rm {} \\;` +`zip -r mac-app-template-#{version}.zip mac-app-template` diff --git a/mac-app-template/Contents/Info.plist b/mac-app-template/Contents/Info.plist new file mode 100644 index 0000000..ac4ddfc --- /dev/null +++ b/mac-app-template/Contents/Info.plist @@ -0,0 +1,32 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + app + CFBundleIconFile + Shoes.icns + CFBundleIdentifier + com.hackety.shoes.exampleapp + CFBundleDisplayName + Shoes App + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Shoes App + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + NSHumanReadableCopyright + + LSApplicationCategoryType + public.app-category.entertainment + + diff --git a/mac-app-template/Contents/MacOS/app b/mac-app-template/Contents/MacOS/app new file mode 100755 index 0000000..565aa8a --- /dev/null +++ b/mac-app-template/Contents/MacOS/app @@ -0,0 +1,4 @@ +#! /usr/bin/env bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +java -XstartOnFirstThread -jar $DIR/../Java/app.jar diff --git a/mac-app-template/Contents/PkgInfo b/mac-app-template/Contents/PkgInfo new file mode 100644 index 0000000..6f749b0 --- /dev/null +++ b/mac-app-template/Contents/PkgInfo @@ -0,0 +1 @@ +APPL???? diff --git a/mac-app-template/Contents/Resources/Shoes.icns b/mac-app-template/Contents/Resources/Shoes.icns new file mode 100644 index 0000000..8f2861b Binary files /dev/null and b/mac-app-template/Contents/Resources/Shoes.icns differ diff --git a/mac-app-template/Contents/Resources/en.lproj/Localizable.strings b/mac-app-template/Contents/Resources/en.lproj/Localizable.strings new file mode 100644 index 0000000..0d306aa --- /dev/null +++ b/mac-app-template/Contents/Resources/en.lproj/Localizable.strings @@ -0,0 +1,3 @@ +"JRELoadError" = "Unable to load Java Runtime Environment."; +"MainClassNameRequired" = "Main class name is required."; +"JavaDirectoryNotFound" = "Unable to enumerate Java directory contents.";