瀏覽代碼

script to automate osx packaging

stopiccot 11 年之前
父節點
當前提交
ae55532131
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      osx/package.sh

+ 15 - 0
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