代码拉取完成,页面将自动刷新
#!/bin/bash
# See: https://docs.appimage.org/packaging-guide/from-source/native-binaries.html#examples
set -x
set -e
## building in temporary directory to keep system clean
## use RAM disk if possible (as in: not building on CI system like Travis, and RAM disk is available)
#if [ "$CI" == "" ] && [ -d /dev/shm ]; then
# TEMP_BASE=/dev/shm
#else
# TEMP_BASE=/tmp
#fi
#BUILD_DIR=$(mktemp -d -p "$TEMP_BASE" rabbitremotecontrol-appimage-build-XXXXXX)
## make sure to clean up build dir, even if errors occur
BUILD_DIR=build_rabbitremotecontrol_appimage
mkdir -p $BUILD_DIR
cleanup () {
if [ -d "${BUILD_DIR}" ]; then
rm -rf "${BUILD_DIR}"
fi
}
if [ "$CI" != "" ]; then
trap cleanup EXIT
fi
# store repo root as variable
REPO_ROOT=$(readlink -f $(dirname $(dirname $0)))
OLD_CWD=$(readlink -f .)
INSTALL_DIR=AppDir/usr
# switch to build dir
pushd "${BUILD_DIR}"
cmake "$REPO_ROOT" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMARK_SHARED=OFF \
-DCMARK_TESTS=OFF \
-DCMARK_STATIC=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_QUIWidget=OFF \
-DBUILD_APP=ON \
-DBUILD_FREERDP=ON
cmake --build . --parallel $(nproc)
cmake --install . --config Release --component DependLibraries --prefix $INSTALL_DIR
cmake --install . --config Release --component Runtime --prefix ${INSTALL_DIR}
cmake --install . --config Release --component Application --prefix ${INSTALL_DIR}
cmake --install . --config Release --component Plugin --prefix ${INSTALL_DIR}
if [ ! -f linuxdeploy-`uname -m`.AppImage ]; then
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20240109-1/linuxdeploy-`uname -m`.AppImage
chmod u+x linuxdeploy-`uname -m`.AppImage
fi
if [ ! -f linuxdeploy-plugin-qt-`uname -m`.AppImage ]; then
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/1-alpha-20240109-1/linuxdeploy-plugin-qt-`uname -m`.AppImage
chmod u+x linuxdeploy-plugin-qt-`uname -m`.AppImage
fi
# See: https://github.com/linuxdeploy/linuxdeploy-plugin-qt
#export QMAKE=qmake6
export EXTRA_PLATFORM_PLUGINS="libqxcb.so"
./linuxdeploy-`uname -m`.AppImage --appdir=AppDir -v0 \
--deploy-deps-only=${INSTALL_DIR}/plugins/Client \
--deploy-deps-only=${INSTALL_DIR}/lib/`uname -m`-linux-gnu \
--plugin qt \
--output appimage
cp Rabbit_Remote_Control-`uname -m`.AppImage $REPO_ROOT
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。