Files
@ 8f2355969e7e
Branch filter:
Location: linux-tools/kusbff/build.sh - annotation
8f2355969e7e
773 B
text/x-sh
Editing labels; Fix inability to format images without initial device change; a little bit of refactoring
f3f4cf108453 27a207df9b5b f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 f3f4cf108453 | #!/usr/bin/env bash
VERSION="1.0.1"
pyrcc5 pics/pics.qrc -o pics/__init__.py
rm kusbff.zip
zip -r kusbff.zip ./ -x \*.png \*.ui .hg\* .idea\* build.sh ./packaging/\* \*.pyc \*__pycache__\*
mkdir build
mkdir build/temp
# Debian/Ubuntu
mkdir build/temp/debian
cp -r packaging/debian/* build/temp/debian
mkdir -p build/temp/debian/opt/kusbff/
cp kusbff.zip build/temp/debian/opt/kusbff/
CONTROL=`cat build/temp/debian/DEBIAN/control`
CONTROL=`echo "${CONTROL//%VERSION%/$VERSION}"`
SIZE="$(du -sk --apparent-size build/temp | awk '{print $1}')"
CONTROL=`echo "${CONTROL//%SIZE%/$SIZE}"`
echo "$CONTROL" > build/temp/debian/DEBIAN/control
pushd build/temp
fakeroot dpkg-deb --build debian
popd
mv build/temp/debian.deb build/kusbff_${VERSION}.deb
# Cleanup
rm -rf build/temp
|