Hopefully make debian builds work

This commit is contained in:
Skylar Ittner 2018-06-09 14:51:49 -06:00
parent f23be35d18
commit 2bde9d0361
8 changed files with 12 additions and 10 deletions

2
debian/debian/rules vendored
View File

@ -1,2 +0,0 @@
%:
dh $@

View File

@ -1,3 +0,0 @@
#!/bin/bash
sed -i '/Architecture:/d' debian/debian/control
echo "Architecture: $1" >> debian/debian/control

12
scripts/debian_build.sh Normal file
View File

@ -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"
'

View File

@ -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

BIN
template.deb Normal file

Binary file not shown.