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

Proposed by Gary.Wang
Status: Merged
Approved by: Andrew Hayzen
Approved revision: 225
Merged at revision: 252
Proposed branch: lp:~gary-wzl77/ubuntu-weather-app/snap_fix_1552100
Merge into: lp:ubuntu-weather-app
Prerequisite: lp:~gary-wzl77/ubuntu-weather-app/fix_1518888
Diff against target: 209 lines (+194/-0)
2 files modified
setup/gui/ubuntu-weather-app.desktop (+161/-0)
snapcraft.yaml (+33/-0)
To merge this branch: bzr merge lp:~gary-wzl77/ubuntu-weather-app/snap_fix_1552100
Reviewer Review Type Date Requested Status
Jenkins Bot continuous-integration Approve
Andrew Hayzen Approve
Review via email: mp+311681@code.launchpad.net

Commit message

create snap package by using ubuntu-app-platform plugin.

Description of the change

create snap package by using ubuntu-app-platform plugin.

To post a comment you must log in.
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Awesome! This looks like a good start, there is one inline comment about the plugs. But I think the main thing missing is there is no setup/gui folder with an icon and .desktop file (see the packaging icon and desktop file docs here http://snapcraft.io/docs/build-snaps/metadata#package-icon). You should also be able to modify the icon and .desktop file from the existing click ones.

review: Needs Fixing
224. By Gary.Wang

add icon and desktop file per andrew's comments.

225. By Gary.Wang

update desktop file for i18n.

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

LGTM, thanks for doing this! As discussed we'll investigate the confinement in a follow up branch.

review: Approve
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'setup'
=== added directory 'setup/gui'
=== added file 'setup/gui/icon.png'
0Binary files setup/gui/icon.png 1970-01-01 00:00:00 +0000 and setup/gui/icon.png 2016-11-24 11:01:07 +0000 differ0Binary files setup/gui/icon.png 1970-01-01 00:00:00 +0000 and setup/gui/icon.png 2016-11-24 11:01:07 +0000 differ
=== added file 'setup/gui/ubuntu-weather-app.desktop'
--- setup/gui/ubuntu-weather-app.desktop 1970-01-01 00:00:00 +0000
+++ setup/gui/ubuntu-weather-app.desktop 2016-11-24 11:01:07 +0000
@@ -0,0 +1,161 @@
1[Desktop Entry]
2Version=1.0
3Type=Application
4Terminal=false
5Exec=ubuntu-weather-app %u
6Icon=/snap/ubuntu-weather-app/current/meta/gui/icon.png
7Name=Weather
8Name[aa]=Deesaasa
9Name[am]=የ አየር ንብረት
10Name[ar]=الطقس
11Name[ast]=Meteoroloxía
12Name[be]=Надвор’е
13Name[br]=Amzer
14Name[bs]=Vrijeme
15Name[ca]=El temps
16Name[cs]=Počasí
17Name[cy]=Tywydd
18Name[da]=Vejret
19Name[de]=Wetter
20Name[el]=Καιρός
21Name[en_AU]=Weather
22Name[en_GB]=Weather
23Name[eo]=Vetero
24Name[es]=Meteorología
25Name[fa]=آب و هوا
26Name[fi]=Sää
27Name[fo]=Veðrið
28Name[fr]=Météo
29Name[fr_CA]=Météo
30Name[gd]=An aimsir
31Name[gl]=O Tempo
32Name[he]=מזג אוויר
33Name[hr]=Vrijeme
34Name[hu]=Időjárás
35Name[it]=Meteo
36Name[ja]=天気
37Name[ko]=날씨
38Name[lv]=Laikapstākļi
39Name[my]=ရာသီဥတု
40Name[nb]=Vær
41Name[nl]=Weer
42Name[oc]=Metèo
43Name[pl]=Pogoda
44Name[pt]=Meteorologia
45Name[ro]=Vremea
46Name[ru]=Погода
47Name[shn]=ၾိင်ႈၾႃ့
48Name[sk]=Počasie
49Name[sl]=Vreme
50Name[sr]=Време
51Name[sv]=Väder
52Name[ta]=வானிலை
53Name[te]=వాతావరణం
54Name[tr]=Hava Durumu
55Name[ug]=ھاۋا رايى
56Name[uk]=Погода
57Name[uz]=Ob-havo
58Name[vi]=Thời tiết
59Name[zh_CN]=天气
60Name[zh_TW]=天氣
61Comment=A weather forecast application for Ubuntu with support for multiple online weather data sources
62Comment[am]=ለ ኡቡንቱ የ አየር ንብረት መተግበሪያ በርካታ የ አየር ንብረት ዳታ ምንጮች በመስመር ላይ ይደገፋል
63Comment[ar]=تطبيق توقعات الطقس لأوبونتو مع دعم العديد من مصادر بيانات الطقس على الإنترنت
64Comment[ast]=Una aplicación de meteoroloxía pa Ubuntu con sofitu pa múltiples fontes de datos climáticos en llinia
65Comment[be]=Праграма для паказу прагнозаў надвор'я ў Ubuntu. Прадугледжаная падтрымка некалькіх крыніц дадзеных пра надвор'е.
66Comment[br]=Un arload war Ubuntu evit gouzout petra e vo liv an amzer, hag a gemer e karg meur a vammenn roadennoù meteorologel enlinenn
67Comment[bs]=Aplikacija za vremensku prognozu za Ubuntu sa podrškom za više izvora o vremenskim podacima
68Comment[ca]=Aplicació de predicció del temps que funciona amb diverses fonts de dades meteorològiques en línia
69Comment[cs]=Aplikace předpovědi počasí pro Ubuntu s podporou mnoha online zdrojů
70Comment[cy]=Ap tywydd ar gyfer Ubuntu sy'n cefnogi sawl ffynhonnell data tywydd arlein
71Comment[de]=Eine Wettervorhersage-App für Ubuntu mit Unterstützung vieler Online-Wetterdatenquellen
72Comment[el]=Μια εφαρμογή πρόβλεψης καιρού για το Ubuntu με υποστήριξη πολλαπλών διαδικτυακών πηγών μετεορολογικών δεδομένων
73Comment[en_AU]=A weather forecast application for Ubuntu with support for multiple online weather data sources
74Comment[en_GB]=A weather forecast application for Ubuntu with support for multiple online weather data sources
75Comment[es]=Una aplicación de meteorología para Ubuntu compatible con múltiples fuentes de datos climáticos en línea
76Comment[fa]=یک برنامه‌ی پیش‌بینی آب‌وهوا برای اوبونتو که از چند منبع داده‌ی آب‌وهوایی پشتیبانی می‌کند
77Comment[fi]=Useita eri tietolähteitä tukeva sääennustesovellus Ubuntulle
78Comment[fo]=Eitt veðurvánaforrit til Ubuntu, við stuðul fyri fleiri verðurdátakeldur á alnetinum
79Comment[fr]=Une application de prévisions météo pour Ubuntu avec prise en charge de plusieurs sources de données météorologiques en ligne
80Comment[fr_CA]=Une application de prévisions météo pour Ubuntu offrant la prise en charge de plusieurs sources en ligne de données météo
81Comment[gd]=Aplacaid airson Ubuntu gus ro-aithris air an t-sìde a thoirt dhut o iomadh tùs dàta air loidhne
82Comment[gl]=Previsión meteorolóxica para Ubuntu con compatibilidade para múltiples orixes de datos en liña
83Comment[he]=יישום תחזית מזג אוויר לאובונטו עם תמיכה במגוון מקורות נתונים
84Comment[hr]=Prognoza vremena za Ubuntu s podrškom za višestruke izvore podataka
85Comment[hu]=Időjárás-előrejelzés alkalmazás Ubuntuhoz, mely több forrásból gyűjt adatokat
86Comment[it]=Una applicazione per le previsioni meteo di Ubuntu con il supporto a diversi servizi meteorologici online
87Comment[ja]=複数のオンライン気象データに対応したUbuntu用天気予報アプリ
88Comment[ko]=우분투를 위한 온라인 날씨 예보 애플리케이션
89Comment[lv]=Laika prognožu lietotne Ubuntu videi, kas atbalsta vairākus tiešsaistes laikapstākļu datu avotus
90Comment[my]=Onlineမှများစွာ​သော မိုး​လေဝသ အချက်​အလက်​ များဖြင်​့​ထောက်​ပံ့​ပေးထားသည်​့ Ubuntuအတွက်​ မိုး​လေဝသခန်​့မှန်​းသည်​့application
91Comment[nb]=Et værmeldingsprogram for Ubuntu med mulighet for å lese værdata fra flere kilder på nett
92Comment[nl]=Een weersverwachtingsapp voor Ubuntu met ondersteuning voor meerdere online weersinformatiebronnen
93Comment[pl]=Aplikacja prognozy pogody dla Ubuntu z obsługą wielu internetowych danych pogodowych
94Comment[pt]=Uma app de meteorologia para o Ubuntu com suporte múltiplo a fontes online
95Comment[ro]=O aplicație Ubuntu pentru prognoza vremii care funcționează cu mai multe surse de date online pentru vreme
96Comment[ru]=Приложение для Ubuntu, предоставляющее данные о погоде из нескольких интерактивных источников.
97Comment[sk]=Aplikácia na predpoveď počasia pre Ubuntu s podporou viacerých online zdrojov počasia
98Comment[sl]=Program vremenske napovedi za Ubuntu s podporo večim spletnim virom z vremenskimi podatki
99Comment[sr]=Програм за временску прогнозу за Убунту са подршком за више извора података о времену са интернета
100Comment[sv]=Ett Ubuntuprogram för väderprognoser med stöd för flera väderdatakällor på nätet
101Comment[tr]=Birçok çevrimiçi hava durumu veri kaynağı destekli Ubuntu için hava tahmini uygulaması
102Comment[ug]=توردىكى نۇرغۇن ھاۋارايى مەنبەلىرىنى قوللايدىغان ئۇبۇنتۇنىڭ ھاۋارايىدىن ئالدىن مەلۇمات بېرىش پروگراممىسى
103Comment[uk]=Програма для показу прогнозів погоди в Ubuntu. Передбачено підтримку декількох джерел даних щодо погоди.
104Comment[uz]=Ubuntu uchun k'op sonli onlayn ma'lumot manbalarini qo'llab quvvatlovchi ob-havo bashorati dasturi
105Comment[vi]=Phần mềm dự báo thời tiết cho Ubuntu có hỗ trợ nhiều nguồn số liệu về thời tiết trực tuyến
106Comment[zh_CN]=一款支持多个在线数据源的 Ubuntu 版天气预报应用
107Comment[zh_TW]=Ubuntu 的天氣預測桯式,支援多個天氣資料提供者
108Keywords=weather;forecast;twc;openweathermap;the weather channel;
109Keywords[am]=የ አየር ንብረት: ግምት: twc;openweathermap የ አየር ንብረት ጣቢያ:
110Keywords[ar]=طقس;الطقس;توقعات;
111Keywords[ast]=meteoroloxía;pronósticu;twc;openweathermap;the weather channel;
112Keywords[be]=надвор'е;прагноз;weather;forecast;twc;openweathermap;the weather channel;
113Keywords[br]=amzer;rakwelet;twc;openweathermap;chadenn an amzer;
114Keywords[bs]=vrijeme;prognoza;twc;openweathermap;the weather channel;
115Keywords[ca]=el temps;predicció;meteorologia;openweathermap;the weather channel;twc;
116Keywords[cs]=počasí;předpověď;twc;openweathermat;the weather channel;
117Keywords[cy]=tywydd;rhagolwg;twc;openweathermap;the weather channel;
118Keywords[de]=Wetter;Vorhersage;openweathermap;the weather channel;
119Keywords[el]=καιρός;μετεωρολογία;δελτίο καιρού;πρόγνωση;
120Keywords[en_AU]=weather;forecast;twc;openweathermap;the weather channel;
121Keywords[en_GB]=weather;forecast;twc;openweathermap;the weather channel;
122Keywords[es]=clima;meteo;pronóstico;twc;openweathermap;the weather channel;
123Keywords[fa]=آب‌وهوا;پیش‌بینی;twc;openweathermap;کانال آب‌وهوا;
124Keywords[fi]=weather;forecast;twc;openweathermap;the weather channel;sää;ennuste;
125Keywords[fo]=veður;forsøgn;twc;opnaveðurforrit;veðurrásin
126Keywords[fr]=météo;temps;prévisions;twc;openweathermap;the weather channel;
127Keywords[fr_CA]=météo;temps;prévisions;twc;openweathermap;the weather channel;
128Keywords[gd]=weather;forecast;twc;openweathermap;the weather channel;sìde;aimsir;ro-aithris
129Keywords[gl]=tempo;clima;weather channel;previsión;prognóstico;openweathermap;
130Keywords[he]=מזג אוויר;תחזית;ערוץ מזג האוויר;מזג אוויר פתוח;
131Keywords[hr]=weather;forecast;twc;openweathermap;the weather channel;
132Keywords[hu]=időjárás;előrejelzés;twc;openweathermap;the weather channel;
133Keywords[it]=meteo;previsioni;the weather channel;openweathermap;
134Keywords[ja]=weather;forecast;twc;openweathermap;the weather channel;天気;天気予報;ウェザーチャンネル;
135Keywords[ko]=날씨;예보;기온;강우
136Keywords[lv]=laiks;laikapstākļi;prognozes;twc;openweathermap;laikapstākļu kanāls;
137Keywords[my]=မိုး​လေဝသ;ခန်​့မှန်​းချက်​;twc;မိုး​လေဝသဆိုင်​ရာ​မြေပုံကိုဖွင်​့;မိုး​လေဝသ channel;
138Keywords[nb]=vær;værmelding;openweathermap;the weather channel;
139Keywords[nl]=weather;forecast;twc;openweathermap;the weather channel;weer;weersverwachting;weerkanaal;
140Keywords[oc]=metèo;temps;previsions;twc;openweathermap;the weather channel;
141Keywords[pl]=pogoda;prognoza;twc;openweathermap;kanał z prognozą pogody;
142Keywords[pt]=meteorologia;previsão;twc;openweathermap;o canal do tempo;
143Keywords[ro]=vremea;prognoză;twc;openweathermap;the weather channel;
144Keywords[ru]=погода;прогноз;twc;КартаПогоды;метеослужба;
145Keywords[sk]=počasie;predpoveď;twc;otvoriťmapupočasia;the weather channel;
146Keywords[sl]=vreme;napoved;openweathermap;vremenski kanal;
147Keywords[sr]=време;прогноза;временске прилике;twc;openweathermap;weather channel;
148Keywords[sv]=väder;prognos;twc;openweathermap;the weather channel;
149Keywords[tr]=hava durumu;tahmin;twc;openweathermap;the weather channel;
150Keywords[ug]=ھاۋارايى;ئالدىن مەلۇمات;twc;openweathermap;ھاۋارايى قانىلى;
151Keywords[uk]=погода;прогноз;weather;forecast;twc;openweathermap;the weather channel;
152Keywords[uz]=ob-havo;bashorat;twc;openweathermap;the weather channel;
153Keywords[vi]=thời tiết; dự báo;twc;openweathermap;the weather channel;
154Keywords[zh_CN]=天气;预报;twc;开源气象服务;天气频道;
155Keywords[zh_TW]=weather;forecast;twc;openweathermap;the weather channel;天氣;預測;
156X-Ubuntu-Touch=true
157X-Ubuntu-Default-Department-ID=accessories
158X-Ubuntu-StageHint=SideStage
159X-Ubuntu-Splash-Color=#F5F5F5
160X-Ubuntu-Splash-Show-Header=true
161X-Ubuntu-Supported-Orientations=portrait
0162
=== 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 11:01:07 +0000
@@ -0,0 +1,33 @@
1name: ubuntu-weather-app
2version: '0.1'
3summary: ubuntu weather app.
4description: |
5 A weather forecast application for Ubuntu with support for multiple online weather data sources.
6grade: devel
7confinement: devmode
8architectures: [all]
9
10apps:
11 ubuntu-weather-app:
12 command: desktop-launch qmlscene --desktop_file_hint=unity8 $SNAP/usr/share/ubuntu-weather-app/app/ubuntu-weather-app.qml
13 plugs: [unity7, platform, opengl, home, gsettings]
14
15plugs:
16 platform:
17 interface: content
18 content: ubuntu-app-platform1
19 target: ubuntu-app-platform
20 default-provider: ubuntu-app-platform
21
22parts:
23 ubuntu-weather-app:
24 plugin: cmake
25 configflags: [-DCMAKE_INSTALL_PREFIX=/usr, -DCLICK_MODE=off]
26 source: .
27 build-packages:
28 - cmake
29 - intltool
30 after: [desktop-ubuntu-app-platform]
31 environment:
32 source: snap/
33 plugin: dump

Subscribers

People subscribed via source and target branches

to all changes: