mirror of
https://github.com/Vita3K/Vita3K.git
synced 2026-11-17 03:14:53 +01:00
* vita3k: Improve Linux builds - Add Appstream metadata - Add FreeDesktop compliant svg icon - Add non-AppImage CMake install commands for Linux - Rename icon+desktop file to FreeDesktop compliant rDNS naming scheme * Remove/update outdated vita3k URLs from metainfo * Fix install paths and move Linux distribution materials to `dist/linux`. Add stub cmake script to generate release info for metainfo.xml. * Fix data installl commands * Use vita3k git rev as release version * Try and fix including metainfo generator * Fix path to metainfo template * Fix newlines and intentation * Install README and license file to appropriate locations on Linux * Fix installation paths for readme and license file * Apply suggestion from @EXtremeExploit * Ensure icon and metainfo are in build directory. Streamline app data installation into fewer `install` commands Use a cmake variable for app ID string. * Try fix installing translations * Use qm files variable for cmake install * Fix stray newline * Remove duplicate @ in template file * Always default `DISCORD_LIB_APPIMAGE` to empty * Un-lowercase licenses directory --------- Co-authored-by: Pedro Montes Alcalde <pedro.montes.alcalde@gmail.com>
29 lines
696 B
Bash
Executable File
29 lines
696 B
Bash
Executable File
#!/bin/sh
|
|
|
|
export LDAI_VERBOSE=1
|
|
|
|
# Try to detect the target architecture from environment or fallback to host
|
|
if [ -n "$ARCH" ]; then
|
|
DETECTED_ARCH="$ARCH"
|
|
elif [ -n "$CMAKE_APPIMAGE_ARCH" ]; then
|
|
DETECTED_ARCH="$CMAKE_APPIMAGE_ARCH"
|
|
elif [ -n "$APPIMAGE_ARCH" ]; then
|
|
DETECTED_ARCH="$APPIMAGE_ARCH"
|
|
else
|
|
# Fallback to host architecture
|
|
UNAME_ARCH=$(uname -m)
|
|
case "$UNAME_ARCH" in
|
|
x86_64)
|
|
DETECTED_ARCH="x86_64" ;;
|
|
aarch64|arm64)
|
|
DETECTED_ARCH="aarch64" ;;
|
|
*)
|
|
DETECTED_ARCH="$UNAME_ARCH" ;;
|
|
esac
|
|
fi
|
|
|
|
echo "Detected architecture: $DETECTED_ARCH"
|
|
export LDAI_UPDATE_INFORMATION="gh-releases-zsync|Vita3K|Vita3K|continuous|Vita3K-$(echo "$DETECTED_ARCH").AppImage.zsync"
|
|
|
|
$@
|