* Create pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Do not show playback speed change notifications in OSD * Upbuild and remove debug message * Strip quotation marks from per-player arguments (#226) * Delete unmaintained changelog. Removing old and unmaintained changelog file. * Add more MPC-HC paths (#398) * Migrate from AppVeyor to GitHub Actions (#399) * Disable AppVeyor * Actions: disable other jobs * Actions: implement windows job * Use requirements * Typo in version parser * Replace type nul for PowerShell * Change Python version to 3.7 * buildPy2exe: exclude tcl and tkinter * buildPy2exe: rename zip archive to include extension * Actions for Windows: build on Python 3.8 * Re-enable build flow for other platforms * Remove AppVeyor configuration file * Add manpages courtesy of Bruno Kleinert #387 * Install the manpages. * Separate debian package artifacts Make it so that server and full packages are separate artifacts in CI rather than single zip containing both. * Fix server deb deployment name in CI workflow * Fix package filename for debs * Update mpv json ipc vendor code Update to version 1.1.13 to hopefully address #322 fully. * Update setup.py for vendor code of mpv jsonipc * Build AppImage on Ubuntu 18.04 Temporary workaround for AppImage built on Ubuntu 20.04 crashing with segmentation fault. #401 * Update python_mpv_jsonipc to 1.1.13 keeping our changes * Remove the AppVeyor badge as we stopped using it. * Improve playlist advancement for VLC and mpv (#334) (#397) * Advance playlist on end of file in mpv and VLC * Update duration for streams to fix playlist advancement (#334) * Add notice for Python in third party collection file (#404) * Add notice for Python in third party collection file * Convert third party notices file to plain text * Adapt codebase to third party notices format change * Mark as beta 1 (release 97) * Mark as 1.6.8 final (build 98) * Update pt_BR translation, fix typo (#422) * Bundle libgthread-2.0.so.0 into AppImage * add libxcb manually * Add missing libxcb-util to build environment * Enable GitHub Actions on pull requests * Bundle libxcb1 into AppImage to fix #380 * Send 32-bit/64-bit context when updating * Upver to 1.6.9 release 99 * Remove references to IRC (#430) * Add reference to GitHub discussions * Update issue templates * Revert "Merge branch 'master' into master" This reverts commit 173007e9b17c3cf7d658e12f1220bb1a3af743e6, reversing changes made to 6105da870a4560c47ee54d7de21f2e1ccec1bcef. Co-authored-by: Daniel Wróbel <wrobel.dan@gmail.com> Co-authored-by: Alberto Sottile <alby128@gmail.com> Co-authored-by: Daniel Wróbel <1662391+daniel-123@users.noreply.github.com> Co-authored-by: Atílio Antônio <atiliodadalto@hotmail.com> Co-authored-by: Teoh Han Hui <teohhanhui@gmail.com> Co-authored-by: Alberto Sottile <asottile@gmail.com> Co-authored-by: Assistant <assistant.moetron@gmail.com>
119 lines
4.5 KiB
Bash
Executable File
119 lines
4.5 KiB
Bash
Executable File
#! /bin/bash
|
|
|
|
# Copyright (C) 2019 Syncplay
|
|
# This file is licensed under the MIT license - http://opensource.org/licenses/MIT
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
# of this software and associated documentation files (the "Software"), to deal
|
|
# in the Software without restriction, including without limitation the rights
|
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
# copies of the Software, and to permit persons to whom the Software is
|
|
# furnished to do so, subject to the following conditions:
|
|
|
|
# The above copyright notice and this permission notice shall be included in all
|
|
# copies or substantial portions of the Software.
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
# SOFTWARE.
|
|
|
|
set -x
|
|
set -e
|
|
|
|
# use RAM disk if possible
|
|
if [ "$CI" == "" ] && [ -d /dev/shm ]; then
|
|
TEMP_BASE=/dev/shm
|
|
else
|
|
TEMP_BASE=/tmp
|
|
fi
|
|
|
|
BUILD_DIR=$(mktemp -d -p "$TEMP_BASE" appimagelint-build-XXXXXX)
|
|
|
|
cleanup () {
|
|
if [ -d "$BUILD_DIR" ]; then
|
|
rm -rf "$BUILD_DIR"
|
|
fi
|
|
}
|
|
|
|
trap cleanup EXIT
|
|
|
|
# store repo root as variable
|
|
REPO_ROOT=$(readlink -f $(dirname $(dirname "$0")))
|
|
#REPO_ROOT="."
|
|
OLD_CWD=$(readlink -f .)
|
|
|
|
pushd "$BUILD_DIR"
|
|
|
|
wget https://github.com/TheAssassin/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
|
wget https://raw.githubusercontent.com/linuxdeploy/linuxdeploy-plugin-conda/master/linuxdeploy-plugin-conda.sh
|
|
|
|
chmod +x linuxdeploy*.AppImage
|
|
chmod +x linuxdeploy*.sh
|
|
|
|
# set up custom AppRun script
|
|
cat > AppRun.sh <<\EAT
|
|
#! /bin/bash
|
|
# make sure to set APPDIR when run directly from the AppDir
|
|
if [ -z $APPDIR ]; then APPDIR=$(readlink -f $(dirname "$0")); fi
|
|
export LD_LIBRARY_PATH="$APPDIR"/usr/lib
|
|
export PATH="$PATH":"$APPDIR"/usr/bin
|
|
|
|
if [ "$1" == "--server" ]; then
|
|
exec "$APPDIR"/usr/bin/python "$APPDIR"/usr/bin/syncplay-server "${@:2}"
|
|
else
|
|
exec "$APPDIR"/usr/bin/python "$APPDIR"/usr/bin/syncplay "$@"
|
|
fi
|
|
EAT
|
|
chmod +x AppRun.sh
|
|
|
|
# add AppStream metadata
|
|
mkdir -p AppDir/usr/share/metainfo/
|
|
cat > pl.syncplay.syncplay.appdata.xml <<\EAT
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<component type="desktop-application">
|
|
<id>pl.syncplay.syncplay</id>
|
|
<metadata_license>MIT</metadata_license>
|
|
<project_license>Apache-2.0</project_license>
|
|
<name>Syncplay</name>
|
|
<summary>Client/server to synchronize media playback on mpv/VLC/MPC-HC/MPC-BE on many computers</summary>
|
|
<description>
|
|
<p>Syncplay synchronises the position and play state of multiple media players so that the viewers can watch the same thing at the same time. This means that when one person pauses/unpauses playback or seeks (jumps position) within their media player then this will be replicated across all media players connected to the same server and in the same 'room' (viewing session). When a new person joins they will also be synchronised. Syncplay also includes text-based chat so you can discuss a video as you watch it (or you could use third-party Voice over IP software to talk over a video).</p>
|
|
</description>
|
|
<launchable type="desktop-id">pl.syncplay.syncplay.desktop</launchable>
|
|
<url type="homepage">https://syncplay.pl/</url>
|
|
<screenshots>
|
|
<screenshot type="default">
|
|
<image>https://syncplay.pl/2019-05-26.png</image>
|
|
</screenshot>
|
|
</screenshots>
|
|
<provides>
|
|
<id>pl.syncplay.syncplay.desktop</id>
|
|
</provides>
|
|
</component>
|
|
EAT
|
|
mv pl.syncplay.syncplay.appdata.xml AppDir/usr/share/metainfo/
|
|
|
|
# move and rename .desktop file
|
|
cp "$REPO_ROOT"/syncplay/resources/syncplay.desktop ./pl.syncplay.syncplay.desktop
|
|
|
|
#export CONDA_PACKAGES="Pillow"
|
|
export PIP_REQUIREMENTS="."
|
|
export PIP_WORKDIR="$REPO_ROOT"
|
|
export VERSION="$(cat $REPO_ROOT/syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}')"
|
|
export OUTPUT=Syncplay-$VERSION-x86_64.AppImage
|
|
|
|
./linuxdeploy-x86_64.AppImage --appdir AppDir --plugin conda \
|
|
-e $(which readelf) \
|
|
-i "$REPO_ROOT"/syncplay/resources/syncplay.png -d pl.syncplay.syncplay.desktop \
|
|
--output appimage --custom-apprun AppRun.sh \
|
|
-l /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 \
|
|
-l /usr/lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 \
|
|
-l /usr/lib/x86_64-linux-gnu/libxcb.so.1 \
|
|
;
|
|
|
|
mv Syncplay*.AppImage "$OLD_CWD"
|