-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathels-1-app.xml
80 lines (68 loc) · 3.63 KB
/
els-1-app.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
68
69
70
71
72
73
74
75
76
77
78
79
80
<?xml version="1.0" encoding="UTF-8"?>
<!-- RUN FIRST: Build MacOS .app for ELS and ELS_Updater -->
<project name="ELS MacOS .app Build" default="All" basedir=".">
<!-- https://github.com/TheInfiniteKind/appbundler -->
<!-- /usr/local/apache-ant-1.9.16/lib/appbundler-1.0ea.jar -->
<taskdef name="bundleapp"
classpath="appbundler-1.0ea.jar"
classname="com.oracle.appbundler.AppBundlerTask"/>
<target name="init">
<property file="els.properties"/>
<echo message="ELS version ${els.version.name}" level="info"/>
<echo message="${java.vendor} ${java.runtime.name} ${java.runtime.version}" level="info"/>
<echo message="${ant.version}" level="info"/>
</target>
<target name="clean" depends="init">
<delete dir="build/" includes="*.dmg" failonerror="false"/>
<delete dir="build/ELS.app" failonerror="false"/>
<delete dir="build/ELS_Updater.app" failonerror="false"/>
</target>
<!-- Build ELS macOS .dmg -->
<target name="els-macos" depends="clean">
<property file="ELS/build-stamp.properties"/>
<echo message="${els.version.name}, ${els.build.stamp}" level="info"/>
<bundleapp
outputdirectory="build/"
executableName="ELS-Navigator"
name="ELS"
displayname="Entertainment Library Synchronizer"
identifier="com.corionis.els"
shortversion="${els.version.name}, ${els.build.stamp}"
icon="artifacts/els-logo-98px.icns"
mainclassname="com.corionis.els.Main"
copyright="https://github.com/Corionis/ELS"
applicationCategory="public.app-category.utilities"
>
<classpath file="ELS/bin/ELS.jar" />
<runtime dir="ELS/rt/Contents/Home"/>
</bundleapp>
<copy file="ELS/bin/update.info" todir="build/ELS.app/Contents/Java" preservelastmodified="true"/>
<copy file="ELS/bin/els-logo-98px.icns" todir="build/ELS.app/Contents" preservelastmodified="true"/>
<copy file="ELS/License.txt" todir="build/ELS.app/Contents" preservelastmodified="true"/>
<copy file="ELS/Notice.txt" todir="build/ELS.app/Contents" preservelastmodified="true"/>
</target>
<!-- ELS Updater ========================================== -->
<target name="updater-macos" depends="clean">
<property file="ELS_Updater/build-stamp.properties"/>
<echo message="Updater ${els.version.name}, ${els.build.stamp}" level="info"/>
<bundleapp
outputdirectory="build/"
executableName="ELS_Updater"
name="ELS_Updater"
displayname="ELS_Updater_app"
identifier="com.corionis.els"
shortversion="${els.version.name}, ${els.build.stamp}"
icon="artifacts/els-logo-98px.icns"
mainclassname="com.corionis.els_updater.Main"
copyright="https://github.com/Corionis/ELS"
applicationCategory="public.app-category.utilities"
>
<classpath file="ELS_Updater/bin/ELS_Updater.jar" />
<runtime dir="ELS_Updater/rt/Contents/Home"/>
</bundleapp>
<copy file="ELS_Updater/bin/update.info" todir="build/ELS_Updater.app/Contents/Java" preservelastmodified="true"/>
<copy file="ELS_Updater/bin/els-logo-98px.icns" todir="build/ELS_Updater.app/Contents" preservelastmodified="true"/>
</target>
<!-- Primary Targets ========================================== -->
<target name="All" depends="els-macos, updater-macos" description="Build all deliverables"/>
</project>