-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
57 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule whereami
deleted from
f15606
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#! /bin/bash | ||
|
||
# Generate the binaries | ||
SCRIPT=$(cat <<-END | ||
echo "building danton with \$(gcc --version | head -n 1)" | ||
cd /work | ||
make PREFIX=AppDir | ||
chown --recursive $(id -u):$(id -g) AppDir build | ||
END | ||
) | ||
|
||
mkdir -p AppDir | ||
make clean | ||
docker run --mount type=bind,source=$(pwd),target=/work \ | ||
quay.io/pypa/manylinux1_x86_64 /bin/bash -c "${SCRIPT}" | ||
|
||
# Copy extra application data | ||
mkdir -p AppDir/share | ||
cp -rL share/danton AppDir/share | ||
cp -rL include AppDir | ||
|
||
# Force the generation of the materials dump | ||
./AppDir/bin/danton examples/cards/backward-tau-decays.json > /dev/null | ||
rm -f steps.json | ||
|
||
# Bundle AppImage meta and entry point | ||
cat << END > AppDir/danton.desktop | ||
[Desktop Entry] | ||
Type=Application | ||
Name=danton | ||
Exec=danton | ||
Comment=Simulate the coupled transport of ultra high energy taus and neutrinos through the Earth, by Monte-Carlo | ||
Icon=danton | ||
Categories=Science; | ||
Terminal=true | ||
END | ||
|
||
cat << END > AppDir/AppRun | ||
#! /bin/bash | ||
DANTON_PREFIX=\$APPDIR \$APPDIR/bin/danton \$* | ||
END | ||
chmod u+x AppDir/AppRun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters