Commit 5c545355 authored by probal31's avatar probal31
Browse files

Changes:

- Added appimage recipe for bonsai
- Added bonsai build script
- Configured gitlab ci to use updated mauikit image
- Configured ci to build bonsai appimage
parent c527de25
Pipeline #6001 failed with stages
in 11 minutes and 18 seconds
......@@ -116,7 +116,7 @@ cache:
# Build mauikit for amd64
build-mauikit-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
image: mauikit/ubuntu-20.04-amd64:20220525
stage: build-mauikit
before_script:
- *init-build-script
......@@ -162,7 +162,7 @@ build-mauikit-armhf:
# Build maui apps for amd64
build-index-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
image: mauikit/ubuntu-20.04-amd64:20220525
stage: build-mauiapp
artifacts:
paths:
......@@ -178,7 +178,7 @@ build-index-amd64:
- ./index/build.sh
build-nota-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
image: mauikit/ubuntu-20.04-amd64:20220525
stage: build-mauiapp
artifacts:
paths:
......@@ -194,7 +194,7 @@ build-nota-amd64:
- ./nota/build.sh
build-buho-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
image: mauikit/ubuntu-20.04-amd64:20220525
stage: build-mauiapp
artifacts:
paths:
......@@ -210,7 +210,7 @@ build-buho-amd64:
- ./buho/build.sh
build-vvave-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
image: mauikit/ubuntu-20.04-amd64:20220525
stage: build-mauiapp
artifacts:
paths:
......@@ -226,7 +226,7 @@ build-vvave-amd64:
- ./vvave/build.sh
build-pix-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
image: mauikit/ubuntu-20.04-amd64:20220525
stage: build-mauiapp
artifacts:
paths:
......@@ -242,7 +242,7 @@ build-pix-amd64:
- ./pix/build.sh
build-clip-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
image: mauikit/ubuntu-20.04-amd64:20220525
stage: build-mauiapp
artifacts:
paths:
......@@ -258,7 +258,7 @@ build-clip-amd64:
- ./clip/build.sh
build-shelf-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
image: mauikit/ubuntu-20.04-amd64:20220525
stage: build-mauiapp
artifacts:
paths:
......@@ -274,7 +274,7 @@ build-shelf-amd64:
- ./shelf/build.sh
build-communicator-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
image: mauikit/ubuntu-20.04-amd64:20220525
stage: build-mauiapp
artifacts:
paths:
......@@ -290,7 +290,7 @@ build-communicator-amd64:
- ./communicator/build.sh
build-station-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
image: mauikit/ubuntu-20.04-amd64:20220525
stage: build-mauiapp
artifacts:
paths:
......@@ -305,6 +305,22 @@ build-station-amd64:
- export BRANCH=$([ -z $BRANCH_STATION ] && echo "master" || echo $BRANCH_STATION)
- ./station/build.sh
build-bonsai-amd64:
image: mauikit/ubuntu-20.04-amd64:20220525
stage: build-mauiapp
artifacts:
paths:
- ./bonsai*.AppImage
expire_in: 1 day
before_script:
- *build-mauiapps-init-script
needs: ["build-mauikit-amd64"]
dependencies: []
script:
- export TARGET_ARCH="amd64"
- export BRANCH=$([ -z $BRANCH_BONSAI ] && echo "master" || echo $BRANCH_BONSAI)
- ./bonsai/build.sh
# Build maui apps for arm64
build-index-arm64:
......
version: 1
AppDir:
path: ./AppDir
app_info:
id: org.mauikit.bonsai
name: bonsai
icon: bonsai
version: !ENV ${APP_VERSION}
exec: usr/bin/bonsai
exec_args: $@
runtime:
env:
PATH: '${APPDIR}/usr/bin:${APPDIR}/bin:${APPDIR}/usr/lib/x86_64-linux-gnu/libexec/kf5:${PATH}'
APPDIR_LIBRARY_PATH: "$APPDIR/lib/x86_64-linux-gnu:$APPDIR/usr/lib/x86_64-linux-gnu:$APPDIR/usr/lib/x86_64-linux-gnu/pulseaudio:$APPDIR/usr/lib/x86_64-linux-gnu/qt5/qml/org/mauikit/filebrowsing"
QT_QUICK_CONTROLS_STYLE: 'maui-style'
apt:
arch: amd64
sources:
- sourceline: 'deb [arch=amd64] http://archive.neon.kde.org/user focal main'
key_url: 'http://archive.neon.kde.org/public.key'
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse'
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse'
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse'
include:
# CORE DEPENDENCIES
- gettext
# QT QUICK DEPENDENCIES
- qml-module-qtquick-controls2
- qml-module-qtquick-dialogs
- qml-module-qtquick-layouts
- qml-module-qtquick-shapes
- qml-module-qtquick2
- qml-module-qtqml-models2
- qml-module-qtqml-statemachine
- qml-module-qtqml-workerscript2
- qml-module-qt-labs-platform
- qml-module-qt-labs-settings
- qml-module-org-kde-kirigami2
# KF5 DEPENDENCIES
- libkf5i18n5
- libkf5notifications5
- libkf5configcore5
- libkf5configgui5
- libkf5configwidgets5
- libkf5kiofilewidgets5
- libkf5syntaxhighlighting5
- libkf5plasma5
- libkf5plasmaquick5
- kio
# - kio-extras
exclude:
- "*dbgsym*"
#- gcc-8
#- libgcc
#- g++
#- gnupg
#- gpg
#- gpgagent
- sound-theme-freedesktop
- systemd
- systemd-*
- perl
- perl-*
- gnupg
files:
exclude:
- usr/include
- usr/share/man
- usr/share/doc
- usr/share/doc/*/README.*
- usr/share/doc/*/changelog.*
- usr/share/doc/*/NEWS.*
- usr/share/doc/*/TODO.*
- lib/systemd
- etc/systemd
#- usr/share/perl*
- usr/bin/systemd*
- usr/bin/dpkg*
#- usr/bin/python*
#- usr/bin/perl*
- usr/bin/*-linux-gnu-*
#- usr/lib/python*
#- usr/lib/x86_64-linux-gnu/perl*
- usr/share/locale
AppImage:
arch: "x86_64"
update-information: None
sign-key: None
file_name: !ENV 'bonsai-${BUILD_TYPE}-${APP_VERSION}-git+${COMMIT_ID}-${TARGET_ARCH}.AppImage'
#!/usr/bin/env bash
set -ex
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
source $SCRIPTPATH/../functions.sh
check_if_env_set
BUILD_DIR=$PWD
APPDIR="$BUILD_DIR/AppDir"
# TODO: Debug the actual cause and remove this workaround
# Remove nota package as it maui-station-git package is not getting
# installed with checkinstall due to an error saying :
# `dpkg: error processing archive /builds/ab0027/maui-builds/build/maui-station-git-build/maui-station-git_1.0.0-1_amd64.deb (--install):`
# `trying to overwrite '/usr/share/icons/hicolor/icon-theme.cache', which is also in package nota-git 1.0.0-1`
# This icon-theme.cache file is not at all getting included in the checkinstall package ¯\_(ツ)_/¯
$sudo dpkg -r nota-git || true
### Use patched qmltermwidget untill PR #31 gets merged
# git_clone_or_update "$SCRIPTPATH/../build/qmltermwidget-git" 'https://github.com/Swordfish90/qmltermwidget.git'
# git_clone_or_update "$SCRIPTPATH/../build/qmltermwidget-git" 'https://github.com/bvbfan/qmltermwidget.git'
# build_qmake_project 'qmltermwidget-git' $SCRIPTPATH/../build
git_clone_or_update "$SCRIPTPATH/../build/bonsai-git" 'https://invent.kde.org/maui/bonsai.git' $BRANCH
build_cmake_project 'bonsai-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# deploy Luv icon theme as fallback
git_clone_or_update "$SCRIPTPATH/../build/luv-git" 'https://github.com/Nitrux/luv-icon-theme.git'
mkdir -p "$APPDIR"/usr/share/icons/hicolor/
cp -vrf $SCRIPTPATH/../build/luv-git/Luv/* "$APPDIR"/usr/share/icons/hicolor/
rm "$APPDIR"/usr/share/icons/hicolor/icon-theme.cache
# workaround plasma-mobile asuming that breeze is the fallback icon theme
ln -s ./hicolor "$APPDIR"/usr/share/icons/breeze
deploy_deb_packages "$APPDIR" mauikit-git mauikit-filebrowsing-git bonsai-git
export COMMIT_ID=$(cd $SCRIPTPATH/../build/bonsai-git && git rev-parse --short HEAD)
appimage-builder --log error --skip-tests --recipe $SCRIPTPATH/appimage-${TARGET_ARCH}.yml
$sudo rm -rf ./AppDir ./appimage-builder-cache
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