Commit d82406bc authored by Michael Terry's avatar Michael Terry

Initial snapcraft support

parent fd84d562
Pipeline #55484 passed with stage
in 5 minutes and 59 seconds
include: "https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml"
# -*- Mode: YAML; indent-tabs-mode: nil; tab-width: 2 -*-
---
include: https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml
variables:
BUNDLE: "deja-dup-dev.flatpak"
BUNDLE: deja-dup-dev.flatpak
flatpak:
extends: .flatpak
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.30
variables:
MANIFEST_PATH: "flatpak/org.gnome.DejaDupDevel.yaml"
MESON_ARGS: "-Dprofile=Devel"
FLATPAK_MODULE: "deja-dup"
RUNTIME_REPO: "https://sdk.gnome.org/gnome.flatpakrepo"
APP_ID: "org.gnome.DejaDupDevel"
FLATPAK_VALIDATE_ICON: /usr/bin/true
extends: .flatpak
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.30
variables:
MANIFEST_PATH: flatpak/org.gnome.DejaDupDevel.yaml
MESON_ARGS: -Dprofile=Devel
FLATPAK_MODULE: deja-dup
RUNTIME_REPO: https://sdk.gnome.org/gnome.flatpakrepo
APP_ID: org.gnome.DejaDupDevel
FLATPAK_VALIDATE_ICON: /usr/bin/true
review:
extends: .review
stage: deploy
dependencies:
- flatpak
extends: .review
stop_review:
extends: .stop_review
stage: deploy
extends: .stop_review
# Disabled for now until snapcore/snapcraft is updated with snapcraft 3:
# https://bugs.launchpad.net/snapcraft/+bug/1814024
#snap:
# stage: deploy
# image: snapcore/snapcraft
# script:
# - snapcraft snap -o deja-dup-dev.snap
# artifacts:
# paths:
# - deja-dup-dev.snap
# expire_in: 30 days
......@@ -29,7 +29,7 @@ check: all
LC_ALL=C.UTF-8 meson test -C builddir
clean distclean:
rm -rf builddir
rm -rf builddir parts stage prime *.snap
screenshots: all
@gsettings set org.gnome.desktop.interface font-name 'Cantarell 11'
......@@ -84,4 +84,9 @@ flatpak:
flatpak/org.gnome.DejaDupDevel.yaml
flatpak update --user -y org.gnome.DejaDupDevel
.PHONY: configure clean all copy-po check screenshots flatpak
snap:
rm -f *.snap
snapcraft snap
snap install ./*.snap --dangerous --classic
.PHONY: configure clean all copy-po check screenshots flatpak snap
......@@ -17,7 +17,7 @@
# along with Déjà Dup. If not, see <http://www.gnu.org/licenses/>.
project('deja-dup', ['vala', 'c'],
version: '38.3',
version: '38.4',
license: 'GPLv3+',
default_options: [
'warning_level=1',
......@@ -43,7 +43,6 @@ localedir = join_paths(prefix, get_option('localedir'))
pkgdatadir = join_paths(datadir, meson.project_name())
pkglibdir = join_paths(libdir, meson.project_name())
pkglibexecdir = join_paths(libexecdir, meson.project_name())
toolsdir = join_paths(pkglibexecdir, 'tools')
# Dependencies
gio_dep = dependency('gio-2.0', version: '>= 2.46')
......
# -*- Mode: YAML; indent-tabs-mode: nil; tab-width: 2 -*-
---
name: deja-dup
version: git
version-script: grep 'version:' meson.build -m1 | cut -d\' -f2
summary: Déjà Dup Backup Tool
description: |
An easy to use personal backup system for your GNOME desktop.
https://wiki.gnome.org/Apps/DejaDup
icon: data/icons/org.gnome.DejaDup.svg
grade: devel
confinement: classic
base: core18
apps:
deja-dup:
command: bin/deja-dup
desktop: share/applications/org.gnome.DejaDup.desktop
environment:
PATH: $SNAP/bin:$PATH
PYTHONPATH: $SNAP/lib/python2.7/site-packages
XDG_DATA_DIRS: $SNAP/share:$XDG_DATA_DIRS
parts:
duplicity:
plugin: python
python-version: python2
source: https://launchpad.net/duplicity/0.7-series/0.7.18.2/+download/duplicity-0.7.18.2.tar.gz
source-type: tar
build-packages:
- librsync-dev
stage-packages:
- librsync1
- python-gi
deja-dup:
plugin: meson
source: .
source-type: git
meson-parameters:
- --prefix=/snap/deja-dup/current
organize:
snap/deja-dup/current: .
build-packages:
- appstream-util
- desktop-file-utils
- itstool
- libglib2.0-bin
- libglib2.0-dev
- libgoa-1.0-dev
- libgoa-backend-1.0-dev
- libgpg-error-dev
- libgtk-3-dev
- libsecret-1-dev
- valac
stage-packages:
- libgoa-1.0-0b
- libgoa-backend-1.0-1
- libgtk-3-0
- libsecret-1-0
override-prime: |
snapcraftctl prime
sed -i 's|Icon=.*|Icon=/share/icons/hicolor/scalable/apps/org.gnome.DejaDup.svg|' share/applications/org.gnome.DejaDup.desktop
glib-compile-schemas share/glib-2.0/schemas
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