diff --git a/.github/release-nest-v3 b/.github/release-nest-v3 index d8263ee..56a6051 100644 --- a/.github/release-nest-v3 +++ b/.github/release-nest-v3 @@ -1 +1 @@ -2 \ No newline at end of file +1 \ No newline at end of file diff --git a/main.sh b/main.sh index 3316d03..4ba4a8d 100755 --- a/main.sh +++ b/main.sh @@ -19,8 +19,6 @@ 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/ mkdir -p /root/.config chmod -R 777 /root/.config/ diff --git a/xivlauncher-rb/.SRCINFO b/xivlauncher-rb/.SRCINFO new file mode 100644 index 0000000..7046fd3 --- /dev/null +++ b/xivlauncher-rb/.SRCINFO @@ -0,0 +1,43 @@ +generated-by = makedeb +pkgname = xivlauncher-rb +pkgbase = xivlauncher-rb +pkgdesc = Custom Launcher for Final Fantasy XIV Online (Crossplatform rewrite - RB edition) +pkgrel = 1 +pkgver = 1.1.1.6 +url = https://github.com/rankynbass/XIVLauncher.Core/tree/RB-patched +arch = amd64 +conflicts = xivlauncher +conflicts = xivlauncher-git +depends = build-essential +depends = aria2 +depends = libsdl2-2.0-0 +depends = libsecret-1-0 +depends = attr +depends = fontconfig +depends = liblcms2-2 +depends = libxml2 +depends = libxcursor1 +depends = libxrandr2 +depends = libxdamage1 +depends = gettext +depends = libfreetype6 +depends = libglu1-mesa +depends = libsm6 +depends = libpcap0.8 +depends = libfaudio0 +depends = desktop-file-utils +depends = libjxr0 +depends = xdg-utils +license = GPL +optdepends = steam +options = !strip +provides = xivlauncher=1.1.1.6 +source = XIVLauncher.Core::git+https://github.com/rankynbass/XIVLauncher.Core.git#branch=RB-patched +source = XIVLauncher.desktop +source = xivlauncher-core +sha512sums = SKIP +sha512sums = c06130b67efff8aa53760cb9c8bd764d4307624ec42c52d58cce388863e64788821f6f836857f200452e75de3b5311466074c70b81ad6d70ab60b286ddfda2e8 +sha512sums = 1b4584216828fac294d9955924a89bba716bcb6f1ec582e50f3169e1501eb3d637cb89f921d887d8aba20eb4a4166915e9812aad634bcfd10ab97324164aaec5 +makedepends_x86_64 = dotnet-sdk-8.0 +optdepends = steam +makedepends_x86_64 = dotnet-sdk-8.0 diff --git a/xivlauncher-rb/PKGBUILD b/xivlauncher-rb/PKGBUILD new file mode 100644 index 0000000..ea439a6 --- /dev/null +++ b/xivlauncher-rb/PKGBUILD @@ -0,0 +1,76 @@ +# Maintainer: XIVLauncher Linux Maintainers +pkgname=xivlauncher-rb +pkgver=1.1.1.6 +pkgrel=1 +#epoch=2 +pkgdesc="Custom Launcher for Final Fantasy XIV Online (Crossplatform rewrite - RB edition)" +arch=('amd64') +url='https://github.com/rankynbass/XIVLauncher.Core/tree/RB-patched' +license=('GPL') +depends=( + 'build-essential' + 'aria2' + 'libsdl2-2.0-0' + 'libsecret-1-0' + 'attr' + 'fontconfig' + 'liblcms2-2' + 'libxml2' + 'libxcursor1' + 'libxrandr2' + 'libxdamage1' + 'gettext' + 'libfreetype6' + 'libglu1-mesa' + 'libsm6' + 'libpcap0.8' + 'libfaudio0' + 'desktop-file-utils' + 'libjxr0' + 'xdg-utils' +) +makedepends_x86_64=('dotnet-sdk-8.0') +optdepends=('steam') +options=('!strip') +extensions=() +provides=("xivlauncher=${pkgver}") +conflicts=( + "xivlauncher" + "xivlauncher-git" +) +source=( + "XIVLauncher.Core::git+https://github.com/rankynbass/XIVLauncher.Core.git#branch=RB-patched" + "XIVLauncher.desktop" + "xivlauncher-core" +) +sha512sums=( + 'SKIP' + 'c06130b67efff8aa53760cb9c8bd764d4307624ec42c52d58cce388863e64788821f6f836857f200452e75de3b5311466074c70b81ad6d70ab60b286ddfda2e8' + '1b4584216828fac294d9955924a89bba716bcb6f1ec582e50f3169e1501eb3d637cb89f921d887d8aba20eb4a4166915e9812aad634bcfd10ab97324164aaec5' +) + +pkgver() { + cd "${srcdir}/XIVLauncher.Core" + cat version.txt + #printf "%s.r%s.%s" "$(sed -n 's:.*\(.*\).*:\1:p' src/XIVLauncher.Core/XIVLauncher.Core.csproj)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + #git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + mkdir -p "${srcdir}/build" + cd "${srcdir}/XIVLauncher.Core" + git submodule update --init --recursive + cd "${srcdir}/XIVLauncher.Core/src/XIVLauncher.Core/" + dotnet publish -r linux-x64 --sc -o "${srcdir}/build" --configuration Release -p:BuildHash="$(git rev-parse --short HEAD)" +} + +package() { + install -d "${pkgdir}/usr/bin/" + install -d "${pkgdir}/opt/XIVLauncher/" + install -D -m644 "${srcdir}/XIVLauncher.desktop" "${pkgdir}/usr/share/applications/XIVLauncher.desktop" + install -D -m644 "${srcdir}/XIVLauncher.Core/misc/linux_distrib/512.png" "${pkgdir}/usr/share/pixmaps/xivlauncher.png" + cp -r "${srcdir}/build/." "${pkgdir}/opt/XIVLauncher/" + ln -s "/opt/XIVLauncher/XIVLauncher.Core" "${pkgdir}/usr/bin/XIVLauncher.Core" + install -D -m755 "${srcdir}/xivlauncher-core" "${pkgdir}/usr/bin/xivlauncher-core" +} + diff --git a/xivlauncher-rb/XIVLauncher.desktop b/xivlauncher-rb/XIVLauncher.desktop new file mode 100644 index 0000000..469c185 --- /dev/null +++ b/xivlauncher-rb/XIVLauncher.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=XIVLauncher +Comment=Custom launcher for the most critically acclaimed MMO +Exec=xivlauncher-core +Icon=xivlauncher +Terminal=false +Type=Application +Categories=Game; +StartupWMClass=XIVLauncher.Core diff --git a/xivlauncher-rb/xivlauncher-core b/xivlauncher-rb/xivlauncher-core new file mode 100755 index 0000000..84adefa --- /dev/null +++ b/xivlauncher-rb/xivlauncher-core @@ -0,0 +1,2 @@ +#!/bin/sh +exec /opt/XIVLauncher/XIVLauncher.Core