File tree Expand file tree Collapse file tree 4 files changed +104
-0
lines changed Expand file tree Collapse file tree 4 files changed +104
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build MPV AppImage in Debian Stable Container
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' **/*' # Include all files
9+ - ' !README.md' # Exclude README.md
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest # This is to run the GitHub Actions itself
14+ container :
15+ image : debian:stable
16+
17+
18+ steps :
19+ - name : Checkout repository
20+ uses : actions/checkout@v2
21+
22+
23+ - name : install dependecies
24+ run : |
25+ apt update -y
26+ apt install -y --no-install-recommends file desktop-file-utils imagemagick binutils libgpgme11 libglib2.0-bin zsync
27+ apt install wget -y
28+ bash build.sh
29+
30+ upload=$(realpath tmp-stable/mpv_Media_Player-x86_64.AppImage)
31+ echo "FILE1=${upload}" >> $GITHUB_ENV
32+
33+ upload=$(realpath tmp-stable/mpv_Media_Player-x86_64.AppImage.zsync)
34+ echo "FILE2=${upload}" >> $GITHUB_ENV
35+
36+
37+ - name : Create GitHub Release and Upload ZIP
38+ uses : softprops/action-gh-release@v2
39+ with :
40+ tag_name : ${{ github.run_id }}
41+ files : |
42+ ${{ env.FILE1 }}
43+ ${{ env.FILE2 }}
44+ env :
45+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ test build of appimage of debian multimedia copied from https://github.com/ivan-hc/MPV-appimage
2+
3+
4+ # dependecies
5+ sudo apt install libgl1
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ APP=mpv
4+ DEBRELEASE=stable
5+ ARCH=x86-64
6+ UPINFO=" gh-releases-zsync|$GITHUB_REPOSITORY_OWNER |mpv-debian-multimedia|latest|*$ARCH .AppImage.zsync"
7+
8+ mkdir tmp-$DEBRELEASE ;
9+ cd tmp-$DEBRELEASE ;
10+
11+ # DOWNLOADING THE DEPENDENCIES
12+ wget https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage -O appimagetool
13+ url=$( wget -q https://api.github.com/repos/AppImageCommunity/pkg2appimage/releases -O - | grep " pkg2appimage-.*-x86_64.AppImage" | grep browser_download_url | head -n 1 | cut -d ' "' -f 4)
14+ wget " $url " -O pkg2appimage
15+ chmod a+x ./pkg2appimage ./appimagetool
16+
17+ # CREATING THE APPIMAGE: APPDIR FROM A RECIPE...
18+ DEBRELEASE=stable
19+
20+ ./pkg2appimage --appimage-extract
21+ mv squashfs-root pkg2
22+ ./pkg2/AppRun ../recipe.yml;
23+
24+ ./appimagetool --appimage-extract
25+ mv squashfs-root pkg1
26+
27+
28+
29+ ARCH=x86_64 ./pkg1/AppRun --comp zstd \
30+ --mksquashfs-opt -Xcompression-level --mksquashfs-opt 22 \
31+ -n ./$APP /$APP .AppDir -u " $UPINFO "
32+
33+
Original file line number Diff line number Diff line change 1+ app : mpv
2+ binpatch : true
3+
4+ ingredients :
5+ dist : stable
6+ package : mpv
7+ sources :
8+ - deb http://www.deb-multimedia.org stable-backports main non-free
9+ - deb http://www.deb-multimedia.org stable main non-free
10+ - deb http://ftp.debian.org/debian/ stable main contrib non-free non-free-firmware
11+ - deb http://security.debian.org/debian-security/ stable-security main contrib non-free non-free-firmware
12+ - deb http://ftp.debian.org/debian/ stable-updates main contrib non-free non-free-firmware
13+ packages :
14+ - mpv
15+ - libdavs2
16+
17+ script :
18+ - mv ./usr/lib/x86_64-linux-gnu/samba/*.so* ./usr/lib/x86_64-linux-gnu/
19+ - sed -i -e 's|TargetEnvironment|X-TargetEnvironment|g' mpv.desktop
20+ - sed -i 's|^Exec=.*|Exec=mpv |' mpv.desktop
21+
You can’t perform that action at this time.
0 commit comments