diff --git a/debian/debian/changelog b/debian/DEBIAN/changelog similarity index 100% rename from debian/debian/changelog rename to debian/DEBIAN/changelog diff --git a/debian/debian/control b/debian/DEBIAN/control similarity index 100% rename from debian/debian/control rename to debian/DEBIAN/control diff --git a/debian/debian/copyright b/debian/DEBIAN/copyright similarity index 100% rename from debian/debian/copyright rename to debian/DEBIAN/copyright diff --git a/debian/debian/rules b/debian/debian/rules deleted file mode 100644 index 4e68614..0000000 --- a/debian/debian/rules +++ /dev/null @@ -1,2 +0,0 @@ -%: - dh $@ diff --git a/scripts/debian_arch.sh b/scripts/debian_arch.sh deleted file mode 100644 index 8295546..0000000 --- a/scripts/debian_arch.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -sed -i '/Architecture:/d' debian/debian/control -echo "Architecture: $1" >> debian/debian/control diff --git a/scripts/debian_build.sh b/scripts/debian_build.sh new file mode 100644 index 0000000..af067b6 --- /dev/null +++ b/scripts/debian_build.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# $1 is the binary location, $2 is the arch, $3 is the svg icon +fakeroot sh -c ' + mkdir tmp + dpkg-deb -R template.deb tmp + sed -i '/Architecture:/d' tmp/DEBIAN/control + echo "Architecture: $2" >> tmp/DEBIAN/control + rm -rf tmp/usr/lib/nickelbridge + rsync -rv "$1" tmp/usr/lib/nickelbridge + cp "$3" tmp/usr/lib/nickelbridge/logo.svg + dpkg-deb -b tmp "out/nickelbridge_1.0.0_$2.deb" +' diff --git a/scripts/debian_setup.sh b/scripts/debian_setup.sh deleted file mode 100644 index ba37ab9..0000000 --- a/scripts/debian_setup.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -cd debian -mkdir -p usr/lib/nickelbridge -#wget -O usr/share/doc/nickelbridge/copyright https://source.netsyms.com/Business/NickelBridge/raw/branch/master/LICENSE.md -#cp usr/share/doc/nickelbridge/copyright debian/copyright diff --git a/template.deb b/template.deb new file mode 100644 index 0000000..8a30702 Binary files /dev/null and b/template.deb differ