Skip to content
Extraits de code Groupes Projets
Valider 143012f1 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

BUILD: Fixing once again the docker files...

parent b8558556
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!197Draft: Refactor the whole code.
......@@ -23,7 +23,8 @@ RUN STAGE=2 ./prepare
FROM linux-cache
WORKDIR /usr/src
ENV CXX=clang++
COPY --chmod=0755 utils/scripts/docker/package_appimages.bash package
COPY --chmod=0755 utils/scripts/docker/touch_files.bash touch
ENTRYPOINT ./touch && CXX=clang++ cargo test --release && CXX=clang++ cargo build --release && ./package
COPY --chmod=0755 utils/scripts/docker/build.bash build
ENTRYPOINT [ "./build" ]
......@@ -34,7 +34,7 @@ ENV MAKE=x86_64-w64-mingw32-make
ENV CMAKE=x86_64-w64-mingw32-cmake
ENV CXX=x86_64-w64-mingw32-g++
WORKDIR /home/devel
COPY --chmod=0755 utils/scripts/docker/touch_files.bash touch
COPY --chmod=0755 utils/scripts/docker/build.bash build
COPY --chmod=0755 utils/scripts/docker/package_zip.bash package
ENTRYPOINT ./touch && cargo test --release --target x86_64-pc-windows-gnu && cargo build --release --target x86_64-pc-windows-gnu && ./package
ENTRYPOINT [ "./build", "--target", "x86_64-pc-windows-gnu " ]
......@@ -13,5 +13,19 @@ for SOURCE in /src/**; do
&& [[ ! ${SOURCE} == "/src/build"* ]] \
&& [[ ! ${SOURCE} == "/src/utils"* ]] \
&& [[ ! ${SOURCE} == "/src/compile_commands.json" ]] \
&& install -CD ${SOURCE} $(realpath --relative-base=/src/ ${SOURCE})
&& {
echo "copy source file ${SOURCE}"
install -CD ${SOURCE} $(realpath --relative-base=/src/ ${SOURCE})
}
done
cargo test --release $@
cargo build --release $@
[ -x ./package ] && {
echo "calling the package script"
./package
} || {
echo "no package script to package the produced executables"
exit 1
}
#!/usr/bin/env bash
set -e
set -xe
[ ! -f /build/.gitignore ] && {
echo "The appimage folder is not mounted in the docker"
exit 1
......@@ -23,19 +23,20 @@ function join_by() {
function get_additional_libs() {
case $* in
*qt*) for LIB in /usr/lib/x86_64-linux-gnu/libQt6WaylandEglCompositorHwIntegration.so \
/usr/lib/x86_64-linux-gnu/libQt6WaylandEglClientHwIntegration.so \
/usr/lib/x86_64-linux-gnu/libQt6WaylandCompositor.so \
/usr/lib/x86_64-linux-gnu/libQt6OpenGLWidgets.so \
/usr/lib/x86_64-linux-gnu/libQt6OpenGL.so \
/usr/lib/x86_64-linux-gnu/libQt6MultimediaWidgets.so \
/usr/lib/x86_64-linux-gnu/libQt6Multimedia.so \
/usr/lib/x86_64-linux-gnu/libQt6Concurrent.so \
/usr/lib/x86_64-linux-gnu/libQt6WaylandClient.so \
/usr/lib/x86_64-linux-gnu/libQt6XcbQpa.so \
/usr/lib/x86_64-linux-gnu/libQt6EglFSDeviceIntegration.so \
/usr/lib/x86_64-linux-gnu/libQt6EglFsKmsGbmSupport.so \
/usr/lib/x86_64-linux-gnu/libQt6EglFsKmsSupport.so ;
*qt*)
for LIB in /usr/lib/x86_64-linux-gnu/libQt6WaylandEglCompositorHwIntegration.so \
/usr/lib/x86_64-linux-gnu/libQt6WaylandEglClientHwIntegration.so \
/usr/lib/x86_64-linux-gnu/libQt6WaylandCompositor.so \
/usr/lib/x86_64-linux-gnu/libQt6OpenGLWidgets.so \
/usr/lib/x86_64-linux-gnu/libQt6OpenGL.so \
/usr/lib/x86_64-linux-gnu/libQt6MultimediaWidgets.so \
/usr/lib/x86_64-linux-gnu/libQt6Multimedia.so \
/usr/lib/x86_64-linux-gnu/libQt6Concurrent.so \
/usr/lib/x86_64-linux-gnu/libQt6WaylandClient.so \
/usr/lib/x86_64-linux-gnu/libQt6XcbQpa.so \
/usr/lib/x86_64-linux-gnu/libQt6EglFSDeviceIntegration.so \
/usr/lib/x86_64-linux-gnu/libQt6EglFsKmsGbmSupport.so \
/usr/lib/x86_64-linux-gnu/libQt6EglFsKmsSupport.so ;
do
for FILE in ${LIB}*; do
echo -n " -l${FILE} "
......@@ -73,15 +74,20 @@ function deploy() {
*qt*)
for PLUGIN in ${QT_SRC}/*; do
local PLUGIN=$(basename ${PLUGIN})
if [ ! -d ${QT_DST}/${PLUGIN} ]; then
cp -rf ${QT_SRC}/${PLUGIN} ${QT_DST}/${PLUGIN}
fi
done;;
mkdir -p ${QT_DST}/${PLUGIN}
cp -rf ${QT_SRC}/${PLUGIN}/* ${QT_DST}/${PLUGIN}/
done
for PRL_FILE in /usr/lib/x86_64-linux-gnu/libQt6Wayland*.prl; do
cp ${PRL_FILE} ${EXEC^}/usr/lib/$(basename ${PRL_FILE})
done
;;
*);;
esac
find ${EXEC^}/usr/lib/ -type f -and \( ${EXCLUDE_LIBS} \) -delete
cp LICENSE CHANGELOG.md CONTRIBUTING.md ${EXEC^}/
install -Dm644 ${EXEC}/${EXEC}.appdata.xml ${EXEC^}/usr/share/metainfo/${EXEC}.appdata.xml
# Custom AppRun script!
unlink ${EXEC^}/AppRun \
&& touch ${EXEC^}/AppRun \
&& chmod +x ${EXEC^}/AppRun
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter