Commit 15fafe5c authored by ab0027's avatar ab0027 💬

Test APK builds with cache

parent cf7c0be0
Pipeline #2203 failed with stages
in 3 minutes and 48 seconds
......@@ -17,124 +17,125 @@ before_script:
after_script:
- du -h *.AppImage || true
- du -h *.deb || true
- du -h *.apk || true
###
# Stage builds-amd64
###
build-mauikit-amd64:
image: mauikit/ubuntu-18.04-amd64
stage: builds-amd64
script:
- export BRANCH=$([ -z $BRANCH_MAUIKIT ] && echo "master" || echo $BRANCH_MAUIKIT)
- export TARGET_ARCH="amd64"
- ./mauikit/build.sh
artifacts:
paths:
- "mauikit*amd64*.deb"
cache:
key: cache-builds-amd64
# ###
# # Stage builds-amd64
# ###
# build-mauikit-amd64:
# image: mauikit/ubuntu-18.04-amd64
# stage: builds-amd64
# script:
# - export BRANCH=$([ -z $BRANCH_MAUIKIT ] && echo "master" || echo $BRANCH_MAUIKIT)
# - export TARGET_ARCH="amd64"
# - ./mauikit/build.sh
# artifacts:
# paths:
# - "mauikit*amd64*.deb"
# cache:
# key: cache-builds-amd64
build-index-amd64:
image: mauikit/ubuntu-18.04-amd64
stage: builds-amd64
script:
- export BRANCH=$([ -z $BRANCH_INDEX ] && echo "master" || echo $BRANCH_INDEX)
- export TARGET_ARCH="amd64"
- ./index/build.sh
# build-index-amd64:
# image: mauikit/ubuntu-18.04-amd64
# stage: builds-amd64
# script:
# - export BRANCH=$([ -z $BRANCH_INDEX ] && echo "master" || echo $BRANCH_INDEX)
# - export TARGET_ARCH="amd64"
# - ./index/build.sh
artifacts:
paths:
- "index*amd64*.AppImage"
- "index*amd64*.deb"
cache:
key: cache-builds-amd64
# artifacts:
# paths:
# - "index*amd64*.AppImage"
# - "index*amd64*.deb"
# cache:
# key: cache-builds-amd64
build-nota-amd64:
image: mauikit/ubuntu-18.04-amd64
stage: builds-amd64
script:
- export BRANCH=$([ -z $BRANCH_NOTA ] && echo "master" || echo $BRANCH_NOTA)
- export TARGET_ARCH="amd64"
- ./nota/build.sh
artifacts:
paths:
- "nota*amd64*.AppImage"
- "nota*amd64*.deb"
cache:
key: cache-builds-amd64
# build-nota-amd64:
# image: mauikit/ubuntu-18.04-amd64
# stage: builds-amd64
# script:
# - export BRANCH=$([ -z $BRANCH_NOTA ] && echo "master" || echo $BRANCH_NOTA)
# - export TARGET_ARCH="amd64"
# - ./nota/build.sh
# artifacts:
# paths:
# - "nota*amd64*.AppImage"
# - "nota*amd64*.deb"
# cache:
# key: cache-builds-amd64
build-buho-amd64:
image: mauikit/ubuntu-18.04-amd64
stage: builds-amd64
script:
- export BRANCH=$([ -z $BRANCH_BUHO ] && echo "master" || echo $BRANCH_BUHO)
- export TARGET_ARCH="amd64"
- ./buho/build.sh
artifacts:
paths:
- "buho*amd64*.AppImage"
- "buho*amd64*.deb"
cache:
key: cache-builds-amd64
# build-buho-amd64:
# image: mauikit/ubuntu-18.04-amd64
# stage: builds-amd64
# script:
# - export BRANCH=$([ -z $BRANCH_BUHO ] && echo "master" || echo $BRANCH_BUHO)
# - export TARGET_ARCH="amd64"
# - ./buho/build.sh
# artifacts:
# paths:
# - "buho*amd64*.AppImage"
# - "buho*amd64*.deb"
# cache:
# key: cache-builds-amd64
build-vvave-amd64:
image: mauikit/ubuntu-18.04-amd64
stage: builds-amd64
script:
- export BRANCH=$([ -z $BRANCH_VVAVE ] && echo "master" || echo $BRANCH_VVAVE)
- export TARGET_ARCH="amd64"
- ./vvave/build.sh
artifacts:
paths:
- "vvave*amd64*.AppImage"
- "vvave*amd64*.deb"
cache:
key: cache-builds-amd64
# build-vvave-amd64:
# image: mauikit/ubuntu-18.04-amd64
# stage: builds-amd64
# script:
# - export BRANCH=$([ -z $BRANCH_VVAVE ] && echo "master" || echo $BRANCH_VVAVE)
# - export TARGET_ARCH="amd64"
# - ./vvave/build.sh
# artifacts:
# paths:
# - "vvave*amd64*.AppImage"
# - "vvave*amd64*.deb"
# cache:
# key: cache-builds-amd64
build-pix-amd64:
image: mauikit/ubuntu-18.04-amd64
stage: builds-amd64
script:
- export BRANCH=$([ -z $BRANCH_PIX ] && echo "master" || echo $BRANCH_PIX)
- export TARGET_ARCH="amd64"
- ./pix/build.sh
artifacts:
paths:
- "pix*amd64*.AppImage"
- "pix*amd64*.deb"
cache:
key: cache-builds-amd64
# build-pix-amd64:
# image: mauikit/ubuntu-18.04-amd64
# stage: builds-amd64
# script:
# - export BRANCH=$([ -z $BRANCH_PIX ] && echo "master" || echo $BRANCH_PIX)
# - export TARGET_ARCH="amd64"
# - ./pix/build.sh
# artifacts:
# paths:
# - "pix*amd64*.AppImage"
# - "pix*amd64*.deb"
# cache:
# key: cache-builds-amd64
build-station-amd64:
image: mauikit/ubuntu-18.04-amd64
stage: builds-amd64
script:
- export BRANCH=$([ -z $BRANCH_STATION ] && echo "master" || echo $BRANCH_STATION)
- export TARGET_ARCH="amd64"
- ./station/build.sh
artifacts:
paths:
- "station*amd64*.AppImage"
- "station*amd64*.deb"
cache:
key: cache-builds-amd64
# build-station-amd64:
# image: mauikit/ubuntu-18.04-amd64
# stage: builds-amd64
# script:
# - export BRANCH=$([ -z $BRANCH_STATION ] && echo "master" || echo $BRANCH_STATION)
# - export TARGET_ARCH="amd64"
# - ./station/build.sh
# artifacts:
# paths:
# - "station*amd64*.AppImage"
# - "station*amd64*.deb"
# cache:
# key: cache-builds-amd64
build-contacts-amd64:
image: mauikit/ubuntu-18.04-amd64
stage: builds-amd64
script:
- export BRANCH=$([ -z $BRANCH_CONTACTS ] && echo "master" || echo $BRANCH_CONTACTS)
- export TARGET_ARCH="amd64"
- ./contacts/build.sh
artifacts:
paths:
- "contacts*amd64*.AppImage"
- "contacts*amd64*.deb"
cache:
key: cache-builds-amd64
###
# END Stage builds-amd64
###
# build-contacts-amd64:
# image: mauikit/ubuntu-18.04-amd64
# stage: builds-amd64
# script:
# - export BRANCH=$([ -z $BRANCH_CONTACTS ] && echo "master" || echo $BRANCH_CONTACTS)
# - export TARGET_ARCH="amd64"
# - ./contacts/build.sh
# artifacts:
# paths:
# - "contacts*amd64*.AppImage"
# - "contacts*amd64*.deb"
# cache:
# key: cache-builds-amd64
# ###
# # END Stage builds-amd64
# ###
###
......@@ -153,6 +154,10 @@ build-mauikit-arm64:
- "mauikit*arm64*.deb"
cache:
key: cache-builds-arm
paths:
- /Qt
- /Android
- ./build
build-index-arm64:
image: mauikit/ubuntu-18.04-arm64
......@@ -168,6 +173,10 @@ build-index-arm64:
- "index*arm64*.deb"
cache:
key: cache-builds-arm
paths:
- /Qt
- /Android
- ./build
build-nota-arm64:
image: mauikit/ubuntu-18.04-arm64
......@@ -183,6 +192,10 @@ build-nota-arm64:
- "nota*arm64*.deb"
cache:
key: cache-builds-arm
paths:
- /Qt
- /Android
- ./build
build-buho-arm64:
image: mauikit/ubuntu-18.04-arm64
......@@ -198,6 +211,10 @@ build-buho-arm64:
- "buho*arm64*.deb"
cache:
key: cache-builds-arm
paths:
- /Qt
- /Android
- ./build
build-vvave-arm64:
image: mauikit/ubuntu-18.04-arm64
......@@ -213,6 +230,10 @@ build-vvave-arm64:
- "vvave*arm64*.deb"
cache:
key: cache-builds-arm
paths:
- /Qt
- /Android
- ./build
build-pix-arm64:
image: mauikit/ubuntu-18.04-arm64
......@@ -228,6 +249,10 @@ build-pix-arm64:
- "pix*arm64*.deb"
cache:
key: cache-builds-arm
paths:
- /Qt
- /Android
- ./build
build-station-arm64:
image: mauikit/ubuntu-18.04-arm64
......@@ -243,6 +268,10 @@ build-station-arm64:
- "station*arm64*.deb"
cache:
key: cache-builds-arm
paths:
- /Qt
- /Android
- ./build
build-contacts-arm64:
image: mauikit/ubuntu-18.04-arm64
......@@ -258,6 +287,10 @@ build-contacts-arm64:
- "contacts*arm64*.deb"
cache:
key: cache-builds-arm
paths:
- /Qt
- /Android
- ./build
###
# END Stage builds-arm
###
......
......@@ -18,39 +18,40 @@ $sudo curl http://archive.neon.kde.org/public.key | apt-key add -
$sudo apt-get update
$sudo apt-get install -y libqt5websockets5-dev qtmultimedia5-dev libtag1-dev libqt5sql5-sqlite libqt5multimedia5-plugins proot cmake qtdeclarative5-dev libqt5svg5-dev qtbase5-dev qtquickcontrols2-5-dev libqt5webview5-dev qtwebengine5-dev libkf5i18n-dev libkf5notifications-dev libkf5config-dev libkf5service-dev libkf5kio-dev libkf5configwidgets-dev gettext libkf5syntaxhighlighting-dev qml-module-qtgraphicaleffects qtwebengine5-dev libqt5webchannel5-dev devscripts equivs libkf5configwidgets-dev libkf5auth-dev libkf5coreaddons-dev libkf5bookmarks-dev libkf5widgetsaddons-dev libkf5completion-dev libkf5codecs-dev libkf5kio-dev libgdk-pixbuf2.0-dev libkdecorations2-dev libkf5declarative-dev libkf5plasma-dev
$sudo pip3 install --upgrade git+https://www.opencode.net/azubieta/appimagecraft.git
# $sudo pip3 install --upgrade git+https://www.opencode.net/azubieta/appimagecraft.git
# remove preinstalled packages avoid conflicts
$sudo dpkg -r mauikit || true
$sudo dpkg -r extra-cmake-modules || true
# # remove preinstalled packages avoid conflicts
# $sudo dpkg -r mauikit || true
# $sudo dpkg -r extra-cmake-modules || true
git_clone_or_update "$SCRIPTPATH/../build/extra-cmake-modules-git" 'https://anongit.kde.org/extra-cmake-modules.git'
build_cmake_project 'extra-cmake-modules-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/extra-cmake-modules-git" 'https://anongit.kde.org/extra-cmake-modules.git'
# build_cmake_project 'extra-cmake-modules-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/mauikit-git" 'https://invent.kde.org/kde/mauikit.git'
build_cmake_project 'mauikit-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/mauikit-git" 'https://invent.kde.org/kde/mauikit.git'
# build_cmake_project 'mauikit-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/kirigami-git" 'https://anongit.kde.org/kirigami.git'
build_cmake_project 'kirigami-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/kirigami-git" 'https://anongit.kde.org/kirigami.git'
# build_cmake_project 'kirigami-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/buho-git" 'https://invent.kde.org/kde/buho.git' $BRANCH
build_cmake_project 'buho-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/buho-git" 'https://invent.kde.org/kde/buho.git' $BRANCH
# build_cmake_project 'buho-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
# # 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
# # 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 kirigami-git buho-git
# deploy_deb_packages "$APPDIR" mauikit-git kirigami-git buho-git
export COMMIT_ID=$(cd $SCRIPTPATH/../build/buho-git && git rev-parse --short HEAD)
# export COMMIT_ID=$(cd $SCRIPTPATH/../build/buho-git && git rev-parse --short HEAD)
appimage-builder --log error --skip-tests --recipe $SCRIPTPATH/appimage-${TARGET_ARCH}.yml
$SCRIPTPATH/../build-deb.sh 'buho' 'https://invent.kde.org/kde/buho.git' $EXTRA_CMAKE_ARGS
# appimage-builder --log error --skip-tests --recipe $SCRIPTPATH/appimage-${TARGET_ARCH}.yml
# $SCRIPTPATH/../build-deb.sh 'buho' 'https://invent.kde.org/kde/buho.git' $EXTRA_CMAKE_ARGS
$SCRIPTPATH/../build-apk.sh 'buho' 'https://invent.kde.org/kde/buho.git'
$sudo rm -rf ./AppDir ./appimage-builder-cache
#!/bin/bash
set -ex
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
PROJECT_NAME=$1
GIT_PATH=$2
BUILDDIR=$SCRIPTPATH/build/build-apk-$PROJECT_NAME
echo "\n\n### Building APK"
export PATH=$PATH:/Android/cmdtools/tools/bin/:/Android/cmdtools/tools/:/opt/Qt/5.13.2/android/bin/
export ANDROID_HOME=/Android/
export ANDROID_SDK_ROOT=/Android/
export ANDROID_NDK_ROOT=/Android/ndk/19.2.5345600/
apt-get update && apt-get install -y --no-install-recommends \
unzip \
openjdk-8-jdk \
libdbus-1-3 \
xvfb \
libfontconfig \
python3 \
python3-pip \
libxrender1 \
libxkbcommon-x11-0
echo "\n\n### Checking for cached files"
ls /Qt || true
ls /Android || true
echo "###\n\n"
if [ ! -d /Qt ]; then
pip3 install --upgrade git+https://github.com/hasboeuf/cuteci.git
cuteci --installer http://download.qt.io/official_releases/qt/5.13/5.13.2/qt-opensource-linux-x64-5.13.2.run install --destdir /Qt --packages qt.qt5.5132.android
fi
if [ ! -d /Android ]; then
wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip -O android-tools.zip
unzip android-tools.zip
mkdir -p /Android/cmdtools
mv tools/ Android/cmdtools/
rm android-tools.zip
alias sdkmanager="sdkmanager --sdk_root=/Android"
(sleep 5; while true; do sleep 1; printf 'y\r\n'; done) | sdkmanager "build-tools;29.0.3" "ndk;19.2.5345600" "platform-tools" "platforms;android-29"
fi
git clone $GIT_PATH $BUILDDIR -b $BRANCH --depth 1
COMMIT_ID=$(cd $BUILDDIR && git rev-parse --short HEAD)
(
cd $BUILDDIR
mkdir 3rdparty
(
cd 3rdparty
git clone https://invent.kde.org/maui/mauikit.git --depth 1
git clone https://invent.kde.org/frameworks/kirigami.git --depth 1
)
mkdir build
cd build
/Qt/5.13.2/android_armv7/bin/qmake ANDROID_ABIS="armeabi-v7a" CONFIG+=qtquickcompiler -spec android-clang ../*.pro
/Android/ndk/19.2.5345600/prebuilt/linux-x86_64/bin/make -j8 install INSTALL_ROOT=android-build
[ -d ../android_files ] && cp -r ../android_files/* ./android-build/
/Qt/5.13.2/android_armv7/bin/androiddeployqt --verbose --input $PWD/*.json --output $PWD/android-build --android-platform android-29 --gradle | tee $PROJECT_NAME.log 2>&1
mv $PWD/android-build/build/outputs/apk/debug/*.apk ../../${PROJECT_NAME}-${BUILD_TYPE}-${APP_VERSION}-git+${COMMIT_ID}-armv7-debug.deb
)
......@@ -18,39 +18,40 @@ $sudo curl http://archive.neon.kde.org/public.key | apt-key add -
$sudo apt-get update
$sudo apt-get install -y libqt5websockets5-dev qtmultimedia5-dev libtag1-dev libqt5sql5-sqlite libqt5multimedia5-plugins proot cmake qtdeclarative5-dev libqt5svg5-dev qtbase5-dev qtquickcontrols2-5-dev libqt5webview5-dev qtwebengine5-dev libkf5i18n-dev libkf5notifications-dev libkf5config-dev libkf5service-dev libkf5kio-dev libkf5configwidgets-dev gettext libkf5syntaxhighlighting-dev qml-module-qtgraphicaleffects qtwebengine5-dev libqt5webchannel5-dev devscripts equivs libkf5configwidgets-dev libkf5auth-dev libkf5coreaddons-dev libkf5bookmarks-dev libkf5widgetsaddons-dev libkf5completion-dev libkf5codecs-dev libkf5kio-dev libgdk-pixbuf2.0-dev libkdecorations2-dev libkf5declarative-dev libkf5plasma-dev
$sudo pip3 install --upgrade git+https://www.opencode.net/azubieta/appimagecraft.git
# $sudo pip3 install --upgrade git+https://www.opencode.net/azubieta/appimagecraft.git
# remove preinstalled packages avoid conflicts
$sudo dpkg -r mauikit || true
$sudo dpkg -r extra-cmake-modules || true
# # remove preinstalled packages avoid conflicts
# $sudo dpkg -r mauikit || true
# $sudo dpkg -r extra-cmake-modules || true
git_clone_or_update "$SCRIPTPATH/../build/extra-cmake-modules-git" 'https://anongit.kde.org/extra-cmake-modules.git'
build_cmake_project 'extra-cmake-modules-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/extra-cmake-modules-git" 'https://anongit.kde.org/extra-cmake-modules.git'
# build_cmake_project 'extra-cmake-modules-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/mauikit-git" 'https://invent.kde.org/kde/mauikit.git'
build_cmake_project 'mauikit-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/mauikit-git" 'https://invent.kde.org/kde/mauikit.git'
# build_cmake_project 'mauikit-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/kirigami-git" 'https://anongit.kde.org/kirigami.git'
build_cmake_project 'kirigami-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/kirigami-git" 'https://anongit.kde.org/kirigami.git'
# build_cmake_project 'kirigami-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/maui-dialer-git" 'https://invent.kde.org/kde/maui-dialer.git' $BRANCH
build_cmake_project 'maui-dialer-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/maui-dialer-git" 'https://invent.kde.org/kde/maui-dialer.git' $BRANCH
# build_cmake_project 'maui-dialer-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
# # 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
# # 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 kirigami-git maui-dialer-git
# deploy_deb_packages "$APPDIR" mauikit-git kirigami-git maui-dialer-git
export COMMIT_ID=$(cd $SCRIPTPATH/../build//maui-dialer-git && git rev-parse --short HEAD)
# export COMMIT_ID=$(cd $SCRIPTPATH/../build//maui-dialer-git && git rev-parse --short HEAD)
appimage-builder --log error --skip-tests --recipe $SCRIPTPATH/appimage-${TARGET_ARCH}.yml
$SCRIPTPATH/../build-deb.sh 'contacts' 'https://invent.kde.org/kde/maui-dialer.git' $EXTRA_CMAKE_ARGS
# appimage-builder --log error --skip-tests --recipe $SCRIPTPATH/appimage-${TARGET_ARCH}.yml
# $SCRIPTPATH/../build-deb.sh 'contacts' 'https://invent.kde.org/kde/maui-dialer.git' $EXTRA_CMAKE_ARGS
$SCRIPTPATH/../build-apk.sh 'contacts' 'https://invent.kde.org/kde/maui-dialer.git'
$sudo rm -rf ./AppDir ./appimage-builder-cache
......@@ -18,46 +18,47 @@ $sudo apt-get update
$sudo apt-get upgrade -y
$sudo apt-get install -y libqt5websockets5-dev qtmultimedia5-dev libtag1-dev libqt5sql5-sqlite libqt5multimedia5-plugins proot cmake qtdeclarative5-dev libqt5svg5-dev qtbase5-dev qtquickcontrols2-5-dev qtwebengine5-dev libkf5i18n-dev libkf5notifications-dev libkf5config-dev libkf5service-dev libkf5kio-dev libkf5configwidgets-dev gettext libkf5syntaxhighlighting-dev qml-module-qtgraphicaleffects qtwebengine5-dev libqt5webchannel5-dev devscripts equivs libkf5configwidgets-dev libkf5auth-dev libkf5coreaddons-dev libkf5bookmarks-dev libkf5widgetsaddons-dev libkf5completion-dev libkf5codecs-dev libkf5kio-dev libkf5itemviews-dev libgdk-pixbuf2.0-dev libkdecorations2-dev libkf5declarative-dev libkf5plasma-dev
$sudo pip3 install --upgrade git+https://www.opencode.net/azubieta/appimagecraft.git
# $sudo pip3 install --upgrade git+https://www.opencode.net/azubieta/appimagecraft.git
# remove preinstalled packages avoid conflicts
$sudo dpkg -r extra-cmake-modules || true
$sudo dpkg -r mauikit || true
# # remove preinstalled packages avoid conflicts
# $sudo dpkg -r extra-cmake-modules || true
# $sudo dpkg -r mauikit || true
git_clone_or_update "$SCRIPTPATH/../build/extra-cmake-modules-git" 'https://anongit.kde.org/extra-cmake-modules.git'
build_cmake_project 'extra-cmake-modules-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/extra-cmake-modules-git" 'https://anongit.kde.org/extra-cmake-modules.git'
# build_cmake_project 'extra-cmake-modules-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/mauikit-git" 'https://invent.kde.org/kde/mauikit.git'
build_cmake_project 'mauikit-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/mauikit-git" 'https://invent.kde.org/kde/mauikit.git'
# build_cmake_project 'mauikit-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/kirigami-git" 'https://anongit.kde.org/kirigami.git'
build_cmake_project 'kirigami-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/kirigami-git" 'https://anongit.kde.org/kirigami.git'
# build_cmake_project 'kirigami-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/qmltermwidget-git" 'https://github.com/Swordfish90/qmltermwidget.git' 'v0.1.0'
build_qmake_project 'qmltermwidget-git' $SCRIPTPATH/../build
# git_clone_or_update "$SCRIPTPATH/../build/qmltermwidget-git" 'https://github.com/Swordfish90/qmltermwidget.git' 'v0.1.0'
# build_qmake_project 'qmltermwidget-git' $SCRIPTPATH/../build
git_clone_or_update "$SCRIPTPATH/../build/index-fm-git" 'https://invent.kde.org/kde/index-fm.git' $BRANCH
build_cmake_project 'index-fm-git' $SCRIPTPATH/../build -DEMBEDDED_TERMINAL=ON $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/index-fm-git" 'https://invent.kde.org/kde/index-fm.git' $BRANCH
# build_cmake_project 'index-fm-git' $SCRIPTPATH/../build -DEMBEDDED_TERMINAL=ON $EXTRA_CMAKE_ARGS
# build not working with Qt > 5.9
# git_clone_or_update 'qtubuntu-git' 'https://github.com/ubports/qtubuntu.git'
# build_cmake_project 'qtubuntu-git' $EXTRA_CMAKE_ARGS
# # build not working with Qt > 5.9
# # git_clone_or_update 'qtubuntu-git' 'https://github.com/ubports/qtubuntu.git'
# # build_cmake_project 'qtubuntu-git' $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/luv-git" 'https://github.com/Nitrux/luv-icon-theme.git'
# 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
# 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
# # workaround plasma-mobile asuming that breeze is the fallback icon theme
# ln -s ./hicolor "$APPDIR"/usr/share/icons/breeze
deploy_deb_packages "$APPDIR" kirigami-git mauikit-git index-fm-git qmltermwidget-git
# deploy_deb_packages "$APPDIR" kirigami-git mauikit-git index-fm-git qmltermwidget-git
export COMMIT_ID=$(cd $SCRIPTPATH/../build/index-fm-git && git rev-parse --short HEAD)
# export COMMIT_ID=$(cd $SCRIPTPATH/../build/index-fm-git && git rev-parse --short HEAD)
appimage-builder --log error --skip-tests --recipe $SCRIPTPATH/appimage-${TARGET_ARCH}.yml
$SCRIPTPATH/../build-deb.sh 'index-fm' 'https://invent.kde.org/kde/index-fm.git' $EXTRA_CMAKE_ARGS
# appimage-builder --log error --skip-tests --recipe $SCRIPTPATH/appimage-${TARGET_ARCH}.yml
# $SCRIPTPATH/../build-deb.sh 'index-fm' 'https://invent.kde.org/kde/index-fm.git' $EXTRA_CMAKE_ARGS
$SCRIPTPATH/../build-apk.sh 'index-fm' 'https://invent.kde.org/kde/index-fm.git'
$sudo rm -rf ./AppDir ./appimage-builder-cache
......@@ -18,42 +18,43 @@ $sudo curl http://archive.neon.kde.org/public.key | apt-key add -
$sudo apt-get update
$sudo apt-get install -y libqt5websockets5-dev qtmultimedia5-dev libtag1-dev libqt5sql5-sqlite libqt5multimedia5-plugins proot cmake qtdeclarative5-dev libqt5svg5-dev qtbase5-dev qtquickcontrols2-5-dev libqt5webview5-dev qtwebengine5-dev libkf5i18n-dev libkf5notifications-dev libkf5config-dev libkf5service-dev libkf5kio-dev libkf5configwidgets-dev gettext libkf5syntaxhighlighting-dev qml-module-qtgraphicaleffects qtwebengine5-dev libqt5webchannel5-dev devscripts equivs libkf5configwidgets-dev libkf5auth-dev libkf5coreaddons-dev libkf5bookmarks-dev libkf5widgetsaddons-dev libkf5completion-dev libkf5codecs-dev libkf5kio-dev libgdk-pixbuf2.0-dev libkdecorations2-dev libkf5declarative-dev libkf5plasma-dev
$sudo pip3 install --upgrade git+https://www.opencode.net/azubieta/appimagecraft.git
# $sudo pip3 install --upgrade git+https://www.opencode.net/azubieta/appimagecraft.git
# remove preinstalled packages avoid conflicts
$sudo dpkg -r mauikit || true
$sudo dpkg -r extra-cmake-modules || true
# # remove preinstalled packages avoid conflicts
# $sudo dpkg -r mauikit || true
# $sudo dpkg -r extra-cmake-modules || true
git_clone_or_update "$SCRIPTPATH/../build/extra-cmake-modules-git" 'https://anongit.kde.org/extra-cmake-modules.git'
build_cmake_project 'extra-cmake-modules-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/extra-cmake-modules-git" 'https://anongit.kde.org/extra-cmake-modules.git'
# build_cmake_project 'extra-cmake-modules-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/mauikit-git" 'https://invent.kde.org/kde/mauikit.git'
build_cmake_project 'mauikit-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/mauikit-git" 'https://invent.kde.org/kde/mauikit.git'
# build_cmake_project 'mauikit-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/kirigami-git" 'https://anongit.kde.org/kirigami.git'
build_cmake_project 'kirigami-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/kirigami-git" 'https://anongit.kde.org/kirigami.git'
# build_cmake_project 'kirigami-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/qmltermwidget-git" 'https://github.com/Swordfish90/qmltermwidget.git' 'v0.1.0'
build_qmake_project 'qmltermwidget-git' $SCRIPTPATH/../build
# git_clone_or_update "$SCRIPTPATH/../build/qmltermwidget-git" 'https://github.com/Swordfish90/qmltermwidget.git' 'v0.1.0'
# build_qmake_project 'qmltermwidget-git' $SCRIPTPATH/../build
git_clone_or_update "$SCRIPTPATH/../build/nota-git" 'https://invent.kde.org/kde/nota.git' $BRANCH
build_cmake_project 'nota-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/nota-git" 'https://invent.kde.org/kde/nota.git' $BRANCH
# build_cmake_project 'nota-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
# # 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
# # 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 kirigami-git nota-git qmltermwidget-git
# deploy_deb_packages "$APPDIR" mauikit-git kirigami-git nota-git qmltermwidget-git
export COMMIT_ID=$(cd $SCRIPTPATH/../build/nota-git && git rev-parse --short HEAD)
# export COMMIT_ID=$(cd $SCRIPTPATH/../build/nota-git && git rev-parse --short HEAD)
appimage-builder --log error --skip-tests --recipe $SCRIPTPATH/appimage-${TARGET_ARCH}.yml
$SCRIPTPATH/../build-deb.sh 'nota' 'https://invent.kde.org/kde/nota.git' $EXTRA_CMAKE_ARGS
# appimage-builder --log error --skip-tests --recipe $SCRIPTPATH/appimage-${TARGET_ARCH}.yml
# $SCRIPTPATH/../build-deb.sh 'nota' 'https://invent.kde.org/kde/nota.git' $EXTRA_CMAKE_ARGS
$SCRIPTPATH/../build-apk.sh 'nota' 'https://invent.kde.org/kde/nota.git'
$sudo rm -rf ./AppDir ./appimage-builder-cache
......@@ -18,39 +18,40 @@ $sudo curl http://archive.neon.kde.org/public.key | apt-key add -
$sudo apt-get update
$sudo apt-get install -y libqt5websockets5-dev qtmultimedia5-dev libtag1-dev libqt5sql5-sqlite libqt5multimedia5-plugins proot cmake qtdeclarative5-dev libqt5svg5-dev qtbase5-dev qtquickcontrols2-5-dev libqt5webview5-dev qtwebengine5-dev libkf5i18n-dev libkf5notifications-dev libkf5config-dev libkf5service-dev libkf5kio-dev libkf5configwidgets-dev gettext libkf5syntaxhighlighting-dev qml-module-qtgraphicaleffects qtwebengine5-dev libqt5webchannel5-dev devscripts equivs libkf5configwidgets-dev libkf5auth-dev libkf5coreaddons-dev libkf5bookmarks-dev libkf5widgetsaddons-dev libkf5completion-dev libkf5codecs-dev libkf5kio-dev libgdk-pixbuf2.0-dev libkdecorations2-dev libkf5declarative-dev libkf5plasma-dev
$sudo pip3 install --upgrade git+https://www.opencode.net/azubieta/appimagecraft.git
# $sudo pip3 install --upgrade git+https://www.opencode.net/azubieta/appimagecraft.git
# remove preinstalled packages avoid conflicts
$sudo dpkg -r mauikit || true
$sudo dpkg -r extra-cmake-modules || true
# # remove preinstalled packages avoid conflicts
# $sudo dpkg -r mauikit || true
# $sudo dpkg -r extra-cmake-modules || true
git_clone_or_update "$SCRIPTPATH/../build/extra-cmake-modules-git" 'https://anongit.kde.org/extra-cmake-modules.git'
build_cmake_project 'extra-cmake-modules-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/extra-cmake-modules-git" 'https://anongit.kde.org/extra-cmake-modules.git'
# build_cmake_project 'extra-cmake-modules-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/mauikit-git" 'https://invent.kde.org/kde/mauikit.git'
build_cmake_project 'mauikit-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/mauikit-git" 'https://invent.kde.org/kde/mauikit.git'
# build_cmake_project 'mauikit-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/kirigami-git" 'https://anongit.kde.org/kirigami.git'
build_cmake_project 'kirigami-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/kirigami-git" 'https://anongit.kde.org/kirigami.git'
# build_cmake_project 'kirigami-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/maui-pix-git" 'https://invent.kde.org/kde/maui-pix' $BRANCH
build_cmake_project 'maui-pix-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/maui-pix-git" 'https://invent.kde.org/kde/maui-pix' $BRANCH
# build_cmake_project 'maui-pix-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
# # 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
# # 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 kirigami-git maui-pix-git
# deploy_deb_packages "$APPDIR" mauikit-git kirigami-git maui-pix-git
export COMMIT_ID=$(cd $SCRIPTPATH/../build/maui-pix-git && git rev-parse --short HEAD)
# export COMMIT_ID=$(cd $SCRIPTPATH/../build/maui-pix-git && git rev-parse --short HEAD)
appimage-builder --log error --skip-tests --recipe $SCRIPTPATH/appimage-${TARGET_ARCH}.yml
$SCRIPTPATH/../build-deb.sh 'pix' 'https://invent.kde.org/kde/maui-pix.git' $EXTRA_CMAKE_ARGS
# appimage-builder --log error --skip-tests --recipe $SCRIPTPATH/appimage-${TARGET_ARCH}.yml
# $SCRIPTPATH/../build-deb.sh 'pix' 'https://invent.kde.org/kde/maui-pix.git' $EXTRA_CMAKE_ARGS
$SCRIPTPATH/../build-apk.sh 'pix' 'https://invent.kde.org/kde/maui-pix.git'
$sudo rm -rf ./AppDir ./appimage-builder-cache
......@@ -18,40 +18,41 @@ $sudo curl http://archive.neon.kde.org/public.key | apt-key add -
$sudo apt-get update
$sudo apt-get install -y libqt5websockets5-dev qtmultimedia5-dev libtag1-dev libqt5sql5-sqlite libqt5multimedia5-plugins proot cmake qtdeclarative5-dev libqt5svg5-dev qtbase5-dev qtquickcontrols2-5-dev libqt5webview5-dev qtwebengine5-dev libkf5i18n-dev libkf5notifications-dev libkf5config-dev libkf5service-dev libkf5kio-dev libkf5configwidgets-dev gettext libkf5syntaxhighlighting-dev qml-module-qtgraphicaleffects qtwebengine5-dev libqt5webchannel5-dev devscripts equivs libkf5configwidgets-dev libkf5auth-dev libkf5coreaddons-dev libkf5bookmarks-dev libkf5widgetsaddons-dev libkf5completion-dev libkf5codecs-dev libkf5kio-dev libgdk-pixbuf2.0-dev libkdecorations2-dev libkf5declarative-dev libkf5plasma-dev
$sudo pip3 install --upgrade git+https://www.opencode.net/azubieta/appimagecraft.git
# $sudo pip3 install --upgrade git+https://www.opencode.net/azubieta/appimagecraft.git
# remove preinstalled packages avoid conflicts
$sudo dpkg -r mauikit || true
$sudo dpkg -r extra-cmake-modules || true
# # remove preinstalled packages avoid conflicts
# $sudo dpkg -r mauikit || true
# $sudo dpkg -r extra-cmake-modules || true
git_clone_or_update "$SCRIPTPATH/../build/extra-cmake-modules-git" 'https://anongit.kde.org/extra-cmake-modules.git'
build_cmake_project 'extra-cmake-modules-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/extra-cmake-modules-git" 'https://anongit.kde.org/extra-cmake-modules.git'
# build_cmake_project 'extra-cmake-modules-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/mauikit-git" 'https://invent.kde.org/kde/mauikit.git'
build_cmake_project 'mauikit-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# git_clone_or_update "$SCRIPTPATH/../build/mauikit-git" 'https://invent.kde.org/kde/mauikit.git'
# build_cmake_project 'mauikit-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
git_clone_or_update "$SCRIPTPATH/../build/kirigami-git" 'https://anongit.kde.org/kirigami.git'
build_cmake_project 'kirigami-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS