Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
be32ee74
Commit
be32ee74
authored
8 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
more codesigning madness
parent
738142b3
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/misc/package_onelab.sh
+171
-156
171 additions, 156 deletions
utils/misc/package_onelab.sh
with
171 additions
and
156 deletions
utils/misc/package_onelab.sh
+
171
−
156
View file @
be32ee74
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment