Update main.sh

This commit is contained in:
ferreo 2024-10-20 19:23:02 +02:00
parent d396fe4186
commit f6d602ad84

25
main.sh
View File

@ -4,23 +4,18 @@ set -e
. ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
# Set the makedeb release you want.
export MAKEDEB_RELEASE='makedeb'
VERSION="1.0"
apt-get install wget dotnet-sdk-8.0 -y
# Clone Upstream
mkdir -p ./src-pkg-name
cp -rvf ./debian ./src-pkg-name/
cd ./src-pkg-name/
# Run the install script. Note that it's `bash -c` and not `bash -ci` now.
bash -c "$(wget -qO - 'https://shlink.makedeb.org/install')"
# Get build deps
LOGNAME=root dh_make --createorig -y -l -p src-pkg-name_"$VERSION" || echo "dh-make: Ignoring Last Error"
apt-get build-dep ./ -y
git clone 'https://mpr.makedeb.org/xivlauncher-rb'
cd xivlauncher-rb/
makedeb -s
# Build package
dpkg-buildpackage --no-sign
# Move the debs to output
mkdir -p ../output
mv ./*.deb ../output/
cd ../
mkdir -p ./output
mv ./*.deb ./output/