mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 07:15:27 +00:00
Add source archival script
This commit is contained in:
parent
2177bc68db
commit
1ae16bb657
22
scripts/generate-src.sh
Executable file
22
scripts/generate-src.sh
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
# Run from root of the Git repo to archive a source tarball
|
||||||
|
|
||||||
|
fail()
|
||||||
|
{
|
||||||
|
echo "$1" 1>&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
git diff-index --quiet HEAD -- || fail "Source archives must not have unstaged changes!"
|
||||||
|
|
||||||
|
BUILD_ROOT=$PWD/build
|
||||||
|
ARCHIVE_FOLDER=$BUILD_ROOT/source
|
||||||
|
VERSION=`cat app/version.txt`
|
||||||
|
|
||||||
|
echo Cleaning output directories
|
||||||
|
rm -rf $ARCHIVE_FOLDER
|
||||||
|
mkdir $BUILD_ROOT
|
||||||
|
mkdir $ARCHIVE_FOLDER
|
||||||
|
|
||||||
|
scripts/git-archive-all.sh --format tar.gz $ARCHIVE_FOLDER/MoonlightSrc-$VERSION.tar.gz || fail "Archive failed"
|
||||||
|
|
||||||
|
echo Archive successful
|
Loading…
x
Reference in New Issue
Block a user