xivlauncher-rb/main.sh

32 lines
1013 B
Bash
Raw Normal View History

2024-10-20 19:07:23 +02:00
#! /bin/bash
set -e
. ./pika-build-config.sh
2024-10-20 19:23:02 +02:00
# Set the makedeb release you want.
export MAKEDEB_RELEASE='makedeb'
2024-10-20 19:33:16 +02:00
export makedeb_url='makedeb.org'
2024-10-20 19:48:31 +02:00
export DEBIAN_FRONTEND=noninteractive
2024-10-20 19:33:16 +02:00
2024-10-20 19:52:03 +02:00
apt-get install wget dotnet-sdk-8.0 -y
2024-10-20 19:07:23 +02:00
2024-10-20 19:33:16 +02:00
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
2024-10-20 19:38:58 +02:00
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
2024-10-20 19:33:16 +02:00
2024-10-20 19:07:23 +02:00
2024-10-20 19:23:02 +02:00
git clone 'https://mpr.makedeb.org/xivlauncher-rb'
2024-10-20 19:41:03 +02:00
chmod -R 777 ./xivlauncher-rb/
2024-10-20 19:55:36 +02:00
chmod -R 777 /root
2024-10-20 19:23:02 +02:00
cd xivlauncher-rb/
2024-10-20 19:51:08 +02:00
su build -s /usr/bin/bash -p -c 'yes | makedeb -s'
2024-10-20 19:07:23 +02:00
2024-10-20 19:23:02 +02:00
mkdir -p ../output
mv ./*.deb ../output/
2024-10-20 19:07:23 +02:00
cd ../