-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 393efce
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.zip | ||
*.tar.gz | ||
.DS_Store |
This file contains 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 characters
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!!! |
This file contains 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 characters
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 linux-app-template-#{version}.zip linux-app-template` |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#! /usr/bin/env bash | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
COMMAND=java | ||
|
||
# See if Java's there to just use | ||
$COMMAND -version &> /dev/null | ||
if [ $? != 0 ]; then | ||
|
||
# See if we already have a downloaded JRE we can use | ||
if [ ! -d ~/.shoes/jre ]; then | ||
mkdir -p ~/.shoes | ||
|
||
# Download a JRE | ||
pushd ~/.shoes | ||
curl -L https://github.com/shoes/linux-app-templates/releases/download/jre1.8.0_131/jre1.8.0_131.tar.gz > jre.tar.gz | ||
tar -zxvf jre.tar.gz | ||
mv ~/.shoes/jre1.8.0_131.jre ~/.shoes/jre | ||
popd | ||
fi | ||
|
||
export JAVA_HOME=~/.shoes/jre/Contents/Home/ | ||
COMMAND=$JAVA_HOME/bin/java | ||
fi | ||
|
||
$COMMAND -jar $DIR/app.jar |