Skip to content
Snippets Groups Projects
Commit be32ee74 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

more codesigning madness

parent 738142b3
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,7 @@ for m in ${MODELS}; do ...@@ -34,6 +34,7 @@ for m in ${MODELS}; do
rm -f ${m}.zip rm -f ${m}.zip
done done
if [ $# -lt 1 ] || [ $1 == "source" ]; then
rm -rf onelab-source* rm -rf onelab-source*
mkdir onelab-source mkdir onelab-source
curl -O http://gmsh.info/src/gmsh-${GMSH}-source.tgz curl -O http://gmsh.info/src/gmsh-${GMSH}-source.tgz
...@@ -56,7 +57,9 @@ rm -rf /tmp/gmsh-* ...@@ -56,7 +57,9 @@ rm -rf /tmp/gmsh-*
rm -rf /tmp/getdp-* rm -rf /tmp/getdp-*
zip -r onelab-source.zip onelab-source zip -r onelab-source.zip onelab-source
rm -rf onelab-source rm -rf onelab-source
fi
if [ $# -lt 1 ] || [ $1 == "win64" ]; then
rm -rf onelab-Windows64* rm -rf onelab-Windows64*
mkdir onelab-Windows64 mkdir onelab-Windows64
curl -O http://gmsh.info/bin/Windows/gmsh-${GMSH}-Windows64.zip curl -O http://gmsh.info/bin/Windows/gmsh-${GMSH}-Windows64.zip
...@@ -83,7 +86,9 @@ rm -rf /tmp/gmsh-* ...@@ -83,7 +86,9 @@ rm -rf /tmp/gmsh-*
rm -rf /tmp/getdp-* rm -rf /tmp/getdp-*
zip -r onelab-Windows64.zip onelab-Windows64 zip -r onelab-Windows64.zip onelab-Windows64
rm -rf onelab-Windows64 rm -rf onelab-Windows64
fi
if [ $# -lt 1 ] || [ $1 == "win32" ]; then
rm -rf onelab-Windows32* rm -rf onelab-Windows32*
mkdir onelab-Windows32 mkdir onelab-Windows32
curl -O http://gmsh.info/bin/Windows/gmsh-${GMSH}-Windows32.zip curl -O http://gmsh.info/bin/Windows/gmsh-${GMSH}-Windows32.zip
...@@ -110,7 +115,9 @@ rm -rf /tmp/gmsh-* ...@@ -110,7 +115,9 @@ rm -rf /tmp/gmsh-*
rm -rf /tmp/getdp-* rm -rf /tmp/getdp-*
zip -r onelab-Windows32.zip onelab-Windows32 zip -r onelab-Windows32.zip onelab-Windows32
rm -rf onelab-Windows32 rm -rf onelab-Windows32
fi
if [ $# -lt 1 ] || [ $1 == "linux32" ]; then
rm -rf onelab-Linux32* rm -rf onelab-Linux32*
mkdir onelab-Linux32 mkdir onelab-Linux32
curl -O http://gmsh.info/bin/Linux/gmsh-${GMSH}-Linux32.tgz curl -O http://gmsh.info/bin/Linux/gmsh-${GMSH}-Linux32.tgz
...@@ -136,7 +143,9 @@ rm -rf /tmp/gmsh-* ...@@ -136,7 +143,9 @@ rm -rf /tmp/gmsh-*
rm -rf /tmp/getdp-* rm -rf /tmp/getdp-*
zip -r onelab-Linux32.zip onelab-Linux32 zip -r onelab-Linux32.zip onelab-Linux32
rm -rf onelab-Linux32 rm -rf onelab-Linux32
fi
if [ $# -lt 1 ] || [ $1 == "linux64" ]; then
rm -rf onelab-Linux64* rm -rf onelab-Linux64*
mkdir onelab-Linux64 mkdir onelab-Linux64
curl -O http://gmsh.info/bin/Linux/gmsh-${GMSH}-Linux64.tgz curl -O http://gmsh.info/bin/Linux/gmsh-${GMSH}-Linux64.tgz
...@@ -162,20 +171,23 @@ rm -rf /tmp/gmsh-* ...@@ -162,20 +171,23 @@ rm -rf /tmp/gmsh-*
rm -rf /tmp/getdp-* rm -rf /tmp/getdp-*
zip -r onelab-Linux64.zip onelab-Linux64 zip -r onelab-Linux64.zip onelab-Linux64
rm -rf onelab-Linux64 rm -rf onelab-Linux64
fi
if [ $# -lt 1 ] || [ $1 == "mac" ]; then
rm -rf onelab-MacOSX* rm -rf onelab-MacOSX*
mkdir onelab-MacOSX mkdir onelab-MacOSX
curl -O http://gmsh.info/bin/MacOSX/gmsh-${GMSH}-MacOSX.dmg curl -O http://gmsh.info/bin/MacOSX/gmsh-${GMSH}-MacOSX.dmg
curl -O http://getdp.info/bin/MacOSX/getdp-${GETDP}-MacOSX64c.tgz curl -O http://getdp.info/bin/MacOSX/getdp-${GETDP}-MacOSX64c.tgz
mv gmsh-${GMSH}-MacOSX.dmg /tmp mv gmsh-${GMSH}-MacOSX.dmg /tmp
mv getdp-${GETDP}-MacOSX64c.tgz /tmp mv getdp-${GETDP}-MacOSX64c.tgz /tmp
# open -W /tmp/gmsh-${GMSH}-MacOSX.dmg
hdiutil convert /tmp/gmsh-${GMSH}-MacOSX.dmg -format UDTO -o /tmp/gmsh-tmp.cdr hdiutil convert /tmp/gmsh-${GMSH}-MacOSX.dmg -format UDTO -o /tmp/gmsh-tmp.cdr
hdiutil attach -nobrowse -noverify -noautoopen -mountpoint gmsh_mount /tmp/gmsh-tmp.cdr hdiutil attach -nobrowse -noverify -noautoopen -mountpoint gmsh_mount /tmp/gmsh-tmp.cdr
tar zxvf /tmp/getdp-${GETDP}-MacOSX64c.tgz -C /tmp tar zxvf /tmp/getdp-${GETDP}-MacOSX64c.tgz -C /tmp
cp /tmp/README.txt onelab-MacOSX cp /tmp/README.txt onelab-MacOSX
cp -R gmsh_mount/Gmsh.app onelab-MacOSX cp -R gmsh_mount/Gmsh.app onelab-MacOSX
mv /tmp/getdp-*${GETDP}-MacOSX/bin/getdp onelab-MacOSX/Gmsh.app/Contents/MacOS/ mv /tmp/getdp-*${GETDP}-MacOSX/bin/getdp onelab-MacOSX/Gmsh.app/Contents/MacOS/
security unlock-keychain ${HOME}/Library/Keychains/login.keychain
codesign -v --deep --sign "Developer ID Application: Christophe Geuzaine" onelab-MacOSX/Gmsh.app
cp gmsh_mount/LICENSE.txt onelab-MacOSX/LICENSE.txt cp gmsh_mount/LICENSE.txt onelab-MacOSX/LICENSE.txt
echo "\n\n" >> onelab-MacOSX/LICENSE.txt echo "\n\n" >> onelab-MacOSX/LICENSE.txt
cat /tmp/getdp-*${GETDP}-MacOSX/share/doc/getdp/LICENSE.txt >> onelab-MacOSX/LICENSE.txt cat /tmp/getdp-*${GETDP}-MacOSX/share/doc/getdp/LICENSE.txt >> onelab-MacOSX/LICENSE.txt
...@@ -188,7 +200,10 @@ cp -R /tmp/models onelab-MacOSX ...@@ -188,7 +200,10 @@ cp -R /tmp/models onelab-MacOSX
umount gmsh_mount umount gmsh_mount
rm -rf /tmp/gmsh-* rm -rf /tmp/gmsh-*
rm -rf /tmp/getdp-* rm -rf /tmp/getdp-*
zip -r onelab-MacOSX.zip onelab-MacOSX # cannot use zip file: it destroys the signature for onelab.py
hdiutil create -srcfolder onelab-MacOSX onelab-MacOSX.dmg
codesign -v --sign "Developer ID Application: Christophe Geuzaine" onelab-MacOSX.dmg
rm -rf onelab-MacOSX rm -rf onelab-MacOSX
fi
rm -rf /tmp/models rm -rf /tmp/models
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment