mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-16 10:28:18 -07:00
27 lines
535 B
Bash
Executable File
27 lines
535 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o xtrace
|
|
|
|
# move to source directory
|
|
pushd ${SOURCE_DIR}
|
|
|
|
# get version
|
|
version="$( grep "version:" ./build.yaml | sed -E 's/version: "([0-9\.]+.*)"/\1/' )"
|
|
|
|
# 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
|