CQtDeployer/snapBuild.sh

26 lines
422 B
Bash
Raw Normal View History

2018-09-15 11:49:26 +03:00
#!/bin/bash
2018-12-08 13:39:16 +03:00
BASE_DIR=$(dirname "$(readlink -f "$0")")
2018-09-15 11:49:26 +03:00
2018-09-20 16:53:08 +03:00
echo "clean build dir"
2018-12-08 11:52:04 +03:00
rm -rfd $BASE_DIR/distro
2018-09-15 11:49:26 +03:00
2018-12-08 13:39:16 +03:00
chmod a+rx $BASE_DIR/wrapper/bin/desktop-launch
2018-09-20 16:53:08 +03:00
echo "Start static build"
2018-12-08 11:52:04 +03:00
$BASE_DIR/staticBuild.sh Q_OS_LINUX_SNAP
if [ $? -eq 0 ]
then
echo ""
echo "staticBuild is successfully completed!"
else
echo ""
echo "staticBuild is failed!" >&2
exit 1
fi
2018-09-22 16:35:20 +03:00
2018-09-22 16:54:52 +03:00
snapcraft clean cqtdeployer -s pull
2018-09-22 16:35:20 +03:00
snapcraft