-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpom.xml
122 lines (110 loc) · 5.66 KB
/
pom.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<!--FILLMEIN - REQUIRED-->
<artifactId>getdown-windows-installer</artifactId>
<!--FILLMEIN - REQUIRED-->
<name>Updatable App</name>
<!--FILLMEIN - REQUIRED-->
<description>Example POM that builds update directory and a native installer for Windows</description>
<!--FILLMEIN - REQUIRED-->
<groupId>tech.ugma.education.getdown</groupId>
<!--FILLMEIN - REQUIRED-->
<version>0.0.1-SNAPSHOT</version>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<!-- Creates the getdown (updates goal) and getdown-stub (stub goal) directory. -->
<!-- The contents of the getdown directory need to go to your server (whatever is in the
appbase tag) so that getdown can go get it and perform an update with it.-->
<!-- The contents of the getdown-stub directory get used for the NSIS installer. -->
<plugin>
<groupId>io.github.rockfireredmoon</groupId>
<artifactId>getdown-maven-plugin</artifactId>
<version>0.9.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>updates</goal>
<goal>stub</goal>
<goal>applet</goal>
</goals>
<configuration>
<!--FILLMEIN - REQUIRED-->
<appbase>http://www.myserver.com/myapp/getdown/</appbase>
<libPath>lib</libPath>
<!--FILLMEIN - REQUIRED-->
<mainClass>tech.ugma.education.getdown.examples.MyApp</mainClass>
<outputJarVersions>false</outputJarVersions>
<verbose>true</verbose>
<!--OPTIONAL-->
<!--<appargs>-->
<!--<apparg>Some Argument</apparg>-->
<!--</appargs>-->
<ui>
<!--FILLMEIN - REQUIRED-->
<name>My App</name>
<!--OPTIONAL CONFIGURATION:-->
<!--<icons>-->
<!--<icon>${basedir}/src/main/resources/images/myapp.png</icon>-->
<!--</icons>-->
<!--<progressImage>${basedir}/src/main/resources/images/progress.png</progressImage>-->
<!--<backgroundImage>${basedir}/src/main/resources/images/splash.png</backgroundImage>-->
<!--<progress>80, 244, 196, 11</progress>-->
<!--<progressText>FFFFFF</progressText>-->
<!--<statusText>FFFFFF</statusText>-->
<!--<status>20, 170, 316, 64</status>-->
<!--<textShadow>111111</textShadow>-->
</ui>
</configuration>
</execution>
</executions>
</plugin>
<!-- NSIS (Nullsoft Scriptable Install System) Installer Generation -->
<!-- * Download and install NSIS. -->
<!-- * If NSIS is NOT installed in the default 32-bit location, C:/Program Files/NSIS/makensis.exe,
put the path to makensis.exe in-between the <makensisBin> tags-->
<!-- * Put a license in License.txt-->
<!-- * Put some instructions for the user in Readme.txt-->
<!-- * myapp.ico, myappbanner.bmp, and myappsmall.ico can be changed as long as any reference to them in
in myapp.nsi is changed as well.-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>nsis-maven-plugin</artifactId>
<version>1.0-alpha-1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>generate-headerfile</goal>
<goal>make</goal>
</goals>
<configuration>
<!--Default Value: C:/Program Files/NSIS/makensis.exe-->
<!-- <makensisBin>C:\Program Files\NSIS\makensis.exe</makensisBin> -->
<!--The name of the installer-->
<outputFile>${project.name}-installer.exe</outputFile>
<!--Configures the NSIS installer. See NSIS documentation.-->
<scriptFile>src/main/nsis/installationConfiguration.nsi</scriptFile>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>codehaus-snapshots</id>
<url>http://nexus.codehaus.org/snapshots/</url>
<snapshots />
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
</project>