jellyfin-mpv-shim/artifacts.sh

13 lines
652 B
Bash
Raw Normal View History

2020-08-23 03:27:28 +00:00
#!/bin/bash
2021-04-20 00:07:38 +00:00
mkdir -p publish publish/Portable publish/Installer publish/InstallerLegacy publish/Debug
2020-08-23 03:27:28 +00:00
version=$(cat jellyfin_mpv_shim/constants.py | grep '^CLIENT_VERSION' | cut -d '"' -f 2)
if [[ "$1" == "standard" ]]
then
2021-04-20 00:07:38 +00:00
cp dist/jellyfin-mpv-shim_version_installer.exe publish/Installer/jellyfin-mpv-shim_${version}_installer.exe || exit 1
2021-04-20 00:24:34 +00:00
cp dist/run.exe publish/Portable/jellyfin-mpv-shim_${version}_portable.exe || exit 1
2021-04-20 22:21:11 +00:00
#mv dist/run publish/Debug/ || exit 1
2020-08-23 03:27:28 +00:00
elif [[ "$1" == "legacy" ]]
then
2021-04-20 00:07:38 +00:00
cp dist/jellyfin-mpv-shim_version_installer.exe publish/InstallerLegacy/jellyfin-mpv-shim_${version}_LEGACY32_installer.exe || exit 1
2020-08-23 03:27:28 +00:00
fi