jellyfin-mpv-shim/artifacts.sh
2020-08-23 00:51:08 -04:00

12 lines
619 B
Bash

#!/bin/bash
mkdir -p publish publish/Shim publish/DesktopInstaller publish/DesktopInstallerLegacy
version=$(cat jellyfin_mpv_shim/constants.py | grep '^CLIENT_VERSION' | cut -d '"' -f 2)
if [[ "$1" == "standard" ]]
then
cp dist/jellyfin-mpv-desktop_version_installer.exe publish/DesktopInstaller/jellyfin-mpv-desktop_${version}_installer.exe || exit 1
cp dist/run.exe publish/Shim/jellyfin-mpv-shim_${version}.exe || exit 1
elif [[ "$1" == "legacy" ]]
then
cp dist/jellyfin-mpv-desktop_version_installer.exe publish/DesktopInstallerLegacy/jellyfin-mpv-desktop_${version}_LEGACY32_installer.exe || exit 1
fi