##Do we need to create the final archive
ARCHIVE_FOR_DISTRIBUTION=1
##Which version name are we appending to the final archive
##Do we need to create the final archive
ARCHIVE_FOR_DISTRIBUTION=1
##Which version name are we appending to the final archive
TARGET_DIR=Cura-${BUILD_NAME}-${BUILD_TARGET}
##Which versions of external programs to use
WIN_PORTABLE_PY_VERSION=2.7.2.1
TARGET_DIR=Cura-${BUILD_NAME}-${BUILD_TARGET}
##Which versions of external programs to use
WIN_PORTABLE_PY_VERSION=2.7.2.1
#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
#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
rm -rf scripts/linux/debian/usr/share/cura
mkdir -p scripts/linux/debian/usr/share/cura
cp -a Cura scripts/linux/debian/usr/share/cura/
rm -rf scripts/linux/debian/usr/share/cura
mkdir -p scripts/linux/debian/usr/share/cura
cp -a Cura scripts/linux/debian/usr/share/cura/
cp scripts/linux/cura.py scripts/linux/debian/usr/share/cura/
cp -a Power/power scripts/linux/debian/usr/share/cura/
echo $BUILD_NAME > scripts/linux/debian/usr/share/cura/Cura/version
sudo chown root:root scripts/linux/debian -R
cp scripts/linux/cura.py scripts/linux/debian/usr/share/cura/
cp -a Power/power scripts/linux/debian/usr/share/cura/
echo $BUILD_NAME > scripts/linux/debian/usr/share/cura/Cura/version
sudo chown root:root scripts/linux/debian -R