Initial drop of mostly-working containers

This commit is contained in:
Cameron Gutman
2020-02-04 19:48:42 -08:00
commit 4a92aa7242
16 changed files with 218 additions and 0 deletions

42
scripts/build-package.sh Executable file
View File

@@ -0,0 +1,42 @@
set -e
# Check out the source
[[ ! -z "$BRANCH" ]] || BRANCH="master"
echo "Checking out $BRANCH"
git clone --recursive --branch $BRANCH --depth 1 https://github.com/moonlight-stream/moonlight-qt.git
cd moonlight-qt
git show HEAD
# Grab the verson metadata
VERSION=`cat app/version.txt`
# Create a build directory
mkdir /opt/build
# Nuke the libs folder - not needed for Linux
git rm -r libs
git commit -m "Remove pre-built libraries"
# Generate source tarball
scripts/generate-src.sh
# Move the tarball into the build directory
mv build/source/MoonlightSrc-$VERSION.tar.gz /opt/build/moonlight_$VERSION.orig.tar.gz
# Extract the tarball into the appropriate directory
cd /opt/build
mkdir moonlight-$VERSION
cd moonlight-$VERSION
tar xvf ../moonlight_$VERSION.orig.tar.gz
# Copy the debian directory into the build directory
cp -r /opt/debian .
# Build the package
debuild -us -uc
# Copy the output to the out directory
cp /opt/build/* /out
# Done!
echo "Build successful!"