-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sh
executable file
·37 lines (29 loc) · 1.54 KB
/
build.sh
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
#! /bin/sh
set -x
set -e
NAME="qtedit4-qt6.8.0-v0.0.4-dev-x86_64"
QTDIR="$HOME/qt/6.8.0/gcc_64/"
export matrix_config_build_dir=ubuntu-gcc
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export OUTPUT=dist/$NAME.AppImage
rm -fr "build/${matrix_config_build_dir}"
rm -fr "dist"
export CC="/usr/lib/ccache/clang-19"
export CXX="/usr/lib/ccache/clang++-19"
cmake -B "build/${matrix_config_build_dir}" -DCMAKE_BUILD_TYPE=Release
cmake --build "build/${matrix_config_build_dir}" --parallel --config Release
cmake --install "build/${matrix_config_build_dir}" --prefix dist/${matrix_config_build_dir}/usr
rm -fr dist/qtedit4
mkdir -p dist/qtedit4/
ln -s ../ubuntu-gcc/usr/ dist/qtedit4/$NAME
tar -cjhvf dist/$NAME.tar.bz2 -C dist/qtedit4 .
# Qt plugin does not bundle the needed plugins, do this manually
mkdir -p "dist/${matrix_config_build_dir}/usr/plugins/iconengines/"
mkdir -p "dist/${matrix_config_build_dir}/usr/plugins/platforms/"
cp -arv $QTDIR/plugins/iconengines/* "dist/${matrix_config_build_dir}/usr/plugins/iconengines/"
cp -arv $QTDIR/plugins/platforms/libqwayland-*.so "dist/${matrix_config_build_dir}/usr/plugins/platforms/"
wget -nc --no-verbose "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage"
wget -nc --no-verbose "https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage"
chmod +x linuxdeploy*.AppImage
./linuxdeploy-x86_64.AppImage --appdir "dist/${matrix_config_build_dir}" --plugin qt --output appimage