打包输出deb包

This commit is contained in:
heavyrian2012
2022-10-21 11:07:30 +08:00
parent 8e1d56b2ca
commit 34bd59f195
3 changed files with 44 additions and 1 deletions
+35
View File
@@ -20,6 +20,13 @@
<artifactId>moquette-broker</artifactId>
<version>${project.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.vafer/jdeb -->
<dependency>
<groupId>org.vafer</groupId>
<artifactId>jdeb</artifactId>
<version>1.10</version>
<scope>compile</scope>
</dependency>
</dependencies>
@@ -93,6 +100,34 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>jdeb</artifactId>
<groupId>org.vafer</groupId>
<version>1.8</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jdeb</goal>
</goals>
<configuration>
<controlDir>${project.basedir}/src/main/deb/control</controlDir>
<skipPOMs>false</skipPOMs>
<deb>${project.build.directory}/wildfirechat-${project.version}.deb</deb>
<dataSet>
<data>
<src>${project.build.directory}/distribution-${project.version}-bundle-tar.tar.gz</src>
<type>archive</type>
<mapper>
<type>perm</type>
<prefix>/usr/local/wildfirechat/im</prefix>
</mapper>
</data>
</dataSet>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
@@ -0,0 +1,9 @@
Package: wildfirechat
Version: [[version]]
Section: misc
Priority: optional
Architecture: all
Maintainer: Wildfirechat <[email protected]>
Description: Wildfirechat IM Server
Distribution: development
Homepage: https://wildfirechat.cn
-1
View File
@@ -28,7 +28,6 @@
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.11</version>
<scope>compile</scope>
</dependency>
<dependency>