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

Subscribers

People subscribed via source and target branches