scrcpy-appimage/build.sh

20 lines
745 B
Bash
Raw Normal View History

2020-08-26 08:06:00 -05:00
#!/bin/sh
set -eu
rm -rf AppDir
mkdir AppDir
export APPIMAGE_EXTRACT_AND_RUN=1
2020-09-11 08:43:48 -05:00
./linuxdeploy*.AppImage -e /usr/local/bin/scrcpy --desktop-file $SRC_ROOT/scrcpy.desktop --icon-file $SRC_ROOT/scrcpy.png --appdir=AppDir --library=/usr/lib/libc.so.6 --library=/usr/lib64/ld-linux-x86-64.so.2 --custom-apprun=$SRC_ROOT/AppRun --library=/usr/lib/libavformat.so.58 --library=/lib64/libm.so.6
2020-08-26 08:06:00 -05:00
cp $BUILD_DIR/app/scrcpy AppDir/usr/bin/.
cp $ADB_DIR/adb AppDir/usr/bin/.
2020-08-27 01:09:47 -05:00
cp $BUILD_DIR/../LICENSE AppDir/.
echo $(git describe --tags) > AppDir/VERSION.txt
2020-08-26 08:06:00 -05:00
mkdir -p AppDir/usr/local/share/scrcpy
cp $BUILD_DIR/../scrcpy_server AppDir/usr/local/share/scrcpy/scrcpy-server
./appimage*.AppImage AppDir -s AppDir/usr/share/applications/scrcpy.desktop -l -o