diff options
| author | Bond-009 <bond.009@outlook.com> | 2019-01-16 19:10:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-16 19:10:42 +0100 |
| commit | 900dc851e6c810f9e1772a6fb901a5a7e2801baf (patch) | |
| tree | 205bac3cd6df971ee18739e59bd4da0ffe91718b /deployment/make.sh | |
| parent | 07a8e49c4b1e4a2dddbaa49ab6f1ff4f271fbf20 (diff) | |
| parent | 933ef438894ed233fec46badf58dd4f26492e832 (diff) | |
Merge branch 'dev' into cleanup
Diffstat (limited to 'deployment/make.sh')
| -rwxr-xr-x | deployment/make.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/deployment/make.sh b/deployment/make.sh new file mode 100755 index 000000000..6b8d8de08 --- /dev/null +++ b/deployment/make.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash + +git submodule update --init --recursive + +pushd ../Jellyfin.Versioning +./update-version +popd + +#TODO enabled proper flag parsing for enabling and disabling building, signing, packaging and publishing + +# Execute all build.sh, package.sh, sign.sh and publish.sh scripts in every folder. In that order. Script should check for artifacts themselves. +echo "Running for platforms '$@'." +for directory in */ ; do + platform=`basename "${directory}"` + if [[ $@ == *"$platform"* || $@ = *"all"* ]]; then + echo "Processing ${platform}" + pushd "$platform" + if [ -f build.sh ]; then + ./build.sh + fi + if [ -f package.sh ]; then + ./package.sh + fi + if [ -f sign.sh ]; then + ./sign.sh + fi + if [ -f publish.sh ]; then + ./publish.sh + fi + popd + else + echo "Skipping $platform." + fi +done |
