Commit 46e523d3 authored by ab0027's avatar ab0027 💬
Browse files

Add NXSoftwareCenter build

parent ec99a032
Pipeline #3028 canceled with stages
in 15 minutes and 42 seconds
......@@ -94,7 +94,7 @@ builds-amd64:
# Stage builds-arm
###
builds-arm64:
image: mauikit/ubuntu-20.04-arm64
image: mauikit/ubuntu-20.04-arm64:04022021-1
stage: builds-arm
script:
- rm -rf ./build/
......
......@@ -21,7 +21,7 @@ function git_clone_or_update {
_branch=$([ -z $3 ] && echo "master" || echo $3)
if [ ! -d "$SOURCES_DIR" ]; then
echo "Cloning $SOURCES_URL in $SOURCES_DIR"
git clone "$SOURCES_URL" "$SOURCES_DIR" --depth=1 -b $_branch
git clone --recurse-submodules "$SOURCES_URL" "$SOURCES_DIR" --depth=1 -b $_branch
else
echo "Updating $SOURCES_DIR"
pushd "$SOURCES_DIR"
......
version: 1
AppDir:
path: ./AppDir
app_info:
id: org.nxos.softwarecenter
name: org.nxos.softwarecenter
icon: nx-software-center
version: !ENV ${APP_VERSION}
exec: usr/bin/nx-software-center
exec_args: $@
runtime:
generator: wrapper
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"
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
# BASIC QT DEPENDENCIES
- libqt5svg5
- libqt5sql5-sqlite
- qt5-image-formats-plugins
- qtwayland5
# QT QUICK DEPENDENCIES
- qml-module-qtquick-controls
- 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
# KF5 DEPENDENCIES
- libkf5i18n5
- libkf5notifications5
- libkf5configcore5
- libkf5configgui5
- libkf5configwidgets5
- libkf5kiofilewidgets5
- libkf5syntaxhighlighting5
- libkdecorations2-5v5
- libkdecorations2private7
- libkf5plasma5
- libkf5plasmaquick5
# Other
- libtag1v5
- librsvg2-common
- libgdk-pixbuf2.0-0
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 'nx-software-center-${BUILD_TYPE}-${APP_VERSION}-git+${COMMIT_ID}-${TARGET_ARCH}.AppImage'
version: 1
AppDir:
path: ./AppDir
app_info:
id: org.nxos.softwarecenter
name: org.nxos.softwarecenter
icon: nx-software-center
version: !ENV ${APP_VERSION}
exec: usr/bin/nx-software-center
exec_args: $@
runtime:
generator: wrapper
env:
PATH: '${APPDIR}/usr/bin:${APPDIR}/bin:${APPDIR}/usr/lib/aarch64-linux-gnu/libexec/kf5:${PATH}'
APPDIR_LIBRARY_PATH: "$APPDIR/lib/aarch64-linux-gnu:$APPDIR/usr/lib:$APPDIR/usr/lib/aarch64-linux-gnu:$APPDIR/usr/lib/aarch64-linux-gnu/pulseaudio"
QT_QUICK_CONTROLS_STYLE: 'maui-style'
apt:
arch: arm64
sources:
- sourceline: 'deb [arch=arm64] http://archive.neon.kde.org/dev/unstable focal main'
key_url: 'http://archive.neon.kde.org/public.key'
- sourceline: 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal main resticted multiverse universe'
- sourceline: 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-updates main resticted multiverse universe'
- sourceline: 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-security main restricted multiverse universe'
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
- sourceline: 'deb [arch=arm64] http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu xenial main'
key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x165d673674a995b3e64bf0cf4f191a5a8844c542'
include:
# CORE DEPENDENCIES
- gettext
# BASIC QT DEPENDENCIES
- libqt5svg5
- libqt5sql5-sqlite
- qt5-image-formats-plugins
- qtwayland5
# QT QUICK DEPENDENCIES
- qml-module-qtquick-controls
- 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
# KF5 DEPENDENCIES
- libkf5i18n5
- libkf5kirigami2-5
- qml-module-org-kde-kirigami2
- libkf5notifications5
- libkf5configcore5
- libkf5configgui5
- libkf5configwidgets5
- libkf5kiofilewidgets5
- libkf5syntaxhighlighting5
- libkdecorations2-5v5
- libkdecorations2private7
- libkf5plasma5
- libkf5plasmaquick5
# Other
- libtag1v5
- librsvg2-common
- libgdk-pixbuf2.0-0
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/aarch64-linux-gnu/perl*
- usr/share/locale
AppImage:
arch: "aarch64"
update-information: None
sign-key: None
file_name: !ENV 'nx-software-center-${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
BUILD_DIR=$PWD
APPDIR="$BUILD_DIR/AppDir"
git_clone_or_update "$SCRIPTPATH/../build/nx-sc-git" 'https://github.com/Nitrux/nx-software-center' 'dev-mauikit-ui'
build_cmake_project 'nx-sc-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 qml-module-org-kde-kirigami qml-module-org-kde-kirigami2 nx-sc-git
export COMMIT_ID=$(cd $SCRIPTPATH/../build/nx-sc-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