mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-06-23 17:39:35 +02:00
chore: Remove deprecated build scripts
This commit is contained in:
94
build_mac.sh
94
build_mac.sh
@@ -1,94 +0,0 @@
|
||||
#!/bin/bash
|
||||
export QMAKE_MAC_SDK="macosx"
|
||||
export QMAKESPEC="macx-clang"
|
||||
export QMAKE_MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
|
||||
main()
|
||||
{
|
||||
if [ $# -eq 0 ]; then
|
||||
usage
|
||||
exit
|
||||
fi
|
||||
|
||||
while [ "$1" != "" ]; do
|
||||
case $1 in
|
||||
-h | --help | help | usage )
|
||||
usage
|
||||
exit
|
||||
;;
|
||||
all )
|
||||
configure
|
||||
compile
|
||||
bundle
|
||||
exit
|
||||
;;
|
||||
configure )
|
||||
configure
|
||||
;;
|
||||
compile )
|
||||
compile
|
||||
;;
|
||||
bundle )
|
||||
bundle
|
||||
;;
|
||||
* )
|
||||
usage
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
}
|
||||
|
||||
usage()
|
||||
{
|
||||
echo "Usage: $0 [ all | configure | compile | bundle ]"
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
echo "==> Configuring"
|
||||
qbs setup-toolchains --detect
|
||||
qbs setup-qt $(which qmake) qt
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "==> Done configuring"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
compile()
|
||||
{
|
||||
echo "==> Compiling"
|
||||
qbs config:release profile:qt
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "==> Done compiling"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
bundle()
|
||||
{
|
||||
BUNDLE=fwbuilder.app
|
||||
BIN=${BUNDLE}/Contents/MacOS
|
||||
|
||||
echo "==> Bundling"
|
||||
qbs install --install-root . config:release profile:qt
|
||||
|
||||
echo "==> Stripping binaries"
|
||||
strip ${BIN}/*
|
||||
|
||||
echo "==> Running macdeployqt"
|
||||
macdeployqt ${BUNDLE} -executable=${BIN}/fwbedit -executable=${BIN}/fwb_ipt -executable=${BIN}/fwb_pf -executable=${BIN}/fwb_ipf -executable=${BIN}/fwb_ipfw -executable=${BIN}/fwb_iosacl -executable=${BIN}/fwb_nxosacl -executable=${BIN}/fwb_pix -executable=${BIN}/fwb_procurve_acl -executable=${BIN}/fwb_junosacl
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "==> Done bundling"
|
||||
echo " To open bundle:"
|
||||
echo " # open ${BUNDLE}/"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
main "$@"
|
||||
@@ -1,80 +0,0 @@
|
||||
#!/bin/bash
|
||||
export PATH=/usr/lib/mxe/usr/bin:$PATH
|
||||
|
||||
main()
|
||||
{
|
||||
if [ $# -eq 0 ]; then
|
||||
usage
|
||||
exit
|
||||
fi
|
||||
|
||||
while [ "$1" != "" ]; do
|
||||
case $1 in
|
||||
-h | --help | help | usage )
|
||||
usage
|
||||
exit
|
||||
;;
|
||||
all )
|
||||
configure
|
||||
compile
|
||||
package
|
||||
exit
|
||||
;;
|
||||
configure )
|
||||
configure
|
||||
;;
|
||||
compile )
|
||||
compile
|
||||
;;
|
||||
package )
|
||||
package
|
||||
;;
|
||||
* )
|
||||
usage
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
}
|
||||
|
||||
usage()
|
||||
{
|
||||
echo "Usage: $0 [ all | configure | compile | package ]"
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
echo "==> Configuring"
|
||||
qbs setup-toolchains /usr/lib/mxe/usr/bin/i686-w64-mingw32.shared-g++ mingw32
|
||||
qbs setup-qt /usr/lib/mxe/usr/i686-w64-mingw32.shared/qt5/bin/qmake qt
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "==> Done configuring"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
compile()
|
||||
{
|
||||
echo "==> Compiling"
|
||||
qbs release profile:qt
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "==> Done compiling"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
package()
|
||||
{
|
||||
echo "==> Packaging"
|
||||
makensis release/install-root/fwbuilder.nsi
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "==> Done packaging"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
main "$@"
|
||||
Reference in New Issue
Block a user