Made most of the build work. Need Info.plist from Ryan to get Mac App building working.
This commit is contained in:
parent
261dbf0344
commit
c9ad942195
5 changed files with 49 additions and 21 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.swp
|
||||
*~
|
19
README.md
19
README.md
|
@ -13,17 +13,32 @@ Other than that, I am releasing this as an Open Source project in hopes that oth
|
|||
|
||||
### Coding Standards
|
||||
|
||||
Please keep all line lengths to 100 characters and use 4 spaces rather than tab characters
|
||||
|
||||
### Building
|
||||
|
||||
#### Windows
|
||||
|
||||
##### Requirements
|
||||
|
||||
###### Java Development Kit (JDK)
|
||||
|
||||
Download and install the latest version from [Oracle's Java Downloads page](http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html).
|
||||
|
||||
###### Apache Ant
|
||||
|
||||
Download the zip binary distribution of [Apache Ant](http://ant.apache.org/bindownload.cgi).
|
||||
Install Apache Ant via the official [Apache Ant Install Docs](http://ant.apache.org/manual/install.html).
|
||||
|
||||
###### launch4j
|
||||
|
||||
Download and install [launch4j](http://sourceforge.net/projects/launch4j/files/launch4j-3/3.1.0-beta2/).
|
||||
|
||||
Make sure to add the directory containing launch4jc to your executable path which for me on 64bit Windows was:
|
||||
|
||||
```
|
||||
C:\Program Files (x86)\Launch4j
|
||||
```
|
||||
|
||||
Please keep all line lengths to 100 characters and use 4 spaces rather than tab characters
|
||||
|
||||
### LICENSE
|
||||
|
||||
|
|
41
build.xml
41
build.xml
|
@ -8,12 +8,12 @@ REMEMBER - Change the atlauncher.version property below
|
|||
-->
|
||||
|
||||
<project name="ATLauncher 3.0" basedir=".">
|
||||
<taskdef resource="net/sf/antcontrib/antlib.xml" classpath="C:/Users/Ryan/Documents/Eclipse Workspace/ant/lib/ant-contrib-1.0b3.jar" />
|
||||
<!--<taskdef resource="net/sf/antcontrib/antlib.xml" classpath="C:/Users/Ryan/Documents/Eclipse Workspace/ant/lib/ant-contrib-1.0b3.jar" />-->
|
||||
|
||||
<property name="src.dir" value="src" />
|
||||
<property name="build.dir" value="build" />
|
||||
<property name="macapp.dir" value="macapp" />
|
||||
<property name="release.dir" value="${build.dir}/release" />
|
||||
<property name="release.dir" value="release" />
|
||||
<property name="buildsrc.dir" value="${build.dir}/src" />
|
||||
<property name="bin.dir" value="${build.dir}/compiled" />
|
||||
<property name="atlauncher.version" value="3.0.8" />
|
||||
|
@ -27,6 +27,8 @@ REMEMBER - Change the atlauncher.version property below
|
|||
<mkdir dir="${buildsrc.dir}" />
|
||||
<mkdir dir="${bin.dir}" />
|
||||
|
||||
<mkdir dir="${macapp.dir}" />
|
||||
|
||||
<copy todir="${buildsrc.dir}">
|
||||
<fileset dir="${src.dir}" />
|
||||
</copy>
|
||||
|
@ -41,7 +43,7 @@ REMEMBER - Change the atlauncher.version property below
|
|||
<fileset dir="${buildsrc.dir}/resources" includes="**" />
|
||||
</copy>
|
||||
|
||||
<jar destfile="C:/Users/Ryan/Desktop/ATLauncher.jar" filesetmanifest="mergewithoutmain">
|
||||
<jar destfile="${bin.dir}/ATLauncher.jar" filesetmanifest="mergewithoutmain">
|
||||
<manifest>
|
||||
<attribute name="Main-Class" value="com.atlauncher.App" />
|
||||
<attribute name="Class-Path" value="." />
|
||||
|
@ -49,27 +51,36 @@ REMEMBER - Change the atlauncher.version property below
|
|||
<fileset dir="${bin.dir}" />
|
||||
</jar>
|
||||
|
||||
<chmod file="C:/Users/Ryan/Desktop/ATLauncher.jar" perm="ugo+rwx"/>
|
||||
<chmod file="${bin.dir}/ATLauncher.jar" perm="ugo+rwx"/>
|
||||
<copy file="${bin.dir}/ATLauncher.jar" tofile="${release.dir}/ATLauncher.jar"/>
|
||||
|
||||
<exec executable="cmd">
|
||||
<exec os="win" executable="cmd">
|
||||
<arg value="/c" />
|
||||
<arg value="..\launch4j\launch4jc.exe" />
|
||||
<arg value="launch4jc.exe" />
|
||||
<arg value=".\launch4j.xml" />
|
||||
</exec>
|
||||
|
||||
<exec os="mac" executable="launch4jc">
|
||||
<arg value=".\launch4j.xml" />
|
||||
</exec>
|
||||
|
||||
<exec os="nix" executable="launch4jc">
|
||||
<arg value=".\launch4j.xml" />
|
||||
</exec>
|
||||
|
||||
<mkdir dir="C:/Users/Ryan/Desktop/ATLauncher.app" />
|
||||
<copy todir="C:/Users/Ryan/Desktop/ATLauncher.app">
|
||||
<mkdir dir="${bin.dir}/ATLauncher.app" />
|
||||
<copy todir="${bin.dir}/ATLauncher.app">
|
||||
<fileset dir="${macapp.dir}" includes="**" />
|
||||
</copy>
|
||||
<copyfile src="C:/Users/Ryan/Desktop/ATLauncher.jar" dest="C:/Users/Ryan/Desktop/ATLauncher.app/Contents/Resources/Java/ATLauncher.jar"/>
|
||||
<replace file="C:/Users/Ryan/Desktop/ATLauncher.app/Contents/Info.plist" token="%VERSION%" value="${atlauncher.version}" />
|
||||
<copy file="${bin.dir}/ATLauncher.jar" tofile="${bin.dir}/ATLauncher.app/Contents/Resources/Java/ATLauncher.jar"/>
|
||||
<!--<replace file="${bin.dir}/ATLauncher.app/Contents/Info.plist" token="%VERSION%" value="${atlauncher.version}" />-->
|
||||
|
||||
<zip destfile="C:/Users/Ryan/Desktop/ATLauncher.zip">
|
||||
<zipfileset dir="C:/Users/Ryan/Desktop/" includes="ATLauncher.app/**" excludes="ATLauncher.app/Contents/MacOS/JavaApplicationStub" />
|
||||
<zipfileset dir="C:/Users/Ryan/Desktop/" includes="ATLauncher.app/Contents/MacOS/JavaApplicationStub" filemode="755" />
|
||||
<zip destfile="${release.dir}/ATLauncher.zip">
|
||||
<zipfileset dir="${bin.dir}/" includes="ATLauncher.app/**" excludes="ATLauncher.app/Contents/MacOS/JavaApplicationStub" />
|
||||
<zipfileset dir="${bin.dir}/" includes="ATLauncher.app/Contents/MacOS/JavaApplicationStub" filemode="755" />
|
||||
</zip>
|
||||
|
||||
<delete dir="C:/Users/Ryan/Desktop/ATLauncher.app"/>
|
||||
<delete dir="${bin.dir}/ATLauncher.app"/>
|
||||
|
||||
<delete dir="${build.dir}" />
|
||||
</project>
|
||||
</project>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<launch4jConfig>
|
||||
<dontWrapJar>false</dontWrapJar>
|
||||
<headerType>gui</headerType>
|
||||
<jar>C:\Users\Ryan\Desktop\ATLauncher.jar</jar>
|
||||
<outfile>C:\Users\Ryan\Desktop\ATLauncher.exe</outfile>
|
||||
<jar>release/ATLauncher.jar</jar>
|
||||
<outfile>release/ATLauncher.exe</outfile>
|
||||
<errTitle></errTitle>
|
||||
<cmdLine></cmdLine>
|
||||
<chdir></chdir>
|
||||
|
@ -12,11 +12,11 @@
|
|||
<customProcName>true</customProcName>
|
||||
<stayAlive>false</stayAlive>
|
||||
<manifest></manifest>
|
||||
<icon>C:\Users\Ryan\Documents\Eclipse Workspace\atlauncher-3.0\Icon.ico</icon>
|
||||
<icon>src/resources/Icon.ico</icon>
|
||||
<jre>
|
||||
<path></path>
|
||||
<minVersion>1.6.0</minVersion>
|
||||
<maxVersion></maxVersion>
|
||||
<jdkPreference>jreOnly</jdkPreference>
|
||||
</jre>
|
||||
</launch4jConfig>
|
||||
</launch4jConfig>
|
||||
|
|
BIN
src/resources/Icon.ico
Normal file
BIN
src/resources/Icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
Loading…
Reference in a new issue