-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappimage.sh
More file actions
executable file
·45 lines (35 loc) · 1.23 KB
/
appimage.sh
File metadata and controls
executable file
·45 lines (35 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
set -e
APPDIR="VibeRadiant.AppDir"
APPNAME="VibeRadiant"
BINARY="radiant.x86_64"
DESKTOP="viberadiant.desktop"
ICON="$BINARY"
ICON_SRC="install/bitmaps/logo.svg"
ICON_DEST="$APPDIR/$ICON.svg"
echo "[1/5] Preparing AppDir structure..."
mkdir -p "$APPDIR/usr/bin"
echo "[2/5] Copying executable and support files..."
cp -r install/. "$APPDIR/usr/bin/"
echo "[3/5] Generating desktop file..."
DESKTOP_FILE="$APPDIR/$DESKTOP"
cat > "$DESKTOP_FILE" <<EOF
[Desktop Entry]
Name=$APPNAME
Exec=$BINARY %F
Icon=$ICON
Type=Application
Categories=Game;Graphics;
StartupWMClass=VibeRadiant
EOF
install "$ICON_SRC" "$ICON_DEST"
echo "[4/5] Linuxdeploy downloading..."
wget -c -nv "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage"
chmod +x linuxdeploy-x86_64.AppImage
wget -c -nv "https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage"
chmod +x linuxdeploy-plugin-qt-x86_64.AppImage
APPIMAGETOOL=./linuxdeploy-x86_64.AppImage
echo "[5/5] Building AppImage..."
"$APPIMAGETOOL" --desktop-file $APPDIR/*.desktop --icon-file=$ICON_DEST --appdir=$APPDIR --plugin qt --output appimage
echo "Done!"
echo "Built: ${APPNAME}-x86_64.AppImage"