← Back to team overview

ubuntu-touch-coreapps-reviewers team mailing list archive

[Merge] lp:~gary-wzl77/ubuntu-weather-app/snap_fix_1552100 into lp:ubuntu-weather-app

 

Gary.Wang has proposed merging lp:~gary-wzl77/ubuntu-weather-app/snap_fix_1552100 into lp:ubuntu-weather-app with lp:~gary-wzl77/ubuntu-weather-app/fix_1518888 as a prerequisite.

Commit message:
create snap package by using ubuntu-app-platform plugin.

Requested reviews:
  Ubuntu Weather Developers (ubuntu-weather-dev)

For more details, see:
https://code.launchpad.net/~gary-wzl77/ubuntu-weather-app/snap_fix_1552100/+merge/311681

create snap package by using ubuntu-app-platform plugin.
-- 
Your team Ubuntu Weather Developers is requested to review the proposed merge of lp:~gary-wzl77/ubuntu-weather-app/snap_fix_1552100 into lp:ubuntu-weather-app.
=== added directory 'snap'
=== added directory 'snap/ubuntu-app-platform'
=== added file 'snapcraft.yaml'
--- snapcraft.yaml	1970-01-01 00:00:00 +0000
+++ snapcraft.yaml	2016-11-24 03:54:04 +0000
@@ -0,0 +1,33 @@
+name: ubuntu-weather-app
+version: '0.1'
+summary: ubuntu weather app.
+description: |
+    A weather forecast application for Ubuntu with support for multiple online weather data sources.
+grade: devel
+confinement: devmode
+architectures: [all]
+
+apps:
+    ubuntu-weather-app:
+        command: desktop-launch qmlscene --desktop_file_hint=unity8 $SNAP/usr/share/ubuntu-weather-app/app/ubuntu-weather-app.qml 
+        plugs: [unity7, platform, opengl, home, gsettings]
+
+plugs:
+    platform:
+        interface: content
+        content: ubuntu-app-platform1
+        target:  ubuntu-app-platform
+        default-provider: ubuntu-app-platform
+
+parts:
+  ubuntu-weather-app:
+    plugin: cmake
+    configflags: [-DCMAKE_INSTALL_PREFIX=/usr, -DCLICK_MODE=off]
+    source: .
+    build-packages:
+        - cmake
+        - intltool
+    after: [desktop-ubuntu-app-platform]
+  environment:
+    source: snap/
+    plugin: dump