Skip to content
Permalink
Browse files

Merge pull request #571 from LibrePCB/ci-build-linux-archive

CI: Create archive for deployment on Linux
  • Loading branch information
ubruhin committed Nov 11, 2019
2 parents c292ef0 + f504cb6 commit 38812d348b835e3add1c60a7b1a956d2490cafac
Showing with 22 additions and 7 deletions.
  1. +3 −0 ci/azure-jobs-linux.yml
  2. +8 −7 ci/build_linux_appimage.sh
  3. +11 −0 ci/build_linux_archive.sh
@@ -37,6 +37,9 @@ jobs:
- bash: ./ci/build_linux_appimage.sh
displayName: Build AppImage
condition: and(succeeded(), eq(variables['DEPLOY'], 'true'))
- bash: ./ci/build_linux_archive.sh
displayName: Build Archive
condition: and(succeeded(), eq(variables['DEPLOY'], 'true'))
- bash: ./ci/build_installer.sh
displayName: Build Installer
condition: and(succeeded(), eq(variables['DEPLOY'], 'true'))
@@ -3,15 +3,16 @@
# set shell settings (see https://sipb.mit.edu/doc/safe-shell/)
set -euv -o pipefail

# Manually specify icon to be used for the AppImage
cp "./build/install/opt/share/icons/hicolor/scalable/apps/org.librepcb.LibrePCB.svg" "./build/install/org.librepcb.LibrePCB.svg"

# Build CLI AppImage
cp -r "./build/install" "./build/install-cli"
mv -f "./build/install-cli/opt/bin/librepcb-cli" "./build/install-cli/opt/bin/librepcb"
linuxdeployqt "./build/install-cli/opt/share/applications/org.librepcb.LibrePCB.desktop" -bundle-non-qt-libs -appimage
cp -r "./build/install" "./build/appimage-cli"
mv -f "./build/appimage-cli/opt/bin/librepcb-cli" "./build/appimage-cli/opt/bin/librepcb"
cp "./build/appimage-cli/opt/share/icons/hicolor/scalable/apps/org.librepcb.LibrePCB.svg" \
"./build/appimage-cli/org.librepcb.LibrePCB.svg"
linuxdeployqt "./build/appimage-cli/opt/share/applications/org.librepcb.LibrePCB.desktop" -bundle-non-qt-libs -appimage
mv ./LibrePCB-*-x86_64.AppImage ./artifacts/nightly_builds/librepcb-cli-nightly-linux-x86_64.AppImage

# Build LibrePCB AppImage
linuxdeployqt "./build/install/opt/share/applications/org.librepcb.LibrePCB.desktop" -bundle-non-qt-libs -appimage
cp -r "./build/install" "./build/appimage"
cp "./build/appimage/opt/share/icons/hicolor/scalable/apps/org.librepcb.LibrePCB.svg" "./build/appimage/org.librepcb.LibrePCB.svg"
linuxdeployqt "./build/appimage/opt/share/applications/org.librepcb.LibrePCB.desktop" -bundle-non-qt-libs -appimage
cp ./LibrePCB-*-x86_64.AppImage ./artifacts/nightly_builds/librepcb-nightly-linux-x86_64.AppImage
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

# set shell settings (see https://sipb.mit.edu/doc/safe-shell/)
set -euv -o pipefail

# run linuxdeployqt to bundle Qt libs
linuxdeployqt "./build/install/opt/bin/librepcb-cli" -bundle-non-qt-libs -always-overwrite
linuxdeployqt "./build/install/opt/bin/librepcb" -bundle-non-qt-libs -always-overwrite

# copy to artifacts
cp -r "./build/install/opt" "./artifacts/nightly_builds/librepcb-nightly-linux-x86_64"

0 comments on commit 38812d3

Please sign in to comment.
You can’t perform that action at this time.