From b3a1cffd1a5e10d44d45737615549753bf0dd3c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Thu, 16 Feb 2017 11:37:53 +0100 Subject: [PATCH] remove snap scripts (they are in a separat repository) --- snap/qt5-launch | 77 ----- snap/setup/gui/icon.svg | 602 ---------------------------------------- snap/snapcraft.yaml | 100 ------- 3 files changed, 779 deletions(-) delete mode 100755 snap/qt5-launch delete mode 100644 snap/setup/gui/icon.svg delete mode 100644 snap/snapcraft.yaml diff --git a/snap/qt5-launch b/snap/qt5-launch deleted file mode 100755 index 1b543ce0..00000000 --- a/snap/qt5-launch +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/sh - -case "$SNAP_ARCH" in - "amd64") ARCH='x86_64-linux-gnu' - ;; - "i386") ARCH='i386-linux-gnu' - ;; - "armhf") ARCH='arm-linux-gnueabihf' - ;; - *) - echo "Unsupported architecture for this app build" - exit 1 - ;; -esac - -export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH:$LD_LIBRARY_PATH - -# XKB config -export XKB_CONFIG_ROOT=$SNAP/usr/share/X11/xkb - -# Qt Platform to Mir -#export QTCHOOSER_NO_GLOBAL_DIR=1 -#export QT_SELECT=snappy-qt5 - -# Qt Libs -export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH/qt5/libs:$LD_LIBRARY_PATH -export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH/pulseaudio:$LD_LIBRARY_PATH - -# Qt Modules -export QT_PLUGIN_PATH=$SNAP/usr/lib/$ARCH/qt5/plugins -export QML2_IMPORT_PATH=$QML2_IMPORT_PATH:$SNAP/usr/lib/$ARCH/qt5/qml -export QML2_IMPORT_PATH=$QML2_IMPORT_PATH:$SNAP/lib/$ARCH - -# Mesa Libs -#export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH/mesa:$LD_LIBRARY_PATH -#export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH/mesa-egl:$LD_LIBRARY_PATH - -# XDG Config -export XDG_CONFIG_DIRS=$SNAP/etc/xdg:$XDG_CONFIG_DIRS -export XDG_CONFIG_DIRS=$SNAP/usr/xdg:$XDG_CONFIG_DIRS -# Note: this doesn't seem to work, QML's LocalStorage either ignores -# or fails to use $SNAP_USER_DATA if defined here -export XDG_DATA_DIRS=$SNAP_USER_DATA:$XDG_DATA_DIRS -export XDG_DATA_DIRS=$SNAP/usr/share:$XDG_DATA_DIRS - -# Not good, needed for fontconfig -export XDG_DATA_HOME=$SNAP/usr/share - -# Font Config -export FONTCONFIG_PATH=$SNAP/etc/fonts/config.d -export FONTCONFIG_FILE=$SNAP/etc/fonts/fonts.conf - -# Tell libGL where to find the drivers -#export LIBGL_DRIVERS_PATH=$SNAP/usr/lib/$ARCH/dri - -# Necessary for the SDK to find the translations directory -export APP_DIR=$SNAP - -# Removes Qt warning: Could not find a location -# of the system Compose files -export QTCOMPOSE=$SNAP/usr/share/X11/locale - -# Use GTK styling for running under Unity 7 -# TODO: find out what needs to be done for Unity 8 -export QT_STYLE_OVERRIDE=gtk -export DESKTOP_SESSION=ubuntu -export XDG_SESSION_DESKTOP=ubuntu -export XDG_CURRENT_DESKTOP=Unity -export GTK2_MODULES=overlay-scrollbar -export GTK_MODULES=gail:atk-bridge:unity-gtk-module -export QT_QPA_PLATFORMTHEME=appmenu-qt5 -export GTK_PATH=$SNAP/usr/lib/$ARCH/gtk-2.0 -export GIO_MODULE_DIR=$SNAP/usr/lib/$ARCH/gio/modules - -cd $SNAP -exec "$@" - diff --git a/snap/setup/gui/icon.svg b/snap/setup/gui/icon.svg deleted file mode 100644 index 17065d0b..00000000 --- a/snap/setup/gui/icon.svg +++ /dev/null @@ -1,602 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml deleted file mode 100644 index 981f4b15..00000000 --- a/snap/snapcraft.yaml +++ /dev/null @@ -1,100 +0,0 @@ -name: guhio -version: 0.1.0 -summary: An open source IoT server -description: The guh daemon is a plugin based IoT (Internet of Things) server. The server works like a translator for devices, things and services and allows them to interact. With the powerful rule engine you are able to connect any device available in the system and create individual scenes and behaviors for your environment. -confinement: devmode -grade: devel - -apps: - guhd: - command: qt5-launch guhd -n -p - daemon: simple - plugs: - - network - - network-bind - - network-control - - network-manager - - network-observe - - serial-port - - bluetooth-control - - avahi-observe - - bluez - - shutdown - - guh-cli: - command: guh-cli - plugs: - - network - - network-bind - - -parts: - # Custom launcher to support also armhf - qt5-launch: - plugin: dump - source: . - organize: - qt5-launch: bin/ - - # Building the whole guh project containig libguh and plugins - guh: - plugin: qmake - source: ../ - options: [ CONFIG+=ccache, CONFIG+=disabletesting, CONFIG+=snappy ] - qt-version: qt5 - project-files: [ guh.pro ] - build-packages: - - python - - ccache - - dpkg-dev - - rsync - - qtchooser - - qt5-qmake - - qtbase5-dev - - qtbase5-dev-tools - - qttools5-dev-tools - - qtconnectivity5-dev - - libqt5websockets5-dev - - libqt5serialport5-dev - - libqt5bluetooth5 - - libqt5sql5-sqlite - - libqt5dbus5 - - libavahi-client-dev - - libavahi-common-dev - stage-packages: - - libqt5network5 - - libqt5gui5 - - libqt5sql5 - - libqt5xml5 - - libqt5dbus5 - - libqt5websockets5 - - libqt5bluetooth5 - - libqt5sql5-sqlite - - libqt5serialport5 - - logrotate - - nmap - - avahi-daemon - - libavahi-client3 - - libavahi-common3 - after: [ qt5-launch ] - - # The guh command line interface - guh-cli: - plugin: python - python-version: python2 - source: https://github.com/guh/guh-cli.git - source-type: git - after: [ guh ] - build-packages: - - python-dev - - python-pip - - python-setuptools - - # The guh webinterface (static folder for the webserver) - guh-webinterface: - plugin: dump - source: https://jenkins.guh.io/view/guh-webinterface/job/guh-webinterface-all/lastBuild/artifact/guh-webinterface.tar.gz - source-type: tar - after: [ guh-cli ] - organize: - '*': guh-webinterface/