From ae5553213170694215fe6b99183d44c67ab970cd Mon Sep 17 00:00:00 2001 From: stopiccot Date: Tue, 4 Mar 2014 03:51:24 +0000 Subject: [PATCH] script to automate osx packaging --- osx/package.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 osx/package.sh diff --git a/osx/package.sh b/osx/package.sh new file mode 100644 index 000000000..a3d0547dd --- /dev/null +++ b/osx/package.sh @@ -0,0 +1,15 @@ +# Clean previous build +rm -rf build +rm -rf bin +rm -rf osx/osx-vcmibuilder/build +rm -rf osx/vcmibuilder.app + +# Build vcmibuilder +xcodebuild -project osx/osx-vcmibuilder/vcmibuilder.xcodeproj/ -configuration Release +mv osx/osx-vcmibuilder/build/Release/vcmibuilder.app osx/vcmibuilder.app + +# Build vcmi +mkdir build +cd build +cmake -G Xcode .. -DENABLE_LAUNCHER=OFF +xcodebuild -project vcmi.xcodeproj/ -configuration Release -target package \ No newline at end of file