xivlauncher-rb/main.sh
2024-10-20 19:48:31 +02:00

31 lines
991 B
Bash
Executable File

#! /bin/bash
set -e
. ./pika-build-config.sh
# Set the makedeb release you want.
export MAKEDEB_RELEASE='makedeb'
export makedeb_url='makedeb.org'
export DEBIAN_FRONTEND=noninteractive
apt-get install wget dotnet-sdk-8.0 -y
wget -qO - "https://proget.${makedeb_url}/debian-feeds/makedeb.pub" | gpg --dearmor | sudo tee /usr/share/keyrings/makedeb-archive-keyring.gpg 1> /dev/null;
echo "deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg arch=all] https://proget.${makedeb_url} makedeb main" | sudo tee /etc/apt/sources.list.d/makedeb.list 1> /dev/null
apt-get update -y
apt-get install -y makedeb
useradd --no-create-home --shell=/bin/false build && usermod -L build
echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
git clone 'https://mpr.makedeb.org/xivlauncher-rb'
chmod -R 777 ./xivlauncher-rb/
cd xivlauncher-rb/
su build -s /usr/bin/bash -p -c 'makedeb -s -y'
mkdir -p ../output
mv ./*.deb ../output/
cd ../