Skip to content

Commit

Permalink
added video to backend CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkorsukov committed Mar 15, 2022
1 parent f35dc0a commit ea53810
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build/ci/backend/convertor.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
HERE="$(cd "$(dirname "$(readlink -f "$0")")" && pwd)"

export XDG_RUNTIME_DIR=/tmp/runtime-root
export LD_LIBRARY_PATH="$HERE/lib:$LD_LIBRARY_PATH"
export QT_PLUGIN_PATH=$HERE/plugins
export QT_QPA_PLATFORM=offscreen
export QT_STYLE_OVERRIDE="Fusion"

xvfb-run "$HERE/bin/mscore-portable" "$@"

case "$1" in
--score-video )
shift; "$HERE/bin/musescorevideo" "$@"
;;
* )
xvfb-run "$HERE/bin/mscore-portable" "$@"
;;
esac
4 changes: 4 additions & 0 deletions build/ci/backend/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ mv squashfs-root "$APP_DIR"
# Add offscreen platform plugin
cp $QT_PATH/plugins/platforms/libqoffscreen.so $APP_DIR/plugins/platforms/libqoffscreen.so

# Add video
wget -q --show-progress -O $APP_DIR/bin/musescorevideo "https://s3.amazonaws.com/convertor.musescore.org/musescorevideo-3.6.2.2022031517"
chmod 775 $APP_DIR/bin/musescorevideo

# Add run file
cp $HERE/convertor.in $APP_DIR/convertor
chmod 775 $APP_DIR/convertor
Expand Down

0 comments on commit ea53810

Please sign in to comment.