Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaid303 <daid303@gmail.com>2013-03-07 20:13:06 +0400
committerdaid303 <daid303@gmail.com>2013-03-07 20:13:06 +0400
commit49c72182802bee2b7c98302a4e1b7ffea2ba83f2 (patch)
tree51bd1b8587b93ba6f0061501e5a22d84ca237498 /package.sh
parent1e789a4fa47c1d12cfc71301171abd109e021e08 (diff)
Add debian build target for debian .deb package.
Diffstat (limited to 'package.sh')
-rwxr-xr-xpackage.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/package.sh b/package.sh
index 457715b40d..d821e701f0 100755
--- a/package.sh
+++ b/package.sh
@@ -12,6 +12,7 @@ BUILD_TARGET=${1:-all}
#BUILD_TARGET=win32
#BUILD_TARGET=linux
#BUILD_TARGET=darwin
+#BUILD_TARGET=debian
##Do we need to create the final archive
ARCHIVE_FOR_DISTRIBUTION=1
@@ -134,6 +135,24 @@ if [ "$BUILD_TARGET" = "darwin" ]; then
exit
fi
+#############################
+# Debian .deb
+#############################
+
+if [ "$BUILD_TARGET" = "darwin" ]; then
+ git clone https://github.com/GreatFruitOmsk/Power
+ 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 Power/power scripts/linux/debian/usr/share/cura/
+ sudo chown root:root scripts/linux/debian -R
+ sudo chmod 755 scripts/linux/debian/DEBIAN/*
+ cd scripts/linux
+ dpkg-deb --build debian ${TARGET_DIR}.deb
+ sudo chown `id -un`:`id -gn` scripts/linux/debian -R
+ exit
+fi
#############################
# Rest