Changing the Linux executable (only) to lowercase openrgb
Commits squashed by Adam Honse <calcprogrammer1@gmail.com>
This commit is contained in:
parent
f70c9cc63e
commit
e7dc95313f
7 changed files with 113 additions and 85 deletions
|
|
@ -17,9 +17,27 @@ if [ "$CI" == "" ] && [ -d /dev/shm ]; then
|
|||
else
|
||||
TEMP_BASE=/tmp
|
||||
fi
|
||||
|
||||
BUILD_DIR=$(mktemp -d -p "$TEMP_BASE" appimage-build-XXXXXX)
|
||||
|
||||
#-----------------------------------------------------------------------#
|
||||
# This checks the Architecture of the system to work out if we're #
|
||||
# building on i386 or x86_64 and saves for later use #
|
||||
#-----------------------------------------------------------------------#
|
||||
|
||||
if [ ${DEB_HOST_ARCH:0:1} == ${DEB_HOST_GNU_CPU:0:1} ]; then
|
||||
ARCH="$DEB_HOST_ARCH"
|
||||
else
|
||||
ARCH="$DEB_HOST_GNU_CPU"
|
||||
fi
|
||||
echo Inputs: "$DEB_HOST_ARCH" "$DEB_HOST_GNU_CPU"
|
||||
echo Calculated: "$ARCH"
|
||||
|
||||
#-----------------------------------------------------------------------#
|
||||
# Small fixes for CamelCase vs lowercase #
|
||||
#-----------------------------------------------------------------------#
|
||||
TARGET=OpenRGB
|
||||
patch -p1 -i scripts/AppImage.patch
|
||||
|
||||
#-----------------------------------------------------------------------#
|
||||
# Make sure to clean up build dir, even if errors occur #
|
||||
#-----------------------------------------------------------------------#
|
||||
|
|
@ -51,7 +69,7 @@ qmake "$REPO_ROOT"
|
|||
#-----------------------------------------------------------------------#
|
||||
# Build project and install files into AppDir #
|
||||
#-----------------------------------------------------------------------#
|
||||
make -j$(nproc)
|
||||
make -j$(nproc) TARGET="$TARGET"
|
||||
make install INSTALL_ROOT=AppDir
|
||||
|
||||
#-----------------------------------------------------------------------#
|
||||
|
|
@ -65,12 +83,12 @@ chmod +x "$REPO_ROOT"/scripts/tools/linuxdeploy*.AppImage
|
|||
#-----------------------------------------------------------------------#
|
||||
export QML_SOURCES_PATHS="$REPO_ROOT"/src
|
||||
|
||||
"$REPO_ROOT"/scripts/tools/linuxdeploy-x86_64.AppImage --appimage-extract-and-run --appdir AppDir -e OpenRGB -i "$REPO_ROOT"/qt/OpenRGB.png -d "$REPO_ROOT"/qt/OpenRGB.desktop
|
||||
"$REPO_ROOT"/scripts/tools/linuxdeploy-plugin-qt-x86_64.AppImage --appimage-extract-and-run --appdir AppDir
|
||||
"$REPO_ROOT"/scripts/tools/linuxdeploy-x86_64.AppImage --appimage-extract-and-run --appdir AppDir --output appimage
|
||||
"$REPO_ROOT"/scripts/tools/linuxdeploy-"$ARCH".AppImage --appimage-extract-and-run --appdir AppDir -e "$TARGET" -i "$REPO_ROOT"/qt/OpenRGB.png -d "$REPO_ROOT"/qt/OpenRGB.desktop
|
||||
"$REPO_ROOT"/scripts/tools/linuxdeploy-plugin-qt-"$ARCH".AppImage --appimage-extract-and-run --appdir AppDir
|
||||
"$REPO_ROOT"/scripts/tools/linuxdeploy-"$ARCH".AppImage --appimage-extract-and-run --appdir AppDir --output appimage
|
||||
|
||||
#-----------------------------------------------------------------------#
|
||||
# Move built AppImage back into original CWD #
|
||||
#-----------------------------------------------------------------------#
|
||||
mv OpenRGB*.AppImage "$OLD_CWD"
|
||||
mv -v "$TARGET"*.AppImage "$OLD_CWD"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue