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 . ./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 # Run the install script. Note that it's `bash -c` and not `bash -ci` now.
mkdir -p ./src-pkg-name bash -c "$(wget -qO - 'https://shlink.makedeb.org/install')"
cp -rvf ./debian ./src-pkg-name/
cd ./src-pkg-name/
# Get build deps git clone 'https://mpr.makedeb.org/xivlauncher-rb'
LOGNAME=root dh_make --createorig -y -l -p src-pkg-name_"$VERSION" || echo "dh-make: Ignoring Last Error" cd xivlauncher-rb/
apt-get build-dep ./ -y makedeb -s
# Build package mkdir -p ../output
dpkg-buildpackage --no-sign mv ./*.deb ../output/
# Move the debs to output
cd ../ cd ../
mkdir -p ./output
mv ./*.deb ./output/