Merge lp:~ahayzen/music-app/snap-devmode into lp:music-app

Proposed by Andrew Hayzen
Status: Merged
Approved by: Andrew Hayzen
Approved revision: 1038
Merged at revision: 1026
Proposed branch: lp:~ahayzen/music-app/snap-devmode
Merge into: lp:music-app
Diff against target: 153 lines (+113/-2)
3 files modified
CMakeLists.txt (+2/-2)
snap/music-app.wrapper (+12/-0)
snap/snapcraft.yaml (+99/-0)
To merge this branch: bzr merge lp:~ahayzen/music-app/snap-devmode
Reviewer Review Type Date Requested Status
Renato Araujo Oliveira Filho (community) Approve
Jenkins Bot continuous-integration Approve
Music App Developers Pending
Review via email: mp+321855@code.launchpad.net

Commit message

* Add snap packaging for the music-app to run in devmode (it assumes mediascanner is running on the host)

Description of the change

* Add snap packaging for the music-app to run in devmode (it assumes mediascanner is running on the host)

To post a comment you must log in.
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
lp:~ahayzen/music-app/snap-devmode updated
1036. By Andrew Hayzen

* Remove desktop_file_hint

1037. By Andrew Hayzen

* Add

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

just some inline comments.

lp:~ahayzen/music-app/snap-devmode updated
1038. By Andrew Hayzen

* Be more explicit about gstreamer plugins

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2015-12-03 19:38:49 +0000
3+++ CMakeLists.txt 2017-04-04 15:11:33 +0000
4@@ -40,6 +40,7 @@
5 music-app-content.json DESTINATION ${CMAKE_INSTALL_PREFIX})
6 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE}
7 DESTINATION ${DESKTOP_DIR})
8+ install(FILES ${URLS_FILE} DESTINATION ${URLS_DIR})
9 else(CLICK_MODE)
10 set(DATA_DIR ${CMAKE_INSTALL_DATADIR}/${APP_HARDCODE})
11 set(EXEC ${APP_HARDCODE})
12@@ -53,6 +54,7 @@
13 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE}
14 DESTINATION ${DESKTOP_DIR} RENAME music-app.desktop)
15 install(FILES music-app-content.json DESTINATION ${CMAKE_INSTALL_DATADIR}/content-hub/peers/ RENAME music-app)
16+ install(FILES ${URLS_FILE} DESTINATION ${URLS_DIR} RENAME music-app.url-dispatcher)
17 endif(CLICK_MODE)
18
19 file(GLOB_RECURSE I18N_SRC_FILES
20@@ -76,8 +78,6 @@
21 COMMAND LC_ALL=C ${INTLTOOL_MERGE} -d -u ${CMAKE_SOURCE_DIR}/po ${DESKTOP_FILE}.in ${DESKTOP_FILE}
22 )
23
24-install(FILES ${URLS_FILE} DESTINATION ${URLS_DIR})
25-
26 # Tests
27 enable_testing()
28
29
30=== added directory 'snap'
31=== added directory 'snap/mir-libs'
32=== added file 'snap/music-app.wrapper'
33--- snap/music-app.wrapper 1970-01-01 00:00:00 +0000
34+++ snap/music-app.wrapper 2017-04-04 15:11:33 +0000
35@@ -0,0 +1,12 @@
36+#!/bin/sh
37+
38+SNAP_MEDIASCANNER_DIR=$SNAP_USER_DATA/.cache/mediascanner-2.0
39+
40+if [ ! -L $SNAP_MEDIASCANNER_DIR ]; then
41+ rm -f $SNAP_MEDIASCANNER_DIR
42+ ln -s /home/$USER/.cache/mediascanner-2.0 $SNAP_MEDIASCANNER_DIR
43+fi
44+
45+export APP_ID=music-app
46+
47+exec qmlscene $SNAP/usr/share/music-app/app/music-app.qml $@
48
49=== added file 'snap/snapcraft.yaml'
50--- snap/snapcraft.yaml 1970-01-01 00:00:00 +0000
51+++ snap/snapcraft.yaml 2017-04-04 15:11:33 +0000
52@@ -0,0 +1,99 @@
53+name: music-app
54+version: '2.5'
55+summary: A music application for ubuntu
56+description: |
57+ A music application for ubuntu
58+
59+grade: devel # must be 'stable' to release into candidate/stable channels
60+confinement: devmode
61+
62+apps:
63+ music-app:
64+ command: desktop-launch $SNAP/bin/music-app $@
65+ desktop: usr/share/applications/music-app.desktop
66+ plugs:
67+ - home
68+ - mir
69+ - mir-libs
70+ - mpris
71+ - opengl
72+ - pulseaudio
73+ - unity7
74+ - unity8
75+
76+plugs:
77+ mir-libs:
78+ interface: content
79+ content: mir0
80+ target: mir-libs
81+ default-provider: mir-libs
82+
83+ platform:
84+ interface: content
85+ content: ubuntu-app-platform1
86+ target: ubuntu-app-platform
87+ default-provider: ubuntu-app-platform
88+
89+parts:
90+ music-app:
91+ plugin: cmake
92+ source: .
93+ configflags: [-DCMAKE_INSTALL_PREFIX=/usr, -DCLICK_MODE=off]
94+ build-packages:
95+ - cmake
96+ - intltool
97+ stage-packages:
98+ - libgpm2 # otherwise we get errors in the console
99+ # explicitly include the codecs for now
100+ - gstreamer1.0-fluendo-mp3 # to play mp3's
101+ - gstreamer1.0-plugins-bad-faad
102+ - gstreamer1.0-pulseaudio # not in UAP, otherwise we try to use jack-server
103+ prime:
104+ # allow libgpm2
105+ # http://packages.ubuntu.com/xenial/amd64/libgpm2/filelist
106+ - usr/lib/*/libgpm*
107+ # allow libfaad2
108+ # http://packages.ubuntu.com/xenial/amd64/libfaad2/filelist
109+ - usr/lib/*/libfaad*
110+ # allow libgstreamer-plugins-bad
111+ # http://packages.ubuntu.com/xenial-updates/amd64/libgstreamer-plugins-bad1.0-0/filelist
112+ - usr/lib/*/libgstadaptivedemux*
113+ - usr/lib/*/libgstbad*
114+ - usr/lib/*/libgstcodecparsers*
115+ - usr/lib/*/libgstgl*
116+ - usr/lib/*/libgstinsertbin*
117+ - usr/lib/*/libgstmpegts*
118+ - usr/lib/*/libgstplayer*
119+ - usr/lib/*/libgsturidownload*
120+ - usr/lib/*/libgstwayland*
121+ # allow gstreamer1.0-plugins-bad-faad
122+ # http://packages.ubuntu.com/xenial-updates/amd64/gstreamer1.0-plugins-bad-faad/filelist
123+ - usr/lib/*/gstreamer-1.0/libgstfaad*
124+ # allow gstreamer1.0-fluendo-mp3
125+ # http://packages.ubuntu.com/xenial/amd64/gstreamer1.0-fluendo-mp3/filelist
126+ - usr/lib/*/gstreamer-1.0/libgstflump3dec*
127+ # allow gstreamer1.0-pulseaudio
128+ # http://packages.ubuntu.com/xenial-updates/amd64/gstreamer1.0-pulseaudio/filelist
129+ - usr/lib/*/gstreamer-1.0/libgstpulse*
130+
131+ # music-app files
132+ - usr/bin/music-app
133+ - usr/share/applications/music-app.desktop
134+ - usr/share/content-hub/peers/music-app
135+ # - usr/share/locale # for now don't include locale as this doesn't work anyway?
136+ - usr/share/music-app
137+ - usr/share/url-dispatcher/urls/music-app.url-dispatcher
138+
139+ after: [desktop-ubuntu-app-platform]
140+
141+ environment:
142+ source: snap/
143+ plugin: dump
144+ prime:
145+ - bin
146+ - mir-libs
147+ - ubuntu-app-platform
148+ organize:
149+ music-app.wrapper: bin/music-app
150+ after: [music-app]
151+
152
153=== added directory 'snap/ubuntu-app-platform'

Subscribers

People subscribed via source and target branches