Skip to content

Commit e95a395

Browse files
committed
Build hyperleda installer for MacOS
1 parent cd2a38f commit e95a395

File tree

2 files changed

+716
-0
lines changed

2 files changed

+716
-0
lines changed

build_hyperledamac.sh

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
3+
# make the hyperleda dmg installer
4+
5+
basedir=/Volumes/TmpInst/hyperleda # Be sure this is set to a non existent directory, it is removed after the run!
6+
7+
mkdir -p $basedir
8+
9+
10+
wd=`pwd`
11+
12+
cp system_integration/MacOSX/hyperleda.pkgproj $basedir
13+
cd $basedir
14+
mkdir CCDciel
15+
mkdir CCDciel/data
16+
mkdir CCDciel/data/dso
17+
cd CCDciel/data/dso
18+
curl -L -o hyperleda.tar.xz http://sourceforge.net/projects/ccdciel/files/hyperleda/hyperleda_ccdciel.tar.xz
19+
tar xf hyperleda.tar.xz
20+
rm hyperleda.tar.xz
21+
mv hyperleda_ccdciel/share/ccdciel/data/dso/hyperleda.csv .
22+
rmdir hyperleda_ccdciel/share/ccdciel/data/dso
23+
rmdir hyperleda_ccdciel/share/ccdciel/data
24+
rmdir hyperleda_ccdciel/share/ccdciel
25+
rmdir hyperleda_ccdciel/share
26+
rmdir hyperleda_ccdciel
27+
cd $basedir
28+
packagesbuild -v hyperleda.pkgproj
29+
if [[ $? -ne 0 ]]; then exit 1;fi
30+
hdiutil create -anyowners -volname hyperleda-ccdciel -imagekey zlib-level=9 -format UDZO -srcfolder ./build hyperleda-ccdciel.dmg
31+
if [[ $? -ne 0 ]]; then exit 1;fi
32+
mv hyperleda-ccdciel.dmg $wd
33+
if [[ $? -ne 0 ]]; then exit 1;fi
34+
35+
cd $wd
36+
rm -rf $basedir
37+

0 commit comments

Comments
 (0)