Skip to content

Commit

Permalink
Simplify deb build
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Sep 8, 2024
1 parent 054db4c commit 1548501
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 48 deletions.
2 changes: 0 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
<copy file="${dir.build}/dayon.jar" todir="${dir.dist}"/>
<copy todir="${dir.dist}">
<fileset dir="${dir.res}">
<exclude name="deb/"/>
<exclude name="snap/"/>
<exclude name="jre/"/>
<exclude name="jrex/"/>
Expand All @@ -79,7 +78,6 @@
<copy file="${dir.build}/dayon.jar" todir="${dir.ppa}"/>
<copy todir="${dir.ppa}">
<fileset dir="${dir.res}">
<exclude name="deb/"/>
<exclude name="snap/"/>
<exclude name="jre/"/>
<exclude name="jrex/"/>
Expand Down
11 changes: 6 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,12 @@
<target>dayon_assisted.sh</target>
</fileSet>
<fileSet>
<source>${basedir}/resources/deb/</source>
<target>deb</target>
<source>${basedir}/debian/dayon_assistant.desktop</source>
<target>dayon_assistant.desktop</target>
</fileSet>
<fileSet>
<source>${basedir}/debian/dayon_assisted.desktop</source>
<target>dayon_assisted.desktop</target>
</fileSet>
</fileSets>
</configuration>
Expand Down Expand Up @@ -435,7 +439,6 @@
<directory>resources</directory>
<include>**/*</include>
<excludes>
<exclude>deb/</exclude>
<exclude>jrex/</exclude>
<exclude>snap/</exclude>
</excludes>
Expand Down Expand Up @@ -505,7 +508,6 @@
<directory>resources</directory>
<include>**/*</include>
<excludes>
<exclude>deb/</exclude>
<exclude>jre/</exclude>
<exclude>jrex/legal/</exclude>
<exclude>snap/</exclude>
Expand Down Expand Up @@ -575,7 +577,6 @@
<directory>resources</directory>
<include>**/*</include>
<excludes>
<exclude>deb/</exclude>
<exclude>jre/</exclude>
<exclude>jrex/legal/</exclude>
<exclude>snap/</exclude>
Expand Down
20 changes: 0 additions & 20 deletions resources/deb/dayon_assistant.desktop

This file was deleted.

20 changes: 0 additions & 20 deletions resources/deb/dayon_assisted.desktop

This file was deleted.

3 changes: 2 additions & 1 deletion src/main/deb/postinst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cp ${config.installDir}/deb/*.desktop /usr/share/applications/
mv ${config.installDir}/*.desktop /usr/share/applications/
mv ${config.installDir}/dayon.png usr/share/icons
chmod +x ${config.installDir}/*.sh
ln -s ${config.installDir}/dayon_assisted.sh /usr/bin/dayon_assisted
ln -s ${config.installDir}/dayon_assistant.sh /usr/bin/dayon_assistant
1 change: 1 addition & 0 deletions src/main/deb/postrm
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
rm -f /usr/share/applications/dayon_assistant.desktop
rm -f /usr/share/applications/dayon_assisted.desktop
rm -f /usr/share/icons/dayon.png
rm -f /usr/bin/dayon_assisted
rm -f /usr/bin/dayon_assistant

0 comments on commit 1548501

Please sign in to comment.