mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-15 18:08:17 -07:00
f3fcfa3270
The server ones use jf-server_version, so this should too.
31 lines
614 B
Bash
Executable File
31 lines
614 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o xtrace
|
|
|
|
# move to source directory
|
|
pushd ${SOURCE_DIR}
|
|
|
|
# get version
|
|
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
|
version="${BUILD_ID}"
|
|
else
|
|
version="$( grep "version:" ./build.yaml | sed -E 's/version: "([0-9\.]+.*)"/\1/' )"
|
|
fi
|
|
|
|
# build archives
|
|
npx yarn install
|
|
mv dist jellyfin-web_${version}
|
|
tar -czf jellyfin-web_${version}_portable.tar.gz jellyfin-web_${version}
|
|
rm -rf dist
|
|
|
|
# move the artifacts
|
|
mkdir -p ${ARTIFACT_DIR}
|
|
mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}
|
|
|
|
if [[ ${IS_DOCKER} == YES ]]; then
|
|
chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
|
|
fi
|
|
|
|
popd
|