From 090c274a5588d4dd26070ed5d95b8489449bcf64 Mon Sep 17 00:00:00 2001 From: "Josh.5" Date: Sun, 16 Jan 2022 06:15:04 +1300 Subject: [PATCH] Add heroic launcher installer scripts --- overlay/opt/scripts/install_heroic.sh | 38 +++++++++++++++++++ .../share/applications/install.heroic.desktop | 7 ++++ 2 files changed, 45 insertions(+) create mode 100644 overlay/opt/scripts/install_heroic.sh create mode 100644 overlay/usr/share/applications/install.heroic.desktop diff --git a/overlay/opt/scripts/install_heroic.sh b/overlay/opt/scripts/install_heroic.sh new file mode 100644 index 0000000..34cb810 --- /dev/null +++ b/overlay/opt/scripts/install_heroic.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash +### +# File: install_heroic.sh +# Project: scripts +# File Created: Thursday, 1st January 1970 12:00:00 pm +# Author: Console and webGui login account (jsunnex@gmail.com) +# ----- +# Last Modified: Sunday, 16th January 2022 6:14:06 am +# Modified By: Console and webGui login account (jsunnex@gmail.com) +### + +pkg=heroic +script_path=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ); +script_name=$( basename "${BASH_SOURCE[0]}" ) + + +install() { + if ! dpkg --get-selections | grep -q "^$pkg[[:space:]]*install$" >/dev/null; then + echo 'deb https://sourceforge.net/projects/madlinux/files/repo core main'|sudo tee /etc/apt/sources.list.d/madlinux.list + wget -qO- Https://sourceforge.net/projects/madlinux/files/repo/madlinux.key|gpg --dearmor|sudo tee /etc/apt/trusted.gpg.d/madlinux.gpg>/dev/null + + apt-get update + apt-get install -y heroic + fi + + # Remove installer shortcut + rm -f /usr/share/applications/install.heroic.desktop +} + + +#INSTALLER: +source "${script_path}/installer.sh" + + + + + + diff --git a/overlay/usr/share/applications/install.heroic.desktop b/overlay/usr/share/applications/install.heroic.desktop new file mode 100644 index 0000000..68c0688 --- /dev/null +++ b/overlay/usr/share/applications/install.heroic.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Installer - Heroic (Epic Games Launcher) +Categories=Game; +Exec=/opt/scripts/install_heroic.sh %U +Icon=installsoftware +Terminal=true +Type=Application