#!/bin/bash

cqtdeployer -bin ./StandBatteryView -qmlDir ../StandBatteryView/Qml force-clear -customScript "export QT_QPA_PLATFORM=eglfs" -extraLibs nl-3,nl-route-3,harfbuzz,md4c,double-conversion,pcre2-16,graphite2
cp -r /usr/lib/x86_64-linux-gnu/qt5/plugins/egldeviceintegrations ./DistributionKit/plugins
rm -rf ./StandBatteryViewLinux
mv ./DistributionKit ./StandBatteryViewLinux
tar -czf StandBatteryViewLinux.tar.gz StandBatteryViewLinux