Simplify Linux bundle building
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
This commit is contained in:
parent
de5463532b
commit
583edc51f8
|
@ -49,6 +49,7 @@ pipeline {
|
||||||
LEIN_HOME = '/var/tmp/lein'
|
LEIN_HOME = '/var/tmp/lein'
|
||||||
QT_PATH = '/opt/qt'
|
QT_PATH = '/opt/qt'
|
||||||
STATUSIM_APPIMAGE_DIR = '/opt/desktop-files'
|
STATUSIM_APPIMAGE_DIR = '/opt/desktop-files'
|
||||||
|
VERBOSE_LEVEL = '3'
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
|
|
@ -31,6 +31,7 @@ pipeline {
|
||||||
QT_PATH = '/usr/local/opt/qt'
|
QT_PATH = '/usr/local/opt/qt'
|
||||||
PATH = "/usr/local/opt/qt/bin:${env.PATH}"
|
PATH = "/usr/local/opt/qt/bin:${env.PATH}"
|
||||||
MACDEPLOYQT = '/usr/local/opt/qt/bin/macdeployqt'
|
MACDEPLOYQT = '/usr/local/opt/qt/bin/macdeployqt'
|
||||||
|
VERBOSE_LEVEL = '3'
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
|
|
@ -52,6 +52,7 @@ pipeline {
|
||||||
CONAN_SYSREQUIRES_MODE = 'disabled'
|
CONAN_SYSREQUIRES_MODE = 'disabled'
|
||||||
CONAN_SYSREQUIRES_SUDO = '0'
|
CONAN_SYSREQUIRES_SUDO = '0'
|
||||||
STATUSIM_WINDOWS_BASEIMAGE_ZIP = '/opt/StatusIm-Windows-base-image.zip'
|
STATUSIM_WINDOWS_BASEIMAGE_ZIP = '/opt/StatusIm-Windows-base-image.zip'
|
||||||
|
VERBOSE_LEVEL = '3'
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
|
|
@ -208,8 +208,7 @@ QString getDataStoragePath() {
|
||||||
QString dataStoragePath;
|
QString dataStoragePath;
|
||||||
if (!statusDataDir.isEmpty()) {
|
if (!statusDataDir.isEmpty()) {
|
||||||
dataStoragePath = statusDataDir;
|
dataStoragePath = statusDataDir;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
dataStoragePath = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
|
dataStoragePath = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
|
||||||
}
|
}
|
||||||
QDir dir(dataStoragePath);
|
QDir dir(dataStoragePath);
|
||||||
|
|
|
@ -298,8 +298,7 @@ function bundleLinux() {
|
||||||
usrBinPath=$(joinPath "$WORKFOLDER" "AppDir/usr/bin")
|
usrBinPath=$(joinPath "$WORKFOLDER" "AppDir/usr/bin")
|
||||||
cp -r ./deployment/linux/usr $WORKFOLDER/AppDir
|
cp -r ./deployment/linux/usr $WORKFOLDER/AppDir
|
||||||
cp ./.env $usrBinPath
|
cp ./.env $usrBinPath
|
||||||
cp ./desktop/bin/Status $usrBinPath
|
cp ./desktop/bin/Status ./desktop/bin/reportApp $usrBinPath
|
||||||
cp ./desktop/bin/reportApp $usrBinPath
|
|
||||||
|
|
||||||
if [ ! -f $DEPLOYQT ]; then
|
if [ ! -f $DEPLOYQT ]; then
|
||||||
wget --output-document="$DEPLOYQT" --show-progress "https://desktop-app-files.ams3.digitaloceanspaces.com/$DEPLOYQTFNAME" # Versioned from https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
|
wget --output-document="$DEPLOYQT" --show-progress "https://desktop-app-files.ams3.digitaloceanspaces.com/$DEPLOYQTFNAME" # Versioned from https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
|
||||||
|
@ -311,45 +310,33 @@ function bundleLinux() {
|
||||||
chmod a+x $APPIMAGETOOL
|
chmod a+x $APPIMAGETOOL
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f Application-x86_64.AppImage
|
rm -f Application-x86_64.AppImage Status-x86_64.AppImage
|
||||||
rm -f Status-x86_64.AppImage
|
|
||||||
|
|
||||||
[ $VERBOSE_LEVEL -ge 1 ] && ldd $(joinExistingPath "$usrBinPath" 'Status')
|
[ $VERBOSE_LEVEL -ge 1 ] && ldd $(joinExistingPath "$usrBinPath" 'Status')
|
||||||
desktopFilePath="$(joinExistingPath "$WORKFOLDER" 'AppDir/usr/share/applications/Status.desktop')"
|
desktopFilePath="$(joinExistingPath "$WORKFOLDER" 'AppDir/usr/share/applications/Status.desktop')"
|
||||||
|
pushd $WORKFOLDER
|
||||||
|
[ $VERBOSE_LEVEL -ge 1 ] && ldd $usrBinPath/Status
|
||||||
|
cp -r assets/share/assets $usrBinPath
|
||||||
|
cp -rf StatusImAppImage/* $usrBinPath
|
||||||
|
rm -f $usrBinPath/Status.AppImage
|
||||||
|
popd
|
||||||
|
|
||||||
$DEPLOYQT \
|
$DEPLOYQT \
|
||||||
$desktopFilePath \
|
$desktopFilePath \
|
||||||
-verbose=$VERBOSE_LEVEL -always-overwrite -no-strip \
|
-verbose=$VERBOSE_LEVEL -always-overwrite -no-strip \
|
||||||
-no-translations -bundle-non-qt-libs \
|
-no-translations -bundle-non-qt-libs \
|
||||||
-executable="$usrBinPath/reportApp" \
|
|
||||||
-qmake="$qmakePath" \
|
-qmake="$qmakePath" \
|
||||||
|
-executable="$(joinExistingPath "$usrBinPath" 'reportApp')" \
|
||||||
|
-qmldir="$(joinExistingPath "$STATUSREACTPATH" 'node_modules/react-native')" \
|
||||||
|
-qmldir="$STATUSREACTPATH/desktop/reportApp" \
|
||||||
-extra-plugins=imageformats/libqsvg.so \
|
-extra-plugins=imageformats/libqsvg.so \
|
||||||
-qmldir="$(joinExistingPath "$STATUSREACTPATH" 'node_modules/react-native')"
|
-appimage
|
||||||
|
|
||||||
$DEPLOYQT \
|
|
||||||
$(joinExistingPath "$usrBinPath" 'reportApp') \
|
|
||||||
-verbose=$VERBOSE_LEVEL -always-overwrite -no-strip -no-translations -qmake="$qmakePath" \
|
|
||||||
-qmldir="$STATUSREACTPATH/desktop/reportApp"
|
|
||||||
|
|
||||||
pushd $WORKFOLDER
|
pushd $WORKFOLDER
|
||||||
[ $VERBOSE_LEVEL -ge 1 ] && ldd AppDir/usr/bin/Status
|
[ $VERBOSE_LEVEL -ge 1 ] && ldd $usrBinPath/Status
|
||||||
cp -r assets/share/assets AppDir/usr/bin
|
rm -f $usrBinPath/Status.AppImage
|
||||||
cp -rf StatusImAppImage/* AppDir/usr/bin
|
$APPIMAGETOOL ./AppDir
|
||||||
rm -f AppDir/usr/bin/Status.AppImage
|
[ $VERBOSE_LEVEL -ge 1 ] && ldd $usrBinPath/Status
|
||||||
popd
|
|
||||||
|
|
||||||
$DEPLOYQT \
|
|
||||||
$desktopFilePath \
|
|
||||||
-verbose=$VERBOSE_LEVEL -appimage -qmake="$qmakePath"
|
|
||||||
pushd $WORKFOLDER
|
|
||||||
[ $VERBOSE_LEVEL -ge 1 ] && ldd AppDir/usr/bin/Status
|
|
||||||
cp -r assets/share/assets AppDir/usr/bin
|
|
||||||
cp -rf StatusImAppImage/* AppDir/usr/bin
|
|
||||||
rm -f AppDir/usr/bin/Status.AppImage
|
|
||||||
popd
|
|
||||||
$APPIMAGETOOL \
|
|
||||||
"$WORKFOLDER/AppDir"
|
|
||||||
pushd $WORKFOLDER
|
|
||||||
[ $VERBOSE_LEVEL -ge 1 ] && ldd AppDir/usr/bin/Status
|
|
||||||
rm -rf Status.AppImage
|
rm -rf Status.AppImage
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue