Files
@ 2e3b9132fe02
Branch filter:
Location: linux-tools/kusbff/build.sh - annotation
2e3b9132fe02
773 B
text/x-sh
fix: properly show up to 1000 disks with proper indices
f3f4cf108453 f3f4cf108453 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.0"
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
|