Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Add linux .deb export functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldieeins committed Feb 19, 2024
1 parent 1e4a581 commit bf63c30
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 6 deletions.
58 changes: 52 additions & 6 deletions application-main/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@
</dependencies>

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -76,6 +82,7 @@
</archive>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand All @@ -86,6 +93,7 @@
<release>21</release>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand All @@ -106,13 +114,51 @@
</execution>
</executions>
</plugin>

<plugin>
<artifactId>jdeb</artifactId>
<groupId>org.vafer</groupId>
<version>1.10</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jdeb</goal>
</goals>
<configuration>
<dataSet>
<data>
<src>src/deb/updater.jar</src>
<type>file</type>
<mapper>
<type>perm</type>
<filemode>755</filemode>
<prefix>/usr/bin/zyneon/application/</prefix>
</mapper>
</data>
<data>
<src>src/deb/icon.png</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/bin/zyneon/application/</prefix>
</mapper>
</data>
<data>
<src>src/deb/zyneon-application.desktop</src>
<type>file</type>
<mapper>
<type>perm</type>
<filemode>755</filemode>
<prefix>/usr/share/applications/</prefix>
</mapper>
</data>
</dataSet>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>

</project>
8 changes: 8 additions & 0 deletions application-main/src/deb/control/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Package: zyneon-application
Version: [[version]]
Section: misc
Priority: low
Architecture: all
Description: [[description]]
Maintainer: Zyneon Studios <[email protected]>
Depends: openjdk-21-jdk | openjdk-21-jre
Binary file added application-main/src/deb/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added application-main/src/deb/updater.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions application-main/src/deb/zyneon-application.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Desktop Entry]
Name=Zyneon Application
Exec=java -jar /usr/bin/zyneon/application/updater.jar
Icon=/usr/bin/zyneon/application/icon.png
Type=Application
Categories=Game;

0 comments on commit bf63c30

Please sign in to comment.