chiark / gitweb /
Some small fixes suggested by Erik after testing.
[cura.git] / package.sh
index 748829e37d5940c01672fadd11312fb26b8bc884..cb1c1484054be0f61f797cad8658308c2885dcb5 100755 (executable)
@@ -16,7 +16,7 @@ BUILD_TARGET=${1:-all}
 ##Do we need to create the final archive
 ARCHIVE_FOR_DISTRIBUTION=1
 ##Which version name are we appending to the final archive
-BUILD_NAME=12.12
+BUILD_NAME=13.01
 TARGET_DIR=Cura-${BUILD_NAME}-${BUILD_TARGET}
 
 ##Which versions of external programs to use
@@ -90,6 +90,8 @@ fi
 #############################
 
 if [ "$BUILD_TARGET" = "darwin" ]; then
+    TARGET_DIR=Cura-${BUILD_NAME}-MacOS
+
        rm -rf scripts/darwin/build
        rm -rf scripts/darwin/dist
 
@@ -106,6 +108,9 @@ if [ "$BUILD_TARGET" = "darwin" ]; then
        #For now, just copy all of Cura so pypy can find it
        cp -a Cura scripts/darwin/dist/Cura.app/Contents/Resources/
 
+    #Add cura version file (should read the version from the bundle with pyobjc, but will figure that out later)
+    echo $BUILD_NAME > scripts/darwin/dist/Cura.app/Contents/Resources/version
+
        cd scripts/darwin
 
        # Install QuickLook plugin