Add detailed version/build number to appimage and debian package filenames
pai
b58e58b35f
commit
0269107830
@ -1,11 +1,11 @@
|
||||
#!/bin/bash
|
||||
# $1 is the app source location, $2 is the svg icon, $3 is the app version code
|
||||
# $1 is the app source location, $2 is the svg icon, $3 is the app version code, $4 is the build number
|
||||
mkdir -p out
|
||||
rm -rf debian/usr/share/notepost
|
||||
mkdir -p debian/usr/share/notepost
|
||||
mkdir -p debian/usr/share/doc/notepost
|
||||
rsync -rv "$1" debian/usr/share/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
|
||||
sed -i "s/Version:\s[0-9.\-]\+/Version: $3+b$4/" debian/DEBIAN/control
|
||||
cp "$2" debian/usr/share/notepost/logo.svg
|
||||
dpkg-deb -b debian "out/notepost_$3+b${BUILD_NUMBER}_all.deb"
|
||||
dpkg-deb -b debian "out/notepost_$3+b${4}_all.deb"
|
||||
|
Carregando…
Referência em uma nova issue