Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
website
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
documentation
website
Commits
d81e3494
Commit
d81e3494
authored
2 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
arm
parent
c31edadc
Branches
Branches containing commit
No related tags found
Loading
Checking pipeline status
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bundle_onelab.sh
+57
-9
57 additions, 9 deletions
bundle_onelab.sh
with
57 additions
and
9 deletions
bundle_onelab.sh
+
57
−
9
View file @
d81e3494
...
...
@@ -19,6 +19,8 @@ contains a selection of other ready-to-use models from https://onelab.info. The
See https://onelab.info for additional examples, up-to-date versions and
documentation."
>
/tmp/README.txt
KEYCHAIN
=
"FIXME"
GMSH
=
git
GETDP
=
git
CONVEKS
=
git
...
...
@@ -101,7 +103,7 @@ if [ $# -lt 1 ] || [ $1 == "source" ]; then
scp onelab-source.zip geuzaine@onelab.info:/onelab_files/
fi
if
[
$#
-lt
1
]
||
[
$1
==
"win
64
"
]
;
then
if
[
$#
-lt
1
]
||
[
$1
==
"win
dows
"
]
;
then
rm
-rf
onelab-Windows64
*
mkdir
onelab-Windows64
curl
-O
https://gmsh.info/bin/Windows/gmsh-
${
GMSH
}
-Windows64
.zip
...
...
@@ -141,7 +143,7 @@ if [ $# -lt 1 ] || [ $1 == "win64" ]; then
scp onelab-Windows64.zip geuzaine@onelab.info:/onelab_files/
fi
if
[
$#
-lt
1
]
||
[
$1
==
"linux
64
"
]
;
then
if
[
$#
-lt
1
]
||
[
$1
==
"linux"
]
;
then
rm
-rf
onelab-Linux64
*
mkdir
onelab-Linux64
curl
-O
https://gmsh.info/bin/Linux/gmsh-
${
GMSH
}
-Linux64
.tgz
...
...
@@ -180,17 +182,17 @@ if [ $# -lt 1 ] || [ $1 == "linux64" ]; then
scp onelab-Linux64.zip geuzaine@onelab.info:/onelab_files/
fi
if
[
$#
-lt
1
]
||
[
$1
==
"mac"
]
;
then
if
[
$#
-lt
1
]
||
[
$1
==
"mac
osx
"
]
;
then
rm
-rf
onelab-MacOSX
*
mkdir
onelab-MacOSX
curl
-O
https://gmsh.info/bin/
M
acOS
X
/gmsh-
${
GMSH
}
-MacOSX
.dmg
curl
-O
https://getdp.info/bin/
M
acOS
X
/getdp-
${
GETDP
}
-MacOSXc
.tgz
##curl -O https://getdp.info/bin/
M
acOS
X
/getdp-${GETDP}-MacOSXr.tgz
curl
-O
https://gmsh.info/bin/
m
acOS/gmsh-
${
GMSH
}
-MacOSX
.dmg
curl
-O
https://getdp.info/bin/
m
acOS/getdp-
${
GETDP
}
-MacOSXc
.tgz
##curl -O https://getdp.info/bin/
m
acOS/getdp-${GETDP}-MacOSXr.tgz
curl
-O
https://onelab.info/conveks/bin/conveks-
${
CONVEKS
}
-MacOSX
.zip
curl
-O
https://gitlab.onelab.info/gmsh/gmsh/-/raw/master/utils/misc/notarize.py
mv
gmsh-
${
GMSH
}
-MacOSX
.dmg /tmp
##
mv getdp-${GETDP}-MacOSXc.tgz /tmp
mv
getdp-
${
GETDP
}
-MacOSXr
.tgz /tmp
mv
getdp-
${
GETDP
}
-MacOSXc
.tgz /tmp
##
mv getdp-${GETDP}-MacOSXr.tgz /tmp
mv
conveks-
${
CONVEKS
}
-MacOSX
.zip /tmp
mv
notarize.py /tmp
hdiutil convert /tmp/gmsh-
${
GMSH
}
-MacOSX
.dmg
-format
UDTO
-o
/tmp/gmsh-tmp.cdr
...
...
@@ -203,7 +205,7 @@ if [ $# -lt 1 ] || [ $1 == "mac" ]; then
mv
/tmp/getdp-
*${
GETDP
}
-MacOSX
/bin/getdp onelab-MacOSX/Gmsh.app/Contents/MacOS/
mv
/tmp/conveks-
*${
CONVEKS
}
-MacOSX
/lib/conveks.py onelab-MacOSX/Gmsh.app/Contents/MacOS/
cp
/tmp/conveks-
*${
CONVEKS
}
-MacOSX
/lib/libconveks
*
.dylib onelab-MacOSX/Gmsh.app/Contents/MacOS/
security unlock-keychain
-p
"FIXME"
${
HOME
}
/Library/Keychains/login.keychain
security unlock-keychain
-p
${
KEYCHAIN
}
${
HOME
}
/Library/Keychains/login.keychain
codesign
-v
--force
--deep
--options
runtime
--sign
"Developer ID Application: Christophe Geuzaine"
onelab-MacOSX/Gmsh.app
cp
gmsh_mount/LICENSE.txt onelab-MacOSX/LICENSE.txt
echo
"
\n\n
"
>>
onelab-MacOSX/LICENSE.txt
...
...
@@ -225,3 +227,49 @@ if [ $# -lt 1 ] || [ $1 == "mac" ]; then
rm
-rf
onelab-MacOSX
scp onelab-MacOSX.dmg geuzaine@onelab.info:/onelab_files/
fi
if
[
$#
-lt
1
]
||
[
$1
==
"macosarm"
]
;
then
rm
-rf
onelab-MacOSARM
*
mkdir
onelab-MacOSARM
curl
-O
https://gmsh.info/bin/macOS/gmsh-
${
GMSH
}
-MacOSARM
.dmg
curl
-O
https://getdp.info/bin/macOS/getdp-
${
GETDP
}
-MacOSARMc
.tgz
##curl -O https://getdp.info/bin/macOS/getdp-${GETDP}-MacOSARMr.tgz
curl
-O
https://onelab.info/conveks/bin/conveks-
${
CONVEKS
}
-MacOSARM
.zip
curl
-O
https://gitlab.onelab.info/gmsh/gmsh/-/raw/master/utils/misc/notarize.py
mv
gmsh-
${
GMSH
}
-MacOSARM
.dmg /tmp
mv
getdp-
${
GETDP
}
-MacOSARMc
.tgz /tmp
##mv getdp-${GETDP}-MacOSARMr.tgz /tmp
mv
conveks-
${
CONVEKS
}
-MacOSARM
.zip /tmp
mv
notarize.py /tmp
hdiutil convert /tmp/gmsh-
${
GMSH
}
-MacOSARM
.dmg
-format
UDTO
-o
/tmp/gmsh-tmp.cdr
hdiutil attach
-nobrowse
-noverify
-noautoopen
-mountpoint
gmsh_mount /tmp/gmsh-tmp.cdr
tar
zxvf /tmp/getdp-
${
GETDP
}
-MacOSARMc
.tgz
-C
/tmp
##tar zxvf /tmp/getdp-${GETDP}-MacOSARMr.tgz -C /tmp
unzip
-q
-o
/tmp/conveks-
${
CONVEKS
}
-MacOSARM
.zip
-d
/tmp
cp
/tmp/README.txt onelab-MacOSARM
cp
-R
gmsh_mount/Gmsh.app onelab-MacOSARM/
mv
/tmp/getdp-
*${
GETDP
}
-MacOSARM
/bin/getdp onelab-MacOSARM/Gmsh.app/Contents/MacOS/
mv
/tmp/conveks-
*${
CONVEKS
}
-MacOSARM
/lib/conveks.py onelab-MacOSARM/Gmsh.app/Contents/MacOS/
cp
/tmp/conveks-
*${
CONVEKS
}
-MacOSARM
/lib/libconveks
*
.dylib onelab-MacOSARM/Gmsh.app/Contents/MacOS/
security unlock-keychain
-p
${
KEYCHAIN
}
${
HOME
}
/Library/Keychains/login.keychain
codesign
-v
--force
--deep
--options
runtime
--sign
"Developer ID Application: Christophe Geuzaine"
onelab-MacOSARM/Gmsh.app
cp
gmsh_mount/LICENSE.txt onelab-MacOSARM/LICENSE.txt
echo
"
\n\n
"
>>
onelab-MacOSARM/LICENSE.txt
cat
/tmp/getdp-
*${
GETDP
}
-MacOSARM
/share/doc/getdp/LICENSE.txt
>>
onelab-MacOSARM/LICENSE.txt
cp
gmsh_mount/CREDITS.txt onelab-MacOSARM/CREDITS.txt
echo
"
\n\n
"
>>
onelab-MacOSARM/CREDITS.txt
cat
/tmp/getdp-
*${
GETDP
}
-MacOSARM
/share/doc/getdp/CREDITS.txt
>>
onelab-MacOSARM/CREDITS.txt
cp
-R
/tmp/models onelab-MacOSARM/
cp
-R
/tmp/tutorials onelab-MacOSARM/
cp
-R
gmsh_mount/tutorials/
*
onelab-MacOSARM/tutorials/gmsh/
cp
-R
/tmp/getdp-
*${
GETDP
}
-MacOSARM
/share/doc/getdp/templates onelab-MacOSARM/
hdiutil eject gmsh_mount
rm
-rf
/tmp/gmsh-
*
rm
-rf
/tmp/getdp-
*
rm
-rf
/tmp/conveks-
*
# cannot use zip file: it destroys the signature for onelab.py
hdiutil create
-srcfolder
onelab-MacOSARM onelab-MacOSARM.dmg
python3 /tmp/notarize.py
--package
onelab-MacOSARM.dmg
--username
cgeuzaine@ulg.ac.be
--primary-bundle-id
org.geuz.Gmsh
--password
"@keychain:Gmsh Notarization"
rm
-rf
onelab-MacOSARM
scp onelab-MacOSARM.dmg geuzaine@onelab.info:/onelab_files/
fi
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