-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
67 lines (58 loc) · 2.19 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<project name="eyesleep" default="simple" basedir=".">
<property name="version" value="1.0" />
<property name="buildnumber" value="1" />
<tstamp>
<format property="this_year" pattern="yyyy" />
</tstamp>
<property name="copyright" value="Copyright © ${this_year} Team Molise" />
<target name="clean">
<delete dir="build" />
<delete dir="osx" />
</target>
<target name="compile">
<mkdir dir="build/classes" />
<javac srcdir="src" destdir="build/classes">
<classpath>
<pathelement path="libs/Filters.jar" />
</classpath>
</javac>
</target>
<target name="jar">
<mkdir dir="build/jar" />
<copy todir="build/classes/rocks/teammolise/eyesleep/utils/resources">
<fileset dir="src/rocks/teammolise/eyesleep/utils/resources">
<exclude name="*.java" />
</fileset>
</copy>
<jar destfile="build/jar/eyesleep.jar" basedir="build/classes">
<zipgroupfileset dir="libs" includes="Filters.jar" />
<manifest>
<attribute name="EyeSleep" value="main" />
<attribute name="Main-Class" value="rocks.teammolise.eyesleep.runnable.Main" />
</manifest>
</jar>
</target>
<taskdef name="bundleapp" classname="com.oracle.appbundler.AppBundlerTask" />
<target name="bundleOSX">
<mkdir dir="osx" />
<bundleapp outputdirectory="osx" name="Eyesleep"
displayname="Eyesleep" identifier="rocks.teammolise.eyesleep"
shortversion="1.0" applicationCategory="public.app-category.developer-tools"
mainclassname="rocks.teammolise.eyesleep.runnable.Main"
icon="src/rocks/teammolise/eyesleep/utils/resources/trayTransparentDark.icns">
<classpath file="build/jar/eyesleep.jar" />
<option value="-Dapple.laf.useScreenMenuBar=true" />
</bundleapp>
<copy todir="osx/Eyesleep.app/Contents/Resources">
<fileset dir="src/rocks/teammolise/eyesleep/utils/resources">
<exclude name="*.java" />
</fileset>
</copy>
<copy file="config.properties" todir="osx/Eyesleep.app/Contents/Java" />
<!-- to remove icon from the dock give this cmd in a terminal and then restart the app -->
<!-- defaults write /Applications/Eyesleep.app/Contents/Info LSUIElement -string 1 -->
</target>
<target name="run">
<java jar="build/jar/eyesleep.jar" fork="true" />
</target>
</project>