Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions src/bin/appimage-apps/15-epic-games-launcher.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/usr/bin/env bash

# Parent Path
PARENT_PATH="/home/${USER}/appimages"

# AppImage path
APPIMAGE_PATH="${PARENT_PATH}/epic-games-launcher-latest.appimage"

# Icon path
ICON_PATH="${HOME}/.local/share/icons/epic-games-launcher.png"

# Prep parent folder
if [[ ! -d "${PARENT_PATH}" ]]; then
mkdir -p "${PARENT_PATH}"
fi
mkdir -p "$(dirname "${ICON_PATH}")"

URL="https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncher-x86_64.AppImage"

# Install Epic Games Launcher
sudo curl -L -o "${APPIMAGE_PATH}" "${URL}"

# Set permissions
sudo chown "${USER}:${USER}" "${APPIMAGE_PATH}"
sudo chmod 755 "${APPIMAGE_PATH}"

TEMP_DIR=$(mktemp -d) || exit 1
trap 'rm -rf "${TEMP_DIR}"' EXIT
if ! (
cd "${TEMP_DIR}" || exit
"${APPIMAGE_PATH}" --appimage-extract >/dev/null
); then
printf 'Failed to extract Epic Games Launcher icon from %s\n' "${APPIMAGE_PATH}" >&2
exit 1
fi
EXTRACTED_ICON="${TEMP_DIR}/squashfs-root/epic-games-launcher.png"
if [[ ! -f "${EXTRACTED_ICON}" ]]; then
printf 'Epic Games Launcher icon was not found in %s\n' "${APPIMAGE_PATH}" >&2
exit 1
fi
if ! cp "${EXTRACTED_ICON}" "${ICON_PATH}"; then
printf 'Failed to install Epic Games Launcher icon to %s\n' "${ICON_PATH}" >&2
exit 1
fi

APPLICATIONS_PATH="${HOME}/.local/share/applications"
mkdir -p "${APPLICATIONS_PATH}"
cat > "${APPLICATIONS_PATH}/epic-games-launcher.desktop" <<EOF
[Desktop Entry]
Name=Epic Games Launcher
Comment=Epic Games Launcher
GenericName=Epic Games Launcher
Exec=${HOME}/appimages/epic-games-launcher-latest.appimage
Icon=${ICON_PATH}
Type=Application
StartupNotify=false
EOF
29 changes: 29 additions & 0 deletions src/bin/appimage-apps/16-xodus-nexus.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash

XODUS_NEXUS_VERSION="0.3.7"

PARENT_PATH="${HOME}/appimages"
APPIMAGE_PATH="${PARENT_PATH}/xodus-nexus-latest.appimage"
ICON_PATH="${HOME}/.local/share/icons/xodus-nexus.png"
URL="https://github.com/domsvoboda/xodus-nexus/releases/download/v${XODUS_NEXUS_VERSION}/Xodus-Nexus-${XODUS_NEXUS_VERSION}-x86_64.AppImage"
ICON_URL="https://raw.githubusercontent.com/domsvoboda/xodus-nexus/main/assets/icon.png"

mkdir -p "${PARENT_PATH}" || exit 1
curl -fL -o "${APPIMAGE_PATH}" "${URL}" || exit 1
chmod 755 "${APPIMAGE_PATH}" || exit 1

mkdir -p "$(dirname "${ICON_PATH}")" || exit 1
curl -fL -o "${ICON_PATH}" "${ICON_URL}" || exit 1

APPLICATIONS_PATH="${HOME}/.local/share/applications"
mkdir -p "${APPLICATIONS_PATH}" || exit 1
cat > "${APPLICATIONS_PATH}/xodus-nexus.desktop" <<EOF
[Desktop Entry]
Name=Xodus Nexus
Comment=Launcher for Microsoft Store PC games on Linux
GenericName=Xodus Nexus
Exec=${APPIMAGE_PATH}
Icon=${ICON_PATH}
Type=Application
StartupNotify=false
EOF
2 changes: 2 additions & 0 deletions src/bin/appimage-apps/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
"${SCRIPT_DIR}"/12-ascension.sh
"${SCRIPT_DIR}"/13-wowup.sh
"${SCRIPT_DIR}"/14-weakauras.sh
"${SCRIPT_DIR}"/15-epic-games-launcher.sh
"${SCRIPT_DIR}"/16-xodus-nexus.sh
"${SCRIPT_DIR}"/20-exiled-exchange.sh
Loading