Browse code

generate only one rpm

devnewton authored on 07/08/2014 at 15:42:21
Showing 29 changed files
... ...
@@ -5,6 +5,7 @@
5 5
 /packages/generic/target/
6 6
 /packages/win/target/
7 7
 /packages/deb/target/
8
+/packages/rpm/target/
8 9
 /packages/rpm32/target/
9 10
 /packages/rpm64/target/
10 11
 /mods/duchatelet/target/
11 12
new file mode 100755
... ...
@@ -0,0 +1,7 @@
0
+#!/bin/bash
1
+mvn clean package -Pwin,deb,rpm
2
+mkdir -p target/release
3
+cp packages/generic/target/newton-adventure-installer*.jar target/release/
4
+cp packages/win/target/newton-adventure-installer*.exe target/release/
5
+cp packages/deb/target/newton-adventure*.deb target/release/
6
+cp packages/rpm/target/rpm/newton-adventure/RPMS/*/newton-adventure-*.rpm target/release/
0 7
deleted file mode 100644
... ...
@@ -1,41 +0,0 @@
1
-= Requirements =
2
-
3
-Java JDK, [openjdk](http://openjdk.java.net/) or [Oracle](http://java.com): 1.7+
4
-[Maven](http://www.maven.org) 3+
5
-
6
-= Compile =
7
-
8
-Go to the source folder and run maven with the following command:
9
-
10
-	mvn package
11
-
12
-This will generate an executable jar in target subfolder named newton_adventure-${project.version}.jar
13
-
14
-= Install =
15
-
16
-== Manual installation ==
17
-
18
-- Create a directory, for example /opt/newton_adventure
19
-- Copy the target/newton_adventure-${project.version}.jar, the target/natives folder and the data folder into it.
20
-
21
-== Create packages and installers ==
22
-
23
-Using maven 3 plugins, rpm and deb can be generated and also a generic [izpack](www.izpack.org) based installer.
24
-
25
-	mvn clean package -Pizpack,deb,rpm,rpm32
26
-
27
-= Run =
28
-
29
-The game can be run using the following command:
30
-
31
-	java -jar newton_adventure-${project.version}.jar
32
-
33
-It will try to load the game data files in
34
-
35
-	./data
36
-
37
-or
38
-
39
-	../data
40
-
41
-NB: lwjgl shared libraries must be loadable, check the [lwjgl](www.lwjgl.org) documentation for more information.
42 1
\ No newline at end of file
... ...
@@ -122,6 +122,36 @@ SUCH DAMAGE. */ -->
122 122
             <artifactId>lwjgl_util</artifactId>
123 123
         </dependency>
124 124
     </dependencies>
125
+    <profiles>
126
+        <profile>
127
+            <id>play</id>
128
+            <build>
129
+                <plugins>
130
+                    <plugin>
131
+                        <groupId>org.codehaus.mojo</groupId>
132
+                        <artifactId>exec-maven-plugin</artifactId>
133
+                        <version>1.1.1</version>
134
+                        <executions>
135
+                            <execution>
136
+                                <phase>integration-test</phase>
137
+                                <goals>
138
+                                    <goal>exec</goal>
139
+                                </goals>
140
+                            </execution>
141
+                        </executions>
142
+                        <configuration>
143
+                            <executable>java</executable>
144
+                            <arguments>
145
+                                <argument>-cp</argument>
146
+                                <argument>${project.build.directory}/lib/*:${project.build.directory}/${project.build.finalName}.jar</argument>
147
+                                <argument>im.bci.newtonadv.platform.lwjgl.Main</argument>
148
+                            </arguments>
149
+                        </configuration>
150
+                    </plugin>
151
+                </plugins>
152
+            </build>
153
+        </profile>
154
+    </profiles>
125 155
 </project>
126 156
 
127 157
 
128 158
deleted file mode 100755
... ...
@@ -1,15 +0,0 @@
1
-#!/bin/sh
2
-newton_adventure_version=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version|grep -Ev '(^\[|Download\w+:)'`
3
-rm newton_adventure-${newton_adventure_version}-installer.exe
4
-rm newton_adventure-${newton_adventure_version}-installer.jar
5
-mvn clean package -Pizpack,rpm,rpm32,src
6
-cp target/newton_adventure_${newton_adventure_version}_sources.zip ../www/downloads/
7
-cp target/newton_adventure-${newton_adventure_version}-installer.jar ../www/downloads/
8
-cp target/rpm/newton_adventure/RPMS/i686/newton_adventure-${newton_adventure_version}-1.i686.rpm ../www/downloads/
9
-cp target/newton_adventure-${newton_adventure_version}-installer.jar ./
10
-mvn install -Pwin
11
-cp newton_adventure-${newton_adventure_version}-installer.exe  ../www/downloads/
12
-mvn clean package -Prpm,rpm64
13
-cp target/rpm/newton_adventure/RPMS/x86_64/newton_adventure-${newton_adventure_version}-1.x86_64.rpm ../www/downloads/
14
-mvn clean package -Pdeb
15
-cp target/newton_adventure_${newton_adventure_version}.deb ../www/downloads/newton-adventure_${newton_adventure_version}.deb
16 1
deleted file mode 100755
... ...
@@ -1,2 +0,0 @@
1
-#!/bin/sh
2
-java -jar newton_adventure-${project.version}.jar
3 1
deleted file mode 100755
... ...
@@ -1,2 +0,0 @@
1
-#!/bin/sh
2
-java -jar newton_adventure-${project.version}.jar
3 1
deleted file mode 100644
... ...
@@ -1 +0,0 @@
1
-java -jar newton_adventure-${project.version}.jar
2 1
deleted file mode 100644
... ...
@@ -1,57 +0,0 @@
1
-
2
-<assembly
3
-     xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
4
-     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
-     xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
6
-    <id>package-newton-adventure-sources</id>
7
-    <formats>
8
-        <format>zip</format>
9
-    </formats>
10
-    <includeBaseDirectory>false</includeBaseDirectory>
11
-<!--    <dependencySets>
12
-    <dependencySet>
13
-    <includes>
14
-	    <include>groupId.example:artifactId.example</include>
15
-    </includes>
16
-    <unpack>false</unpack>
17
-    <scope>runtime</scope>
18
-    <outputDirectory>${plugin.name}</outputDirectory>
19
-    </dependencySet>
20
-    </dependencySets>-->
21
-    <files>
22
-        <file>
23
-            <source>pom.xml</source>
24
-        </file>
25
-        <file>
26
-            <source>README.txt</source>
27
-            <filtered>true</filtered>
28
-        </file>
29
-        <file>
30
-            <source>INSTALL.txt</source>
31
-            <filtered>true</filtered>
32
-        </file>
33
-        <file>
34
-            <source>run_linux.sh</source>
35
-            <filtered>true</filtered>
36
-        </file>
37
-        <file>
38
-            <source>run_macosx.sh</source>
39
-            <filtered>true</filtered>
40
-        </file>
41
-        <file>
42
-            <source>run_windows.bat</source>
43
-            <filtered>true</filtered>
44
-        </file>
45
-    </files>
46
-    <fileSets>
47
-        <fileSet>
48
-            <directory>data</directory>
49
-        </fileSet>
50
-        <fileSet>
51
-            <directory>licences</directory>
52
-        </fileSet>
53
-        <fileSet>
54
-            <directory>src</directory>
55
-        </fileSet>
56
-    </fileSets>
57
-</assembly>
58 1
deleted file mode 100644
... ...
@@ -1,9 +0,0 @@
1
-Package: newton-adventure
2
-Version: [[version]]
3
-Section: misc/games
4
-Priority: optional
5
-Architecture: all
6
-Depends: liblwjgl-java, java7-runtime, jarwrapper, libopenal-dev
7
-Maintainer: devnewton <devnewton@bci.im>
8
-Description: Newton Adventure is a free and open source 2D platform game. You play Newton, a very special hero who has the power to change gravity direction.
9
-Homepage: http://devnewton.bci.im
10 1
deleted file mode 100644
... ...
@@ -1,10 +0,0 @@
1
-#!/usr/bin/env xdg-open
2
-[Desktop Entry]
3
-Version=${project.version}
4
-Type=Application
5
-Terminal=false
6
-Categories=Game;
7
-Exec=/opt/newton_adventure/newton_adventure.jar
8
-Name=Newton Adventure
9
-Comment=Newton Adventure is a 2d platform game where player can rotate level and change gravity
10
-Icon=/opt/newton_adventure/icon.png
11 1
deleted file mode 100644
... ...
@@ -1,2 +0,0 @@
1
-#!/usr/bin/env sh
2
-/opt/newton_adventure/newton_adventure.jar
3 1
deleted file mode 100644
... ...
@@ -1,10 +0,0 @@
1
-#!/usr/bin/env xdg-open
2
-[Desktop Entry]
3
-Version=${project.version}
4
-Type=Application
5
-Terminal=false
6
-Categories=Game;
7
-Exec=java -jar /opt/newton_adventure/newton_adventure.jar
8
-Name=Newton Adventure
9
-Comment=Newton Adventure is a 2d platform game where player can rotate level and change gravity
10
-Icon=/opt/newton_adventure/icon.png
11 1
deleted file mode 100644
... ...
@@ -1,2 +0,0 @@
1
-#!/usr/bin/env sh
2
-java -jar /opt/newton_adventure/newton_adventure.jar
3 1
new file mode 100755
... ...
@@ -0,0 +1,241 @@
0
+<?xml version="1.0" encoding="UTF-8"?>
1
+<!-- The MIT License (MIT)
2
+
3
+Copyright (c) 2013 devnewton <devnewton@bci.im>
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining a copy
6
+of this software and associated documentation files (the "Software"), to deal
7
+in the Software without restriction, including without limitation the rights
8
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+copies of the Software, and to permit persons to whom the Software is
10
+furnished to do so, subject to the following conditions:
11
+
12
+The above copyright notice and this permission notice shall be included in
13
+all copies or substantial portions of the Software.
14
+
15
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+THE SOFTWARE. -->
22
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
24
+    <modelVersion>4.0.0</modelVersion>
25
+    <parent>
26
+        <groupId>im.bci.newtonadv</groupId>
27
+        <artifactId>newton-adventure</artifactId>
28
+        <version>1.16-SNAPSHOT</version>
29
+        <relativePath>../../pom.xml</relativePath>
30
+    </parent>
31
+    <artifactId>newton-adventure-rpm</artifactId>
32
+    <packaging>pom</packaging>
33
+    <name>newton-adventure-rpm</name>
34
+    <properties>
35
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36
+        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
37
+    </properties>
38
+    <profiles>
39
+        <profile>
40
+            <id>rpm</id>
41
+            <build>
42
+                <plugins>
43
+                    <plugin>
44
+                        <groupId>com.googlecode.mavennatives</groupId>
45
+                        <artifactId>maven-nativedependencies-plugin</artifactId>
46
+                        <version>0.0.7</version>
47
+                        <executions>
48
+                            <execution>
49
+                                <id>unpacknatives</id>
50
+                                <phase>generate-resources</phase>
51
+                                <goals>
52
+                                    <!--suppress MavenModelInspection (this line is for IDEA) -->
53
+                                    <goal>copy</goal>
54
+                                </goals>
55
+                            </execution>
56
+                        </executions>
57
+                    </plugin>
58
+                    <plugin>
59
+                        <artifactId>maven-resources-plugin</artifactId>
60
+                        <version>2.6</version>
61
+                        <executions>
62
+                            <execution>
63
+                                <id>copy-resources</id>
64
+                                <phase>prepare-package</phase>
65
+                                <goals>
66
+                                    <goal>copy-resources</goal>
67
+                                </goals>
68
+                                <configuration>
69
+                                    <outputDirectory>${project.build.directory}</outputDirectory>
70
+                                    <resources>
71
+                                        <resource>
72
+                                            <directory>${basedir}/src/launchers</directory>
73
+                                            <filtering>true</filtering>
74
+                                        </resource>
75
+                                        <resource>
76
+                                            <directory>${basedir}/../generic/src</directory>
77
+                                            <filtering>true</filtering>
78
+                                            <includes>
79
+                                                <include>README.txt</include>
80
+                                            </includes>
81
+                                        </resource>
82
+                                    </resources>
83
+                                </configuration>
84
+                            </execution>
85
+                        </executions>
86
+                    </plugin>
87
+                    <plugin>
88
+                        <groupId>org.apache.maven.plugins</groupId>
89
+                        <artifactId>maven-dependency-plugin</artifactId>
90
+                        <version>2.8</version>
91
+                        <executions>
92
+                            <execution>
93
+                                <id>copy-dependencies</id>
94
+                                <phase>package</phase>
95
+                                <goals>
96
+                                    <goal>copy-dependencies</goal>
97
+                                </goals>
98
+                                <configuration>
99
+                                    <excludeTransitive>false</excludeTransitive>
100
+                                    <outputDirectory>${project.build.directory}/lib</outputDirectory>
101
+                                </configuration>
102
+                            </execution>
103
+                        </executions>
104
+                    </plugin>
105
+                    <plugin>
106
+                        <groupId>org.codehaus.mojo</groupId>
107
+                        <artifactId>rpm-maven-plugin</artifactId>
108
+                        <version>2.1-alpha-3</version>
109
+                        <extensions>true</extensions>
110
+                        <executions>
111
+                            <execution>
112
+                                <id>generate-rpm</id>
113
+                                <goals>
114
+                                    <goal>rpm</goal>
115
+                                </goals>
116
+                                <configuration>
117
+                                    <copyright>2009 devnewton</copyright>
118
+                                    <group>Application/Games</group>
119
+                                    <name>newton-adventure</name>
120
+                                    <packager>devnewton</packager>
121
+                                    <needarch>noarch</needarch>
122
+                                    <requires>
123
+                                        <require>java &gt; 1-1.7.0 </require>
124
+                                    </requires>
125
+                                    <defineStatements>
126
+                                        <defineStatement>_binaries_in_noarch_packages_terminate_build 0</defineStatement>
127
+                                    </defineStatements>
128
+                                    <mappings>
129
+                                        <mapping>
130
+                                            <directory>/opt/newton-adventure</directory>
131
+                                            <username>root</username>
132
+                                            <groupname>root</groupname>
133
+                                            <sources>
134
+                                                <source>
135
+                                                    <location>${basedir}/../../game/lwjgl/src/main/resources/icon.png</location>
136
+                                                </source>
137
+                                            </sources>
138
+                                        </mapping>
139
+                                        <mapping>
140
+                                            <directory>/opt/newton-adventure</directory>
141
+                                            <username>root</username>
142
+                                            <groupname>root</groupname>
143
+                                            <sources>
144
+                                                <source>
145
+                                                    <location>${project.build.directory}/README.txt</location>
146
+                                                </source>
147
+                                            </sources>
148
+                                        </mapping>
149
+                                        <mapping>
150
+                                            <directory>/opt/newton-adventure/data</directory>
151
+                                            <username>root</username>
152
+                                            <groupname>root</groupname>
153
+                                            <sources>
154
+                                                <source>
155
+                                                    <location>${basedir}/../../game/data</location>
156
+                                                    <excludes>
157
+                                                        <exclude>**/*.mp3</exclude>
158
+                                                    </excludes>
159
+                                                </source>
160
+                                            </sources>
161
+                                        </mapping>
162
+                                        <mapping>
163
+                                            <directory>/opt/newton-adventure</directory>
164
+                                            <username>root</username>
165
+                                            <groupname>root</groupname>
166
+                                            <sources>
167
+                                                <source>
168
+                                                    <location>${basedir}/target/lib</location>
169
+                                                </source>
170
+                                            </sources>
171
+                                        </mapping>
172
+                                        <mapping>
173
+                                            <directory>/opt/newton-adventure/natives</directory>
174
+                                            <username>root</username>
175
+                                            <groupname>root</groupname>
176
+                                            <sources>
177
+                                                <source>
178
+                                                    <location>${basedir}/target/natives</location>
179
+                                                    <targetArchitecture>noarch</targetArchitecture>
180
+                                                    <includes>
181
+                                                        <include>*.so</include>
182
+                                                    </includes>
183
+                                                </source>
184
+                                            </sources>
185
+                                        </mapping>
186
+                                        <mapping>
187
+                                            <directory>/opt/newton-adventure/licenses</directory>
188
+                                            <username>root</username>
189
+                                            <groupname>root</groupname>
190
+                                            <sources>
191
+                                                <source>
192
+                                                    <location>${basedir}/../../licenses</location>
193
+                                                </source>
194
+                                            </sources>
195
+                                        </mapping>
196
+                                        <mapping>
197
+                                            <directory>/usr/share/applications</directory>
198
+                                            <directoryIncluded>false</directoryIncluded>
199
+                                            <username>root</username>
200
+                                            <groupname>root</groupname>
201
+                                            <sources>
202
+                                                <source>
203
+                                                    <location>${project.build.directory}/newton-adventure.desktop</location>
204
+                                                </source>
205
+                                                <source>
206
+                                                    <location>${project.build.directory}/newton-adventure-safe.desktop</location>
207
+                                                </source>
208
+                                            </sources>
209
+                                        </mapping>
210
+                                        <mapping>
211
+                                            <directory>/usr/bin</directory>
212
+                                            <directoryIncluded>false</directoryIncluded>
213
+                                            <filemode>755</filemode>
214
+                                            <username>root</username>
215
+                                            <groupname>root</groupname>
216
+                                            <sources>
217
+                                                <source>
218
+                                                    <location>${project.build.directory}/run-newton-adventure.sh</location>
219
+                                                    <destination>newton-adventure</destination>
220
+                                                </source>
221
+                                            </sources>
222
+                                        </mapping>
223
+                                    </mappings>
224
+                                </configuration>
225
+                            </execution>
226
+                        </executions>
227
+                    </plugin>
228
+                </plugins>
229
+            </build>
230
+            <dependencies>
231
+                <dependency>
232
+                    <groupId>im.bci.newtonadv</groupId>
233
+                    <artifactId>newton-adventure-lwjgl</artifactId>
234
+                </dependency>
235
+            </dependencies>
236
+        </profile>
237
+    </profiles>
238
+</project>
239
+
240
+
0 241
new file mode 100644
... ...
@@ -0,0 +1,10 @@
0
+#!/usr/bin/env xdg-open
1
+[Desktop Entry]
2
+Version=${project.version}
3
+Type=Application
4
+Terminal=false
5
+Categories=Game;
6
+Exec=/usr/bin/newton-adventure --safe
7
+Name=Newton Adventure Safe Launcher
8
+Comment=Newton Adventure Safe Launcher
9
+Icon=/opt/newton-adventure/icon.png
0 10
new file mode 100644
... ...
@@ -0,0 +1,10 @@
0
+#!/usr/bin/env xdg-open
1
+[Desktop Entry]
2
+Version=${project.version}
3
+Type=Application
4
+Terminal=false
5
+Categories=Game;
6
+Exec=/usr/bin/newton-adventure
7
+Name=Newton Adventure
8
+Comment=Newton Adventure
9
+Icon=/opt/newton-adventure/icon.png
0 10
new file mode 100644
... ...
@@ -0,0 +1,2 @@
0
+#!/usr/bin/env sh
1
+java -jar /opt/newton-adventure/newton-adventure-lwjgl-${project.version}.jar $*
0 2
deleted file mode 100755
... ...
@@ -1,241 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<!-- The MIT License (MIT)
3
-
4
-Copyright (c) 2013 devnewton <devnewton@bci.im>
5
-
6
-Permission is hereby granted, free of charge, to any person obtaining a copy
7
-of this software and associated documentation files (the "Software"), to deal
8
-in the Software without restriction, including without limitation the rights
9
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
-copies of the Software, and to permit persons to whom the Software is
11
-furnished to do so, subject to the following conditions:
12
-
13
-The above copyright notice and this permission notice shall be included in
14
-all copies or substantial portions of the Software.
15
-
16
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
-THE SOFTWARE. -->
23
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
25
-    <modelVersion>4.0.0</modelVersion>
26
-    <parent>
27
-        <groupId>im.bci.newtonadv</groupId>
28
-        <artifactId>newton-adventure</artifactId>
29
-        <version>1.16-SNAPSHOT</version>
30
-        <relativePath>../../pom.xml</relativePath>
31
-    </parent>
32
-    <artifactId>newton-adventure-rpm32</artifactId>
33
-    <packaging>pom</packaging>
34
-    <name>newton-adventure-rpm32</name>
35
-    <properties>
36
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37
-        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
38
-    </properties>
39
-    <profiles>
40
-        <profile>
41
-            <id>rpm</id>
42
-            <build>
43
-                <plugins>
44
-                    <plugin>
45
-                        <groupId>com.googlecode.mavennatives</groupId>
46
-                        <artifactId>maven-nativedependencies-plugin</artifactId>
47
-                        <version>0.0.7</version>
48
-                        <executions>
49
-                            <execution>
50
-                                <id>unpacknatives</id>
51
-                                <phase>generate-resources</phase>
52
-                                <goals>
53
-                                    <!--suppress MavenModelInspection (this line is for IDEA) -->
54
-                                    <goal>copy</goal>
55
-                                </goals>
56
-                            </execution>
57
-                        </executions>
58
-                    </plugin>
59
-                    <plugin>
60
-                        <artifactId>maven-resources-plugin</artifactId>
61
-                        <version>2.6</version>
62
-                        <executions>
63
-                            <execution>
64
-                                <id>copy-resources</id>
65
-                                <phase>prepare-package</phase>
66
-                                <goals>
67
-                                    <goal>copy-resources</goal>
68
-                                </goals>
69
-                                <configuration>
70
-                                    <outputDirectory>${project.build.directory}</outputDirectory>
71
-                                    <resources>
72
-                                        <resource>
73
-                                            <directory>${basedir}/src/launchers</directory>
74
-                                            <filtering>true</filtering>
75
-                                        </resource>
76
-                                        <resource>
77
-                                            <directory>${basedir}/../generic/src</directory>
78
-                                            <filtering>true</filtering>
79
-                                            <includes>
80
-                                                <include>README.txt</include>
81
-                                            </includes>
82
-                                        </resource>
83
-                                    </resources>
84
-                                </configuration>
85
-                            </execution>
86
-                        </executions>
87
-                    </plugin>
88
-                    <plugin>
89
-                        <groupId>org.apache.maven.plugins</groupId>
90
-                        <artifactId>maven-dependency-plugin</artifactId>
91
-                        <version>2.8</version>
92
-                        <executions>
93
-                            <execution>
94
-                                <id>copy-dependencies</id>
95
-                                <phase>package</phase>
96
-                                <goals>
97
-                                    <goal>copy-dependencies</goal>
98
-                                </goals>
99
-                                <configuration>
100
-                                    <excludeTransitive>false</excludeTransitive>
101
-                                    <outputDirectory>${project.build.directory}/lib</outputDirectory>
102
-                                </configuration>
103
-                            </execution>
104
-                        </executions>
105
-                    </plugin>
106
-                    <plugin>
107
-                        <groupId>org.codehaus.mojo</groupId>
108
-                        <artifactId>rpm-maven-plugin</artifactId>
109
-                        <version>2.1-alpha-3</version>
110
-                        <extensions>true</extensions>
111
-                        <executions>
112
-                            <execution>
113
-                                <id>generate-rpm</id>
114
-                                <goals>
115
-                                    <goal>rpm</goal>
116
-                                </goals>
117
-                                <configuration>
118
-                                    <copyright>2009 devnewton</copyright>
119
-                                    <group>Application/Games</group>
120
-                                    <name>newton-adventure</name>
121
-                                    <packager>devnewton</packager>
122
-                                    <needarch>i686</needarch>
123
-                                    <requires>
124
-                                        <require>java &gt; 1-1.7.0 </require>
125
-                                    </requires>
126
-                                    <mappings>
127
-                                        <mapping>
128
-                                            <directory>/opt/newton-adventure</directory>
129
-                                            <username>root</username>
130
-                                            <groupname>root</groupname>
131
-                                            <sources>
132
-                                                <source>
133
-                                                    <location>${basedir}/../../game/lwjgl/src/main/resources/icon.png</location>
134
-                                                </source>
135
-                                            </sources>
136
-                                        </mapping>
137
-                                        <mapping>
138
-                                            <directory>/opt/newton-adventure</directory>
139
-                                            <username>root</username>
140
-                                            <groupname>root</groupname>
141
-                                            <sources>
142
-                                                <source>
143
-                                                    <location>${project.build.directory}/README.txt</location>
144
-                                                </source>
145
-                                            </sources>
146
-                                        </mapping>
147
-                                        <mapping>
148
-                                            <directory>/opt/newton-adventure/data</directory>
149
-                                            <username>root</username>
150
-                                            <groupname>root</groupname>
151
-                                            <sources>
152
-                                                <source>
153
-                                                    <location>${basedir}/../../game/data</location>
154
-                                                    <excludes>
155
-                                                        <exclude>**/*.mp3</exclude>
156
-                                                    </excludes>
157
-                                                </source>
158
-                                            </sources>
159
-                                        </mapping>
160
-                                        <mapping>
161
-                                            <directory>/opt/newton-adventure</directory>
162
-                                            <username>root</username>
163
-                                            <groupname>root</groupname>
164
-                                            <sources>
165
-                                                <source>
166
-                                                    <location>${basedir}/target/lib</location>
167
-                                                </source>
168
-                                            </sources>
169
-                                        </mapping>
170
-                                        <mapping>
171
-                                            <directory>/opt/newton-adventure/natives</directory>
172
-                                            <username>root</username>
173
-                                            <groupname>root</groupname>
174
-                                            <sources>
175
-                                                <source>
176
-                                                    <location>${basedir}/target/natives</location>
177
-                                                    <targetArchitecture>i686</targetArchitecture>
178
-                                                    <includes>
179
-                                                        <include>*.so</include>
180
-                                                    </includes>
181
-                                                    <excludes>
182
-                                                        <exclude>*64.so*</exclude>
183
-                                                    </excludes>
184
-                                                </source>
185
-                                            </sources>
186
-                                        </mapping>
187
-                                        <mapping>
188
-                                            <directory>/opt/newton-adventure/licenses</directory>
189
-                                            <username>root</username>
190
-                                            <groupname>root</groupname>
191
-                                            <sources>
192
-                                                <source>
193
-                                                    <location>${basedir}/../../licenses</location>
194
-                                                </source>
195
-                                            </sources>
196
-                                        </mapping>
197
-                                        <mapping>
198
-                                            <directory>/usr/share/applications</directory>
199
-                                            <directoryIncluded>false</directoryIncluded>
200
-                                            <username>root</username>
201
-                                            <groupname>root</groupname>
202
-                                            <sources>
203
-                                                <source>
204
-                                                    <location>${project.build.directory}/newton-adventure.desktop</location>
205
-                                                </source>
206
-                                                <source>
207
-                                                    <location>${project.build.directory}/newton-adventure-safe.desktop</location>
208
-                                                </source>
209
-                                            </sources>
210
-                                        </mapping>
211
-                                        <mapping>
212
-                                            <directory>/usr/bin</directory>
213
-                                            <directoryIncluded>false</directoryIncluded>
214
-                                            <filemode>755</filemode>
215
-                                            <username>root</username>
216
-                                            <groupname>root</groupname>
217
-                                            <sources>
218
-                                                <source>
219
-                                                    <location>${project.build.directory}/run-newton-adventure.sh</location>
220
-                                                    <destination>newton-adventure</destination>
221
-                                                </source>
222
-                                            </sources>
223
-                                        </mapping>
224
-                                    </mappings>
225
-                                </configuration>
226
-                            </execution>
227
-                        </executions>
228
-                    </plugin>
229
-                </plugins>
230
-            </build>
231
-            <dependencies>
232
-                <dependency>
233
-                    <groupId>im.bci.newtonadv</groupId>
234
-                    <artifactId>newton-adventure-lwjgl</artifactId>
235
-                </dependency>
236
-            </dependencies>
237
-        </profile>
238
-    </profiles>
239
-</project>
240
-
241
-
242 1
deleted file mode 100644
... ...
@@ -1,10 +0,0 @@
1
-#!/usr/bin/env xdg-open
2
-[Desktop Entry]
3
-Version=${project.version}
4
-Type=Application
5
-Terminal=false
6
-Categories=Game;
7
-Exec=/usr/bin/newton-adventure --safe
8
-Name=Newton Adventure Safe Launcher
9
-Comment=Newton Adventure Safe Launcher
10
-Icon=/opt/newton-adventure/icon.png
11 1
deleted file mode 100644
... ...
@@ -1,10 +0,0 @@
1
-#!/usr/bin/env xdg-open
2
-[Desktop Entry]
3
-Version=${project.version}
4
-Type=Application
5
-Terminal=false
6
-Categories=Game;
7
-Exec=/usr/bin/newton-adventure
8
-Name=Newton Adventure
9
-Comment=Newton Adventure
10
-Icon=/opt/newton-adventure/icon.png
11 1
deleted file mode 100644
... ...
@@ -1,2 +0,0 @@
1
-#!/usr/bin/env sh
2
-java -jar /opt/newton-adventure/newton-adventure-lwjgl-${project.version}.jar $*
3 1
deleted file mode 100755
... ...
@@ -1,228 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<!-- The MIT License (MIT)
3
-
4
-Copyright (c) 2013 devnewton <devnewton@bci.im>
5
-
6
-Permission is hereby granted, free of charge, to any person obtaining a copy
7
-of this software and associated documentation files (the "Software"), to deal
8
-in the Software without restriction, including without limitation the rights
9
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
-copies of the Software, and to permit persons to whom the Software is
11
-furnished to do so, subject to the following conditions:
12
-
13
-The above copyright notice and this permission notice shall be included in
14
-all copies or substantial portions of the Software.
15
-
16
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
-THE SOFTWARE. -->
23
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
25
-    <modelVersion>4.0.0</modelVersion>
26
-    <parent>
27
-        <groupId>im.bci.newtonadv</groupId>
28
-        <artifactId>newton-adventure</artifactId>
29
-        <version>1.16-SNAPSHOT</version>
30
-        <relativePath>../../pom.xml</relativePath>
31
-    </parent>
32
-    <artifactId>newton-adventure-rpm64</artifactId>
33
-    <packaging>pom</packaging>
34
-    <name>newton-adventure-rpm64</name>
35
-    <properties>
36
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37
-        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
38
-    </properties>
39
-    <profiles>
40
-        <profile>
41
-            <id>rpm</id>
42
-            <build>
43
-                <plugins>
44
-                    <plugin>
45
-                        <groupId>com.googlecode.mavennatives</groupId>
46
-                        <artifactId>maven-nativedependencies-plugin</artifactId>
47
-                        <version>0.0.7</version>
48
-                        <executions>
49
-                            <execution>
50
-                                <id>unpacknatives</id>
51
-                                <phase>generate-resources</phase>
52
-                                <goals>
53
-                                    <!--suppress MavenModelInspection (this line is for IDEA) -->
54
-                                    <goal>copy</goal>
55
-                                </goals>
56
-                            </execution>
57
-                        </executions>
58
-                    </plugin>
59
-                    <plugin>
60
-                        <artifactId>maven-resources-plugin</artifactId>
61
-                        <version>2.6</version>
62
-                        <executions>
63
-                            <execution>
64
-                                <id>copy-resources</id>
65
-                                <phase>prepare-package</phase>
66
-                                <goals>
67
-                                    <goal>copy-resources</goal>
68
-                                </goals>
69
-                                <configuration>
70
-                                    <outputDirectory>${project.build.directory}</outputDirectory>
71
-                                    <resources>
72
-                                        <resource>
73
-                                            <directory>${basedir}/src/launchers</directory>
74
-                                            <filtering>true</filtering>
75
-                                        </resource>
76
-                                        <resource>
77
-                                            <directory>${basedir}/../generic/src</directory>
78
-                                            <filtering>true</filtering>
79
-                                            <includes>
80
-                                                <include>README.txt</include>
81
-                                            </includes>
82
-                                        </resource>
83
-                                    </resources>
84
-                                </configuration>
85
-                            </execution>
86
-                        </executions>
87
-                    </plugin>
88
-                    <plugin>
89
-                        <groupId>org.apache.maven.plugins</groupId>
90
-                        <artifactId>maven-dependency-plugin</artifactId>
91
-                        <version>2.8</version>
92
-                        <executions>
93
-                            <execution>
94
-                                <id>copy-dependencies</id>
95
-                                <phase>package</phase>
96
-                                <goals>
97
-                                    <goal>copy-dependencies</goal>
98
-                                </goals>
99
-                                <configuration>
100
-                                    <excludeTransitive>false</excludeTransitive>
101
-                                    <outputDirectory>${project.build.directory}/lib</outputDirectory>
102
-                                </configuration>
103
-                            </execution>
104
-                        </executions>
105
-                    </plugin>
106
-                    <plugin>
107
-                        <groupId>org.codehaus.mojo</groupId>
108
-                        <artifactId>rpm-maven-plugin</artifactId>
109
-                        <version>2.1-alpha-3</version>
110
-                        <extensions>true</extensions>
111
-                        <executions>
112
-                            <execution>
113
-                                <id>generate-rpm</id>
114
-                                <goals>
115
-                                    <goal>rpm</goal>
116
-                                </goals>
117
-                                <configuration>
118
-                                    <copyright>2009 devnewton</copyright>
119
-                                    <group>Application/Games</group>
120
-                                    <name>newton-adventure</name>
121
-                                    <packager>devnewton</packager>
122
-                                    <needarch>x86_64</needarch>
123
-                                    <requires>
124
-                                        <require>java &gt; 1-1.7.0 </require>
125
-                                    </requires>
126
-                                    <mappings>
127
-                                        <mapping>
128
-                                            <directory>/opt/newton-adventure</directory>
129
-                                            <username>root</username>
130
-                                            <groupname>root</groupname>
131
-                                            <sources>
132
-                                                <source>
133
-                                                    <location>${project.build.directory}/README.txt</location>
134
-                                                </source>
135
-                                            </sources>
136
-                                        </mapping>
137
-                                        <mapping>
138
-                                            <directory>/opt/newton-adventure/data</directory>
139
-                                            <username>root</username>
140
-                                            <groupname>root</groupname>
141
-                                            <sources>
142
-                                                <source>
143
-                                                    <location>${basedir}/../../game/data</location>
144
-                                                    <excludes>
145
-                                                        <exclude>**/*.mp3</exclude>
146
-                                                    </excludes>
147
-                                                </source>
148
-                                            </sources>
149
-                                        </mapping>
150
-                                        <mapping>
151
-                                            <directory>/opt/newton-adventure</directory>
152
-                                            <username>root</username>
153
-                                            <groupname>root</groupname>
154
-                                            <sources>
155
-                                                <source>
156
-                                                    <location>${basedir}/target/lib</location>
157
-                                                </source>
158
-                                            </sources>
159
-                                        </mapping>
160
-                                        <mapping>
161
-                                            <directory>/opt/newton-adventure/natives</directory>
162
-                                            <username>root</username>
163
-                                            <groupname>root</groupname>
164
-                                            <sources>
165
-                                                <source>
166
-                                                    <location>${basedir}/target/natives</location>
167
-                                                    <targetArchitecture>x86_64</targetArchitecture>
168
-                                                    <includes>
169
-                                                        <include>*64.so*</include>
170
-                                                    </includes>
171
-                                                </source>
172
-                                            </sources>
173
-                                        </mapping>
174
-                                        <mapping>
175
-                                            <directory>/opt/newton-adventure/licenses</directory>
176
-                                            <username>root</username>
177
-                                            <groupname>root</groupname>
178
-                                            <sources>
179
-                                                <source>
180
-                                                    <location>${basedir}/../../licenses</location>
181
-                                                </source>
182
-                                            </sources>
183
-                                        </mapping>
184
-                                        <mapping>
185
-                                            <directory>/usr/share/applications</directory>
186
-                                            <directoryIncluded>false</directoryIncluded>
187
-                                            <username>root</username>
188
-                                            <groupname>root</groupname>
189
-                                            <sources>
190
-                                                <source>
191
-                                                    <location>${project.build.directory}/newton-adventure.desktop</location>
192
-                                                </source>
193
-                                                <source>
194
-                                                    <location>${project.build.directory}/newton-adventure-safe.desktop</location>
195
-                                                </source>
196
-                                            </sources>
197
-                                        </mapping>
198
-                                        <mapping>
199
-                                            <directory>/usr/bin</directory>
200
-                                            <directoryIncluded>false</directoryIncluded>
201
-                                            <filemode>755</filemode>
202
-                                            <username>root</username>
203
-                                            <groupname>root</groupname>
204
-                                            <sources>
205
-                                                <source>
206
-                                                    <location>${project.build.directory}/run-newton-adventure.sh</location>
207
-                                                    <destination>newton-adventure</destination>
208
-                                                </source>
209
-                                            </sources>
210
-                                        </mapping>
211
-                                    </mappings>
212
-                                </configuration>
213
-                            </execution>
214
-                        </executions>
215
-                    </plugin>
216
-                </plugins>
217
-            </build>
218
-            <dependencies>
219
-                <dependency>
220
-                    <groupId>im.bci.newtonadv</groupId>
221
-                    <artifactId>newton-adventure-lwjgl</artifactId>
222
-                </dependency>
223
-            </dependencies>
224
-        </profile>
225
-    </profiles>
226
-</project>
227
-
228
-
229 1
deleted file mode 100644
... ...
@@ -1,10 +0,0 @@
1
-#!/usr/bin/env xdg-open
2
-[Desktop Entry]
3
-Version=${project.version}
4
-Type=Application
5
-Terminal=false
6
-Categories=Game;
7
-Exec=/usr/bin/newton-adventure --safe
8
-Name=Newton Adventure Safe Launcher
9
-Comment=Newton Adventure Safe Launcher
10
-Icon=/opt/newton-adventure/icon.png
11 1
deleted file mode 100644
... ...
@@ -1,10 +0,0 @@
1
-#!/usr/bin/env xdg-open
2
-[Desktop Entry]
3
-Version=${project.version}
4
-Type=Application
5
-Terminal=false
6
-Categories=Game;
7
-Exec=/usr/bin/newton-adventure
8
-Name=Newton Adventure
9
-Comment=Newton Adventure
10
-Icon=/opt/newton-adventure/icon.png
11 1
deleted file mode 100644
... ...
@@ -1,2 +0,0 @@
1
-#!/usr/bin/env sh
2
-java -jar /opt/newton-adventure/newton-adventure-lwjgl-${project.version}.jar $*
3 1
new file mode 100755
... ...
@@ -0,0 +1,2 @@
0
+#!/bin/bash
1
+mvn -Pplay integration-test
... ...
@@ -20,8 +20,7 @@
20 20
         <module>editor</module>
21 21
         <module>packages/deb</module>
22 22
         <module>packages/generic</module>
23
-        <module>packages/rpm32</module>
24
-        <module>packages/rpm64</module>
23
+        <module>packages/rpm</module>
25 24
         <module>packages/win</module>
26 25
         <module>mods/bald</module>
27 26
         <module>mods/duchatelet</module>
... ...
@@ -71,6 +70,25 @@
71 71
             </dependency>
72 72
         </dependencies>
73 73
     </dependencyManagement>
74
-
74
+    <profiles>
75
+        <profile>
76
+            <id>java</id>
77
+            <activation>
78
+                <activeByDefault>true</activeByDefault>
79
+            </activation>
80
+        </profile>
81
+        <profile>
82
+            <id>play</id>
83
+        </profile>
84
+        <profile>
85
+            <id>android</id>
86
+        </profile>
87
+        <profile>
88
+            <id>ios</id>
89
+        </profile>
90
+        <profile>
91
+            <id>html</id>
92
+        </profile>        
93
+    </profiles>
75 94
 </project>
76 95
 
77 96
deleted file mode 100755
... ...
@@ -1,8 +0,0 @@
1
-#!/bin/bash
2
-mvn clean package -Pwin,deb,rpm
3
-mkdir -p target/release
4
-cp packages/generic/target/newton-adventure-installer*.jar target/release/
5
-cp packages/win/target/newton-adventure-installer*.exe target/release/
6
-cp packages/deb/target/newton-adventure*.deb target/release/
7
-cp packages/rpm32/target/rpm/newton-adventure/RPMS/*/newton-adventure-*.rpm target/release/
8
-cp packages/rpm64/target/rpm/newton-adventure/RPMS/*/newton-adventure-*.rpm target/release/