Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrclark committed May 14, 2017
0 parents commit 2b5041f
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.zip
.DS_Store
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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!!!
11 changes: 11 additions & 0 deletions build.rb
Original file line number Diff line number Diff line change
@@ -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`
32 changes: 32 additions & 0 deletions mac-app-template/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?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>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>app</string>
<key>CFBundleIconFile</key>
<string>Shoes.icns</string>
<key>CFBundleIdentifier</key>
<string>com.hackety.shoes.exampleapp</string>
<key>CFBundleDisplayName</key>
<string>Shoes App</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Shoes App</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSHumanReadableCopyright</key>
<string></string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.entertainment</string>
</dict>
</plist>
4 changes: 4 additions & 0 deletions mac-app-template/Contents/MacOS/app
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#! /usr/bin/env bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
java -XstartOnFirstThread -jar $DIR/../Java/app.jar
1 change: 1 addition & 0 deletions mac-app-template/Contents/PkgInfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APPL????
Binary file added mac-app-template/Contents/Resources/Shoes.icns
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"JRELoadError" = "Unable to load Java Runtime Environment.";
"MainClassNameRequired" = "Main class name is required.";
"JavaDirectoryNotFound" = "Unable to enumerate Java directory contents.";

0 comments on commit 2b5041f

Please sign in to comment.