summaryrefslogtreecommitdiff
path: root/packaging/mac-osx/dmg-generator/Makefile
diff options
context:
space:
mode:
authorsaurabhb172020-02-26 16:14:17 +0530
committerGitHub2020-02-26 16:14:17 +0530
commit003d02608917e7a69d1a98438837e94ccf68352a (patch)
tree1392c90227aeea231c1d86371131e04c40382918 /packaging/mac-osx/dmg-generator/Makefile
parent886d9cb772e81d2e5262284bc3082664f084337f (diff)
parente255d0622297488c1c52755be670733418c994cf (diff)
downloadKiCad-eSim-003d02608917e7a69d1a98438837e94ccf68352a.tar.gz
KiCad-eSim-003d02608917e7a69d1a98438837e94ccf68352a.tar.bz2
KiCad-eSim-003d02608917e7a69d1a98438837e94ccf68352a.zip
Merge pull request #3 from saurabhb17/master
secondary files
Diffstat (limited to 'packaging/mac-osx/dmg-generator/Makefile')
-rw-r--r--packaging/mac-osx/dmg-generator/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/packaging/mac-osx/dmg-generator/Makefile b/packaging/mac-osx/dmg-generator/Makefile
new file mode 100644
index 0000000..c214afe
--- /dev/null
+++ b/packaging/mac-osx/dmg-generator/Makefile
@@ -0,0 +1,40 @@
+###########
+# KiCad OSX DMG packaging
+# Create a bin directory and copy the .app files in
+# Create a build directory
+# Then execute the makefile
+#
+# Original credits by Adium developers !
+# http://www.adium.im
+###########
+VERSION=`date +%Y%m%d`
+
+###########
+# Variables
+###########
+BUILD_DIR=build
+APP_DIR=release
+KICAD_DIR=$(BUILD_DIR)
+RELEASE_NAME=kicad-$(VERSION)
+
+###########
+# Targets
+###########
+all:
+ echo "Copying application bundles"
+ mkdir release
+ cp -R ../../../*/*.app release
+ echo "Building kicad-${VERSION}.dmg"
+ rm -rfv build
+ mkdir build
+
+ cp -r $(APP_DIR)/* $(BUILD_DIR)
+ mkdir -p $(BUILD_DIR)/.background
+ cp Artwork/dmgBackground.png $(BUILD_DIR)/.background
+ ./mkalias -r /Applications $(BUILD_DIR)/Applications
+
+ mkdir -p $(BUILD_DIR)/.background
+
+ ./make-diskimage.sh $(BUILD_DIR)/$(RELEASE_NAME).dmg $(KICAD_DIR) "KiCad" dmg_kicad.scpt $(ART_DIR)
+
+ @echo "Build finished. `md5 $(BUILD_DIR)/$(RELEASE_NAME).dmg`"