CQtDeployer/snapBuild.sh

33 lines
657 B
Bash
Raw Normal View History

2018-09-15 11:49:26 +03:00
#!/bin/bash
2019-01-26 07:54:56 +03:00
#
# Copyright (C) 2018-2019 QuasarApp.
# Distributed under the lgplv3 software license, see the accompanying
# Everyone is permitted to copy and distribute verbatim copies
# of this license document, but changing it is not allowed.
#
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