Add semi-automatic version numbering to debian_build.sh
parent
bb13c3a487
commit
b58e58b35f
@ -1,21 +1,21 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<component type="desktop-application">
|
<component type="desktop-application">
|
||||||
<id>notepostapp</id>
|
<id>notepostapp</id>
|
||||||
<metadata_license>MPL-2.0</metadata_license>
|
<metadata_license>MPL-2.0</metadata_license>
|
||||||
<project_license>MPL-2.0</project_license>
|
<project_license>MPL-2.0</project_license>
|
||||||
<name>NotePost</name>
|
<name>NotePost</name>
|
||||||
<summary>Desktop client for NotePost</summary>
|
<summary>Desktop client for NotePost</summary>
|
||||||
<description>
|
<description>
|
||||||
|
|
||||||
</description>
|
</description>
|
||||||
<launchable type="desktop-id">notepost.desktop</launchable>
|
<launchable type="desktop-id">notepost.desktop</launchable>
|
||||||
<url type="homepage">https://netsyms.com/apps/notepost</url>
|
<url type="homepage">https://netsyms.com/apps/notepost</url>
|
||||||
<screenshots>
|
<screenshots>
|
||||||
<screenshot type="default">
|
<screenshot type="default">
|
||||||
<image>https://netsyms.com/files/apps/notepost/app/home_desktop.png</image>
|
<image>https://netsyms.com/files/apps/notepost/app/home_desktop.png</image>
|
||||||
</screenshot>
|
</screenshot>
|
||||||
</screenshots>
|
</screenshots>
|
||||||
<provides>
|
<provides>
|
||||||
<id>notepost.desktop</id>
|
<id>notepost.desktop</id>
|
||||||
</provides>
|
</provides>
|
||||||
</component>
|
</component>
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# $1 is the app source location, $2 is the svg icon
|
# $1 is the app source location, $2 is the svg icon, $3 is the app version code
|
||||||
mkdir -p out
|
mkdir -p out
|
||||||
rm -rf debian/usr/share/notepost
|
rm -rf debian/usr/share/notepost
|
||||||
mkdir -p debian/usr/share/notepost
|
mkdir -p debian/usr/share/notepost
|
||||||
mkdir -p debian/usr/share/doc/notepost
|
mkdir -p debian/usr/share/doc/notepost
|
||||||
rsync -rv "$1" debian/usr/share/notepost
|
rsync -rv "$1" debian/usr/share/notepost
|
||||||
cp debian/DEBIAN/copyright debian/usr/share/doc/notepost/
|
cp debian/DEBIAN/copyright debian/usr/share/doc/notepost/
|
||||||
|
sed -i "s/Version:\s[0-9.\-]\+/Version: $3+b$BUILD_NUMBER/" debian/DEBIAN/control
|
||||||
cp "$2" debian/usr/share/notepost/logo.svg
|
cp "$2" debian/usr/share/notepost/logo.svg
|
||||||
dpkg-deb -b debian "out/notepost_1.3.0-1_all.deb"
|
dpkg-deb -b debian "out/notepost_$3+b${BUILD_NUMBER}_all.deb"
|
||||||
|
Loading…
Reference in New Issue