epicgameslauncher-appimage
LOW
maintainer JoaoMachado
0 votes
scanned 2026-10-21 19:33:05.748742
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: John Machado <john at delinuxco dot com>
2
3
###############################################################################
4
# CONFIGURATION SECTION
5
# Replace these values with your specific application details.
6
###############################################################################
7
pkgname=epicgameslauncher-appimage
8
_pkgname=EpicGamesLauncher
9
pkgver="0.100.0"
10
pkgrel=1
11
pkgdesc="The official Epic Games Launcher."
12
arch=('x86_64')
13
url="https://launcher.epicgames.com/"
14
license=('Epic')
15
provides=('epicgameslauncher')
16
conflicts=('epicgameslauncher')
17
18
# The filename as it appears in the download URL (e.g., app-1.0.0-x86_64.AppImage)
19
_appimage_filename="${_pkgname}-x86_64.AppImage"
20
21
# The source URL to download AppImage
22
_source_url="https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncher-x86_64.AppImage"
23
# https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncher-x86_64.AppImage
24
25
# Where the file will live in your system (Standard is /opt/appimages/)
26
_install_dir="/opt/appimages"
27
_install_path="${_install_dir}/${_pkgname}.AppImage"
28
29
# Inside the AppImage, what is the name of the .desktop file?
30
# Usually it matches the app name, e.g., 'org.kde.kcalc.desktop'
31
_desktop_file="epic-games-launcher.desktop"
32
33
# Inside the AppImage, what is the name of the icon file?
34
_icon_file="EpicGamesLauncher.svg"
35
###############################################################################
36
37
depends=(
38
'fuse2'
39
'fuse3'
40
)
41
42
makedepends=(
43
'desktop-file-utils'
44
)
45
46
# Add any optional dependencies
47
optdepends=()
48
49
options=(!strip)
50
51
# All source files in root directory of PKGBUILD must be listed and with corresponding sha256/md5 sums
52
source=(
53
"${_source_url}"
54
"${_icon_file}"
55
)
56
57
sha256sums=(
58
'a9b7e40e3e5220bce97068b3974a796530e5bdbc77db1e1beba0d7bdbed0b44e'
59
'3e424b6ea688cfb2bc0c577c58310babc920422272c2078c41ce5188369bb78b'
60
)
61
62
prepare() {
63
64
# 1. Make the AppImage executable and extract it
65
chmod +x "${_appimage_filename}"
66
./"${_appimage_filename}" --appimage-extract
67
68
# 2. Setup directory structure inside squashfs-root for the build process
69
mkdir -p "${srcdir}/squashfs-root/assets/icons/"
70
mkdir -p "${srcdir}/squashfs-root/assets/launchers/"
71
72
# 3. Move the icon and desktop file to a known location for easy installation
73
# Note: We check if they exist to prevent build failure if names differ
74
if [ -f "${_icon_file}" ]; then
75
cp "${_icon_file}" "squashfs-root/assets/icons/${_icon_file}"
76
fi
77
78
if [ -f "squashfs-root/${_desktop_file}" ]; then
79
cp "squashfs-root/${_desktop_file}" "squashfs-root/assets/launchers/${_desktop_file}"
80
81
# 4. CRITICAL: Rewrite the .desktop file to point to new path
82
# This rewrites the 'Exec' line so it will execute the AppImage from /opt/appimages/
83
# If the .desktop and svg files will be provided in the PKGBUILD directory, comment out the next two lines that start with "desktop-file-edit".
84
desktop-file-edit --set-key=Exec --set-value="${_install_path} %U" "squashfs-root/assets/launchers/${_desktop_file}"
85
desktop-file-edit --set-key=TryExec --set-value="${_install_path}" "squashfs-root/assets/launchers/${_desktop_file}"
86
fi
87
}
88
89
package() {
90
# 1. Install the actual AppImage to /opt/appimages/
91
install -d "${pkgdir}${_install_dir}"
92
install -Dm755 "${srcdir}/${_appimage_filename}" "${pkgdir}${_install_path}"
93
94
# 2. Install the Desktop Entry and Icon to standard system paths
95
if [ -f "${srcdir}/squashfs-root/assets/launchers/${_desktop_file}" ]; then
96
install -Dm644 "squashfs-root/assets/launchers/${_desktop_file}" "${pkgdir}/usr/share/applications/${_desktop_file}"
97
fi
98
99
if [ -f "${srcdir}/squashfs-root/assets/icons/${_icon_file}" ]; then
100
install -Dm644 "squashfs-root/assets/icons/${_icon_file}" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_icon_file}"
101
fi
102
103
# 3. Create the symlink in /usr/bin so you can launch it from terminal via 'appname'
104
install -d "${pkgdir}/usr/bin"
105
ln -s "${_install_path}" "${pkgdir}/usr/bin/${_pkgname}"
106
}
107
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-21 19:33:05 | Low | 1 |