quelques corrections
This commit is contained in:
parent
0693853b92
commit
5b21c3dc49
@ -118,6 +118,6 @@ services:
|
|||||||
- ./.env
|
- ./.env
|
||||||
environment:
|
environment:
|
||||||
- CUSTOM_STEP_PRE_DEPLOY=/build/kdiff3_pre_step.sh
|
- CUSTOM_STEP_PRE_DEPLOY=/build/kdiff3_pre_step.sh
|
||||||
- NOM_APPIMAGE=kdiff3_1.9.2
|
- NOM_APPIMAGE=kdiff_3_1.9.2
|
||||||
command : ["bash", "-c","/template.sh /usr/local/bin/kdiff3 /build"]
|
command : ["bash", "-c","/template.sh /usr/local/bin/kdiff3 /build"]
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 819 B After Width: | Height: | Size: 3.0 KiB |
@ -7,7 +7,7 @@ RUN yum install -y patchelf && \
|
|||||||
cd qt-creator && \
|
cd qt-creator && \
|
||||||
git checkout $QTCREATOR_VER && \
|
git checkout $QTCREATOR_VER && \
|
||||||
mkdir qtcreator_build && cd qtcreator_build && \
|
mkdir qtcreator_build && cd qtcreator_build && \
|
||||||
QT_VER=$QT_VER cmake3 -DCMAKE_BUILD_TYPE=Release -G Ninja "-DCMAKE_PREFIX_PATH=/qt/$QT_VER/gcc_64/" /qt-creator/ && \
|
cmake3 -DCMAKE_BUILD_TYPE=Release -G Ninja "-DCMAKE_PREFIX_PATH=/qt/$QT_VER/gcc_64/" /qt-creator/ && \
|
||||||
cmake3 --build .
|
cmake3 --build .
|
||||||
|
|
||||||
# Exécuter une commande au démarrage de l'image.
|
# Exécuter une commande au démarrage de l'image.
|
||||||
|
17
template.sh
17
template.sh
@ -1,6 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# à utiliser pour builder une appimage d'une app quelconque, y compris hors cadre GIREF/BIB
|
|
||||||
# Ceci est un point départ plus qu'un script clef en main !
|
|
||||||
function exit_on_fail() {
|
function exit_on_fail() {
|
||||||
"$@"
|
"$@"
|
||||||
local status=$?
|
local status=$?
|
||||||
@ -11,19 +9,6 @@ function exit_on_fail() {
|
|||||||
return $status
|
return $status
|
||||||
}
|
}
|
||||||
|
|
||||||
# Fonction permettant d'effectuer quelques vérifications de base
|
|
||||||
function verifications() {
|
|
||||||
echo "### Vérifications"
|
|
||||||
command -v linuxdeploy-x86_64.AppImage >/dev/null 2>&1 || {
|
|
||||||
echo >&2 "L'outil linuxdeploy-x86_64.AppImage n'est pas présent, pas de livraison possible !"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
command -v appimagetool-x86_64.AppImage >/dev/null 2>&1 || {
|
|
||||||
echo >&2 "L'outil appimagetool-x86_64.AppImage n'est pas présent, pas de livraison possible !"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if [[ "$#" -ne 2 ]] && [[ "$#" -ne 3 ]]; then
|
if [[ "$#" -ne 2 ]] && [[ "$#" -ne 3 ]]; then
|
||||||
echo "Usage: $0 CHEMIN_COMPLET_VERS_APP/mon_app CHEMIN_DESTINATION_APPIMAGE"
|
echo "Usage: $0 CHEMIN_COMPLET_VERS_APP/mon_app CHEMIN_DESTINATION_APPIMAGE"
|
||||||
exit 0
|
exit 0
|
||||||
@ -33,8 +18,6 @@ script_dir=$(dirname $0)
|
|||||||
BIN=$1
|
BIN=$1
|
||||||
DEST_DIR=$2
|
DEST_DIR=$2
|
||||||
|
|
||||||
verifications
|
|
||||||
|
|
||||||
APP_NOM=$(basename $BIN)
|
APP_NOM=$(basename $BIN)
|
||||||
if [[ -z NOM_APPIMAGE ]]; then
|
if [[ -z NOM_APPIMAGE ]]; then
|
||||||
if [[ "$APP_NOM" =~ "." ]]; then
|
if [[ "$APP_NOM" =~ "." ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user