Skip to content
Extraits de code Groupes Projets
Vérifiée Valider d9461d8b rédigé par Kubat's avatar Kubat
Parcourir les fichiers

BUILD: Try to finx the custom AppRun...

parent e13d747e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!197Draft: Refactor the whole code.
...@@ -83,14 +83,21 @@ function deploy() { ...@@ -83,14 +83,21 @@ function deploy() {
find ${EXEC^}/usr/lib/ -type f -and \( ${EXCLUDE_LIBS} \) -delete find ${EXEC^}/usr/lib/ -type f -and \( ${EXCLUDE_LIBS} \) -delete
cp LICENSE CHANGELOG.md CONTRIBUTING.md ${EXEC^}/ cp LICENSE CHANGELOG.md CONTRIBUTING.md ${EXEC^}/
install -Dm644 ${EXEC}/${EXEC}.appdata.xml ${EXEC^}/usr/share/metainfo/${EXEC}.appdata.xml install -Dm644 ${EXEC}/${EXEC}.appdata.xml ${EXEC^}/usr/share/metainfo/${EXEC}.appdata.xml
unlink ${EXEC^}/AppRun \
&& touch ${EXEC^}/AppRun \
&& chmod +x ${EXEC^}/AppRun
cat > ${EXEC^}/AppRun <<EOF cat > ${EXEC^}/AppRun <<EOF
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
this_dir="\$(readlink -f "\$(dirname "\$0")")" this_dir="\$(readlink -f "\$(dirname "\$0")")"
for HOOK in "\$this_dir"/apprun-hooks/*; do [ ! -n "\$(find "\$this_dir"/apprun-hooks/ -maxdepth 0 -type d -empty 2>/dev/null)" ] \
source "\$HOOK" && [ -d "\$this_dir"/apprun-hooks/ ] \
done && {
exec "\$this_dir"/AppRun.wrapped "$@" for HOOK in "\$this_dir"/apprun-hooks/*; do
source "\$HOOK"
done
}
exec "\$this_dir/usr/bin/${EXEC}" "$@"
EOF EOF
# Pack the AppImage # Pack the AppImage
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter