Commit f6ed72d3 authored by Tim Shirley's avatar Tim Shirley 🖥
Browse files

Build AppImage from source

parent e39ad1c8
Pipeline #366 passed with stages
in 4 minutes and 29 seconds
......@@ -9,6 +9,7 @@ build qDaisy:
stage: build
before_script:
# install dependencies
- apt-get update
- apt-get install -yqq libxml2-dev libvlc-dev unzip
script:
# install libduck from latest package job
......@@ -24,6 +25,7 @@ package-qDaisy:
stage: package
before_script:
# install dependencies
- apt-get update
- apt-get install -yqq libxml2-dev libvlc-dev unzip
script:
# install libduck from latest package job
......@@ -41,11 +43,20 @@ package-qDaisy:
appimage-qDaisy:
stage: package
image: appimagecrafters/appimage-builder
before_script:
# install dependencies
- apt-get update
- apt-get install -yqq curl libxml2-dev libvlc-dev unzip qt5-default qtbase5-dev qttools5-dev-tools
- apt-get install -yqq curl libxml2-dev libvlc-dev unzip wget
# get linuxdeploy and Qt plugin
- 'wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage'
- 'wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage'
# make AppImages executable
- chmod +x linuxdeploy-x86_64.AppImage linuxdeploy-plugin-qt-x86_64.AppImage
# extract and rename AppImages (FUSE not available here)
- ./linuxdeploy-x86_64.AppImage --appimage-extract
- mv squashfs-root linuxdeploy.AppDir
- ./linuxdeploy-plugin-qt-x86_64.AppImage --appimage-extract
- mv squashfs-root linuxdeploy-plugin-qt.AppDir
script:
# install libduck from latest package job
- 'curl --location --output artifacts.zip --header "JOB-TOKEN: $CI_JOB_TOKEN" "https://$GIT_HOST/api/v4/projects/$PROJECT_ID/jobs/artifacts/main/download?job=package-libduck"'
......@@ -56,7 +67,15 @@ appimage-qDaisy:
- ./configure --prefix=/usr
- make install DESTDIR=../AppDir
# create AppImage
- appimage-builder --skip-test
- cd linuxdeploy.AppDir
- ./AppRun --appdir ../AppDir
# run linuxdeploy Qt plugin
- cd ../linuxdeploy-plugin-qt.AppDir
- ./AppRun --appdir ../AppDir
# create AppImage
- cd ../linuxdeploy.AppDir
- ./AppRun --appdir ../AppDir --output appimage
- mv qDaisy*.AppImage ../
artifacts:
paths:
- '*.AppImage*'
- 'qDaisy*.AppImage'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment