16 Star 127 Fork 44

kl222/RabbitRemoteControl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build_appimage.sh 2.32 KB
一键复制 编辑 原始数据 按行查看 历史
kl222 提交于 2024-11-01 17:10 . App: modify slotLoadConnecterMenu
#!/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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/kl222/RabbitRemoteControl.git
[email protected]:kl222/RabbitRemoteControl.git
kl222
RabbitRemoteControl
RabbitRemoteControl
master

搜索帮助