1 Star 0 Fork 0

dou/YUView

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
deployment_mac.sh 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
if [ $# -ne 1 ]
then
echo "Usage: `basename $0` {build directory}"
exit 4
fi
# these paths need to be adapted to the local system
QMAKE="/Users/jaeger/Qt/5.4/clang_64/bin/qmake"
MACDEPLOY="/Users/jaeger/Qt/5.4/clang_64/bin/macdeployqt"
# make sure that we have the latest version
svn update
# find version
VERSION=$(git describe)
DIRNAME="YUView_$VERSION-Mac"
BUILD_DIR=$1
SRC_DIR=$(pwd)
PRO_FILE=$SRC_DIR/YUView.pro
# step 0: run qmake+make
$QMAKE $PRO_FILE -r -spec macx-g++ CONFIG+=release CONFIG+=x86_64
make clean -w
rm -rf $BUILD_DIR/YUView.app
make -w
# step 1: make application deployable
$MACDEPLOY $BUILD_DIR/YUView.app
# step 1.1: update Info.plist with version number
/usr/libexec/PlistBuddy -c "Set CFBundleShortVersionString '${VERSION}'" $BUILD_DIR/YUView.app/Contents/Info.plist
# step 2: copy files to temporary directory
mkdir $DIRNAME
cp -r $BUILD_DIR/YUView.app $DIRNAME/
# step 3: compress files
ditto -c -k --keepParent $DIRNAME ../$DIRNAME.zip
# step 4: clean up
rm -rf $DIRNAME/
make clean -w
rm -rf $BUILD_DIR/YUView.app
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hengq/YUView.git
git@gitee.com:hengq/YUView.git
hengq
YUView
YUView
TikzExport

搜索帮助

0d507c66 1850385 C8b1a773 1850385