Add warnings for users manually running `build_installer.sh` and `reref_dylibs.sh` manually

This commit is contained in:
Chris Simons 2020-05-02 13:27:58 -07:00
parent 8cd59ebee7
commit fb3eaa3e3c
2 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,10 @@
#!/bin/sh #!/bin/sh
# add warning for users running manually
function warn() { tput bold; tput setaf 3; echo "$@"; tput sgr0 ; }
warn "The scripts build_installer.sh and reref_dylibs.sh have been deprecated."
warn "Please use build_dist.sh instead to deploy using macdeployqt"
# change this to rename the installer package # change this to rename the installer package
B_DMG="Barrier-@BARRIER_VERSION@.dmg" B_DMG="Barrier-@BARRIER_VERSION@.dmg"

View File

@ -3,6 +3,12 @@
# $1 = binary (program or dylib) # $1 = binary (program or dylib)
B_TARGET=$1 B_TARGET=$1
if [ "x$B_TARGET" = "x" ]; then if [ "x$B_TARGET" = "x" ]; then
# add warning for users running manually
function warn() { tput bold; tput setaf 3; echo "$@"; tput sgr0 ; }
warn "The scripts build_installer.sh and reref_dylibs.sh have been deprecated."
warn "Please use build_dist.sh instead to deploy using macdeployqt"
echo Which binary needs to be re-referenced? echo Which binary needs to be re-referenced?
exit 1 exit 1
fi fi