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

[build] A working appimage build

To generate the AppImage the libraries from the host system will
be used (if it worked on my machine it should works on your machine).

All libraries are copied into the AppImage, it should have a size of
something like 100Mio.
parent 24367ef9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Ce commit fait partie de la requête de fusion !2. Les commentaires créés ici seront créés dans le contexte de cette requête de fusion.
......@@ -67,6 +67,7 @@ packages/desktop/aegisub.desktop
packages/desktop/aegisub.desktop.template
packages/win_installer/vendor
src/aegisub
Aegisub/aegisub
src/libresrc/bitmap.cpp
src/libresrc/bitmap.h
src/libresrc/default_config.cpp
......
aegisub-icon.png
\ No newline at end of file
[Desktop Entry]
Version=1.0
Type=Application
Name=Aegisub
Icon=aegisub-icon
GenericName=Subtitle Editor
Comment=Create and edit subtitles for film and videos.
Keywords=subtitles;video;audio;text
Terminal=false
Categories=AudioVideo;AudioVideoEditing;
MimeType=application/x-srt;text/plain;text/x-ass;text/x-microdvd;text/x-ssa;
StartupNotify=true
Aegisub/AppRun 0 → 100755
#!/bin/sh
SELF_DIR=$(dirname "$0")
export LD_LIBRARY_PATH="$SELF_DIR/lib"
exec "$SELF_DIR"/aegisub
Aegisub/aegisub-icon.png

4,91 ko

Fichier déplacé
ifneq (yes, $(INCLUDING_CHILD_MAKEFILES))
COMMANDS := all install clean distclean test depclean osx-bundle osx-dmg test-automation test-libaegisub style tags
COMMANDS := all install clean distclean test depclean osx-bundle osx-dmg test-automation test-libaegisub style tags appimage
.PHONY: $(COMMANDS)
.DEFAULT_GOAL := all
......@@ -95,6 +95,11 @@ style:
tags:
./tools/tags.bash
appimage: src/aegisub
cp $^ Aegisub/aegisub
./tools/copy_libs.bash --exec=Aegisub/aegisub --dest=Aegisub/lib
./tools/appimagetool.AppImage Aegisub
# The actual build rules
.SUFFIXES:
......
......@@ -191,8 +191,9 @@ AC_ARG_ENABLE([appimage],
[AEGISUB_APPIMAGE_ENABLED=no])
AS_IF([test "x$AEGISUB_APPIMAGE_ENABLED" = "xyes"], [
AC_MSG_CHECKING([Downloading AppImage creation tool])
wget https://github.com/probonopd/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage \
wget https://github.com/probonopd/AppImageKit/releases/download/continuous/appimagetool-`arch`.AppImage \
-O tools/appimagetool.AppImage -o config.wget.log
chmod 00700 tools/appimagetool.AppImage
AS_IF([test $? -eq 0 ], [
AC_MSG_RESULT([done])
], [
......
#!/bin/bash
EXEC=""
DEST=""
function print_help {
cat << EOF
Usage: $0 --exec=* --dest=* [--help]
--help Display this help message
--exec Specify which dynamic executable to inspect and get the .so files from
--dest In which folder the .so files must be copied
EOF
}
for arg in "$@"
do
case $arg in
--help|-h)
print_help
exit
;;
--exec=*)
EXEC=`echo A$arg | sed -e 's/^A--exec=//g'`
;;
--dest=*)
DEST=`echo A$arg | sed -e 's/^A--dest=//g'`
;;
esac
done
if test "x$EXEC" = "x" -o "x$DEST" = "x"
then
print_help
exit
fi
ldd "$EXEC" \
| awk '$2 = "=>" && $3 { print $1 " " $3 }' 2>&1 \
| while read NAME FILE
do
cp $FILE $DEST/`basename $FILE`
done
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter