-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostEditorBuild.xml
85 lines (77 loc) · 3.99 KB
/
postEditorBuild.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
81
82
83
84
85
<!--
~ ============================================ GNU GENERAL PUBLIC LICENSE =============================================
~ Hardware Monitor for the remote monitoring of a systems hardware information
~ Copyright (C) 2021 Christian Benner
~
~ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
~ License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
~ version.
~
~ Additional terms included with this license are to:
~ - Preserve legal notices and author attributions such as this one. Do not remove the original author license notices
~ from the program
~ - Preserve the donation button and its link to the original authors donation page (christianbenner35@gmail.com)
~ - Only break the terms if given permission from the original author christianbenner35@gmail.com
~
~ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
~ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License along with this program. If not, see
~ <https://www.gnu.org/licenses/>.
~ =====================================================================================================================
-->
<project name="PostEditorBuildProcess" basedir=".">
<target name="deployJreAndAssets">
<!-- Prompt for a version to be entered so it can be used to structure the release area -->
<input message="Enter version for the release (format: x.x.x): " addproperty="version.name"/>
<echo message="Version entered: ${version.name}"/>
<!-- Copy the JAR application to the Releases binaries folder as some users may just want a JAR -->
<exec dir="${basedir}" executable="cmd">
<arg value="/c"/>
<!-- Script to run -->
<arg value="deployScript.bat"/>
<!-- File to copy -->
<arg value="out\artifacts\HardwareMonitorEditor\HardwareMonitorEditor.jar"/>
<!-- Output dir -->
<arg value="..\Releases\${version.name}\Binaries"/>
</exec>
<exec dir="${basedir}" executable="cmd">
<arg value="/c"/>
<arg value="buildJre.bat"/>
<!-- The JRE deploy location -->
<arg value="..\HardwareMonitorClientBootstrapper\deploy\jre"/>
<!-- Optional jLink location argument -->
<arg value="C:\Program Files\Java\jdk-16.0.2\bin\jlink"/>
</exec>
<exec dir="${basedir}" executable="cmd">
<arg value="/c"/>
<arg value="deployBootstrapperAssets.bat"/>
<arg value="..\HardwareMonitorClientBootstrapper\deploy"/>
</exec>
<exec dir="${basedir}" executable="cmd">
<arg value="/c"/>
<arg value="compileBootstrapper.bat"/>
<arg value="..\HardwareMonitorClientBootstrapper\HardwareMonitorClientBootstrapper.sln"/>
</exec>
<!-- Copy the editor to the release folder -->
<exec dir="${basedir}" executable="cmd">
<arg value="/c"/>
<!-- Script to run -->
<arg value="deployFolderScript.bat"/>
<!-- File to copy -->
<arg value="..\HardwareMonitorClientBootstrapper\deploy\editor"/>
<!-- Output dir -->
<arg value="..\Releases\${version.name}\Binaries\Editor"/>
</exec>
<!-- Copy the installer to the release folder -->
<exec dir="${basedir}" executable="cmd">
<arg value="/c"/>
<!-- Script to run -->
<arg value="deployFolderScript.bat"/>
<!-- File to copy -->
<arg value="..\HardwareMonitorClientBootstrapper\deploy\editorinstaller"/>
<!-- Output dir -->
<arg value="..\Releases\${version.name}\Installers"/>
</exec>
</target>
</project>