-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
32 lines (25 loc) · 1.04 KB
/
make-appimage.sh
File metadata and controls
32 lines (25 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
set -eu
ARCH=$(uname -m)
export ARCH VERSION
export OUTPATH=./dist
export ADD_HOOKS="self-updater.bg.hook:get-yt-dlp.src.hook"
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
export DESKTOP=/usr/share/applications/mpv.desktop
export ICON=/usr/share/icons/hicolor/128x128/apps/mpv.png
export APPNAME=mpv
export DEPLOY_OPENGL=1
export DEPLOY_VULKAN=1
export URUNTIME_PRELOAD=1
# Deploy dependencies
quick-sharun /usr/bin/mpv
# mpv only supports LC_NUMERIC=C or LC_NUMERIC=C.UTF-8
# https://github.com/mpv-player/mpv/blob/c41ee4b95fa8d9827be943247249eae56b372847/player/main.c#L248-L264
# so we cannot be relying on anylinux.so to set the locale to anything else
echo 'LC_ALL=C.UTF-8' >> ./AppDir/.env
# Additional changes can be done in between here
# Turn AppDir into AppImage
quick-sharun --make-appimage
# Test the app for 12 seconds, if the test fails due to the app
# having issues running in the CI use --simple-test instead
quick-sharun --test ./dist/*.AppImage ./test-video.mp4