Commit fe07c815 authored by Alexis Lopez Zubieta's avatar Alexis Lopez Zubieta Committed by Jasem Mutlaq

add appimage-builder recipe

parent c0615053
......@@ -2,69 +2,69 @@
# This is from packaging/linux/debian/control build-depends - fix that first if there is an issue in the CI build
.install_build_dependencies: &install_build_dependencies
- apt update && apt -y install --no-install-recommends software-properties-common
- apt update && add-apt-repository ppa:mutlaqja/ppa
- >
apt update && apt -y install --no-install-recommends
gcc-multilib
g++-multilib
make
gettext
coreutils
cmake
extra-cmake-modules
qtbase5-dev
qtdeclarative5-dev
qtmultimedia5-dev
qtpositioning5-dev
libqt5websockets5-dev
libqt5svg5-dev
libqt5sql5-sqlite
kdoctools-dev
libkf5config-dev
libkf5guiaddons-dev
libkf5i18n-dev
libkf5newstuff-dev
libkf5notifications-dev
libkf5xmlgui-dev
libkf5plotting-dev
libkf5crash-dev
libkf5notifyconfig-dev
libeigen3-dev
zlib1g-dev
libcfitsio-dev
libnova-dev
libindi-dev
indi-bin
wcslib-dev
libraw-dev
libgsl-dev
phonon4qt5-backend-vlc
qt5keychain-dev
libsecret-1-dev
- apt update && apt -y install --no-install-recommends software-properties-common
- apt update && add-apt-repository ppa:mutlaqja/ppa
- >
apt update && apt -y install --no-install-recommends
gcc-multilib
g++-multilib
make
gettext
coreutils
cmake
extra-cmake-modules
qtbase5-dev
qtdeclarative5-dev
qtmultimedia5-dev
qtpositioning5-dev
libqt5websockets5-dev
libqt5svg5-dev
libqt5sql5-sqlite
kdoctools-dev
libkf5config-dev
libkf5guiaddons-dev
libkf5i18n-dev
libkf5newstuff-dev
libkf5notifications-dev
libkf5xmlgui-dev
libkf5plotting-dev
libkf5crash-dev
libkf5notifyconfig-dev
libeigen3-dev
zlib1g-dev
libcfitsio-dev
libnova-dev
libindi-dev
indi-bin
wcslib-dev
libraw-dev
libgsl-dev
phonon4qt5-backend-vlc
qt5keychain-dev
libsecret-1-dev
# This is from packaging/linux/debian/control recommends/depends - fix that first if there is an issue in the CI build
.install_test_dependencies: &install_test_dependencies
- apt update && apt -y install --no-install-recommends software-properties-common
- apt update && add-apt-repository ppa:mutlaqja/ppa && add-apt-repository ppa:pch/phd2
- >
apt update &&
apt -y --no-install-recommends install
make
cmake
extra-cmake-modules
xplanet
xplanet-images
astrometry.net
kded5
kinit
libindi1
indi-bin
breeze-icon-theme
libqt5sql5-sqlite
qml-module-qtquick-controls
phd2
xvfb
- apt update && apt -y install --no-install-recommends software-properties-common
- apt update && add-apt-repository ppa:mutlaqja/ppa && add-apt-repository ppa:pch/phd2
- >
apt update &&
apt -y --no-install-recommends install
make
cmake
extra-cmake-modules
xplanet
xplanet-images
astrometry.net
kded5
kinit
libindi1
indi-bin
breeze-icon-theme
libqt5sql5-sqlite
qml-module-qtquick-controls
phd2
xvfb
#image: ubuntu:latest
......@@ -76,9 +76,9 @@ build-and-test:
stage: test
interruptible: true
image: tallfurryman/kstars-ci
# before_script:
# - *install_build_dependencies
# - *install_test_dependencies
# before_script:
# - *install_build_dependencies
# - *install_test_dependencies
script:
- mkdir -p kstars-build
- cd kstars-build
......@@ -145,3 +145,26 @@ build-and-test:
# reports:
# junit:
# kstars-build/Testing/**.xml
build-appimage:
image: tallfurryman/kstars-ci
before_script:
- apt-get install -y python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot wget gpg-agent
- python3 -m pip install appimage-builder
- wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /opt/appimagetool
- chmod +x /opt/appimagetool
- pushd /opt/; /opt/appimagetool --appimage-extract
- mv /opt/squashfs-root /opt/appimagetool.AppDir
- ln -s /opt/appimagetool.AppDir/AppRun /usr/local/bin/appimagetool
- popd
script:
- mkdir -p kstars-build
- cd kstars-build
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=OFF -DBUILD_TESTING=OFF -DBUILD_DOC=OFF -DKDE_SKIP_TEST_SETTINGS=ON
- make -j$(nproc)
- appimage-builder --recipe ../appimage/appimage-builder.yml --skip-test
artifacts:
paths:
- 'kstars-build/*.AppImage*'
version: 1
script:
- rm -rf AppDir || true
- DESTDIR=AppDir make install
- for F in $(dpkg-query -L libraw20); do cp $F --parent -t AppDir -v; done
AppDir:
path: ./AppDir
app_info:
id: org.kde.kstars
name: KStars
icon: kstars
version: latest
exec: usr/bin/kstars
exec_args: $@
runtime:
path_mappings:
- /usr/lib/x86_64-linux-gnu/qt5:$APPDIR/usr/lib/x86_64-linux-gnu/qt5
- /usr/share/xsessions/plasma/kstars:$APPDIR/usr/share/xsessions/plasma/kstars
- /usr/share/kstars:$APPDIR/usr/share/kstars
- /usr/share/indi:$APPDIR/usr/share/indi
env:
APPDIR_LIBRARY_PATH: $APPDIR/usr/lib/x86_64-linux-gnu/libcanberra-0.30:$APPDIR/lib/x86_64-linux-gnu:$APPDIR/usr/lib/x86_64-linux-gnu:$APPDIR/usr/lib/x86_64-linux-gnu/pulseaudio
apt:
arch: amd64
sources:
- sourceline: deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ bionic 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/ bionic-updates main restricted universe multiverse
- sourceline: deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
- sourceline: deb [arch=amd64] http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
- sourceline: deb [arch=amd64] http://ppa.launchpad.net/mutlaqja/ppa/ubuntu bionic main
key_url: "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x7da5c2d272b4c6f8e7cea9c6487cec2b3f33a288"
- sourceline: deb [arch=amd64] http://ppa.launchpad.net/pch/phd2/ubuntu bionic main
key_url: "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xdae27ffb13432bed41181735e3dbd5d75cfabf12"
include:
- frameworkintegration
- kimageformat-plugins
- libbz2-1.0
- libcanberra-pulse
- libcfitsio5
- libexpat1
- libfam0
- libgcrypt20
- libjpeg-turbo8
- libkf5archive5
- libkf5attica5
- libkf5bookmarks5
- libkf5codecs5
- libkf5completion5
- libkf5configcore5
- libkf5configgui5
- libkf5configwidgets5
- libkf5coreaddons5
- libkf5crash5
- libkf5dbusaddons5
- libkf5globalaccel5
- libkf5guiaddons5
- libkf5i18n5
- libkf5iconthemes5
- libkf5itemviews5
- libkf5jobwidgets5
- libkf5kiocore5
- libkf5kiofilewidgets5
- libkf5kiogui5
- libkf5kiowidgets5
- libkf5newstuff5
- libkf5newstuffcore5
- libkf5notifications5
- libkf5notifyconfig5
- libkf5package5
- libkf5plotting5
- libkf5service5
- libkf5solid5
- libkf5sonnetcore5
- libkf5sonnetui5
- libkf5style5
- libkf5textwidgets5
- libkf5waylandclient5
- libkf5widgetsaddons5
- libkf5windowsystem5
- libkf5xmlgui5
- liblz4-1
- libopenexr22
- libpciaccess0
- libpcre3
- libqt5concurrent5
- libqt5quickcontrols2-5
- libqt5quicktemplates2-5
- libqt5keychain1
- libqt5sql5-sqlite
- libqt5svg5
- libqt5texttospeech5
- libqt5x11extras5
- libqt5websockets5
- libsm6
- libsystemd0
- libxau6
- libxcb-render-util0
- libxcb-sync1
- libxcb-xinerama0
- libxcb-xkb1
- libxdamage1
- libxdmcp6
- libxext6
- libxfixes3
- libxrender1
- libxshmfence1
- libxxf86vm1
- libgsl23
- libzstd1
- plasma-integration
- qt5-image-formats-plugins
- xplanet
- libnova-0.16-0
- libwcs5
- libindi-data
exclude:
- breeze
- breeze-icon-theme
- breeze-cursor-theme
- kde-style-breeze
- perl
- gnupg
- gpg
- gpgv
- gpgsm
- xkb-data
- sound-theme-freedesktop
files:
exclude:
- usr/share/man
- usr/share/doc/*/README.*
- usr/share/doc/*/changelog.*
- usr/share/doc/*/NEWS.*
- usr/share/doc/*/TODO.*
test:
fedora:
image: appimagecrafters/tests-env:fedora-30
command: "mkdir -p /home/$USER/.local/share/kstars && ./AppRun"
use_host_x: true
debian:
image: appimagecrafters/tests-env:debian-stable
command: "mkdir -p /home/$USER/.local/share/kstars && ./AppRun"
use_host_x: true
arch:
image: appimagecrafters/tests-env:archlinux-latest
command: "mkdir -p /home/$USER/.local/share/kstars && ./AppRun"
use_host_x: true
centos:
image: appimagecrafters/tests-env:centos-7
command: "mkdir -p /home/$USER/.local/share/kstars && ./AppRun"
use_host_x: true
ubuntu:
image: appimagecrafters/tests-env:ubuntu-xenial
command: "mkdir -p /home/$USER/.local/share/kstars && ./AppRun"
use_host_x: true
AppImage:
arch: x86_64
update-information: None
sign-key: None
Markdown is supported
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