Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Create archive for deployment on Linux #571

Merged
merged 1 commit into from Nov 11, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -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"
This conversation was marked as resolved by ubruhin

This comment has been minimized.

Copy link
@dbrgn

dbrgn Nov 6, 2019

Member

How are these bundled into a .tar.gz? Is that handled by Azure somehow?

This comment has been minimized.

Copy link
@ubruhin

ubruhin Nov 6, 2019

Author Member

That's done on our server when the uploaded artifacts are processed ;)

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.