Merge lp:~dpm/reminders-app/qtc-changes into lp:reminders-app

Proposed by David Planella
Status: Merged
Approved by: Riccardo Padovani
Approved revision: 106
Merged at revision: 103
Proposed branch: lp:~dpm/reminders-app/qtc-changes
Merge into: lp:reminders-app
Diff against target: 147 lines (+34/-43)
4 files modified
CMakeLists.txt (+23/-24)
apparmor.json (+1/-1)
click/CMakeLists.txt (+0/-8)
manifest.json (+10/-10)
To merge this branch: bzr merge lp:~dpm/reminders-app/qtc-changes
Reviewer Review Type Date Requested Status
Riccardo Padovani Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+214951@code.launchpad.net

Commit message

Fix Qt Creator running and packaging issues

Description of the change

Fixes launching from Qt Creator. The reason it doesn't work is because it's looking for a .desktop file named $PROJECT.desktop, whereas our file is named $PROJECT_$APP.desktop. This is something that will need to be fixed at some point on Qt Creator, but in the meantime we can work around it by removing the $APP suffix.

Some other fixes include the manifest, to adapt it to the location and the format where Qt Creator expects it, so that a click package can be created. This has unfortunately meant the values in the manifest are now hardcoded.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
lp:~dpm/reminders-app/qtc-changes updated
106. By David Planella

Fix manifest installation for debian packages

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Riccardo Padovani (rpadovani) wrote :

Works as expected, thanks!

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 2014-02-15 17:06:12 +0000
3+++ CMakeLists.txt 2014-04-09 19:09:30 +0000
4@@ -11,7 +11,7 @@
5 option(CLICK_MODE "Installs to a contained location" off)
6
7 set(APP_NAME reminders)
8-set(DESKTOP_FILE "${PROJECT_NAME}_${APP_NAME}.desktop")
9+set(DESKTOP_FILE "${PROJECT_NAME}.desktop")
10 set(ICON ${APP_NAME}.png)
11 set(AUTOPILOT_DIR reminders)
12 set(APP_HARDCODE reminders)
13@@ -20,40 +20,40 @@
14
15 if(CLICK_MODE)
16 if(NOT DEFINED BZR_SOURCE)
17- set(BZR_SOURCE "lp:${APP_HARDCODE}")
18- message("-- Setting BZR_SOURCE to ${BZR_SOURCE}")
19+ set(BZR_SOURCE "lp:${APP_HARDCODE}")
20+ message("-- Setting BZR_SOURCE to ${BZR_SOURCE}")
21 endif(NOT DEFINED BZR_SOURCE)
22 execute_process(
23- COMMAND dpkg-architecture -qDEB_HOST_MULTIARCH
24- OUTPUT_VARIABLE ARCH_TRIPLET
25- OUTPUT_STRIP_TRAILING_WHITESPACE
26+ COMMAND dpkg-architecture -qDEB_HOST_MULTIARCH
27+ OUTPUT_VARIABLE ARCH_TRIPLET
28+ OUTPUT_STRIP_TRAILING_WHITESPACE
29 )
30 set(CMAKE_INSTALL_PREFIX /)
31 set(QT_IMPORTS_DIR "/lib/${ARCH_TRIPLET}")
32- set(BIN_DIR /lib/${ARCH_TRIPLET}/bin)
33- set(DATA_DIR /)
34- set(DESKTOP_DIR ${DATA_DIR})
35+ set(BIN_DIR /lib/${ARCH_TRIPLET}/bin)
36+ set(DATA_DIR /)
37+ set(DESKTOP_DIR ${DATA_DIR})
38+ install(FILES manifest.json apparmor.json DESTINATION ${CMAKE_INSTALL_PREFIX})
39 else(CLICK_MODE)
40- # components PATH
41- execute_process(
42- COMMAND qmake -query QT_INSTALL_QML
43- OUTPUT_VARIABLE QT_IMPORTS_DIR
44- OUTPUT_STRIP_TRAILING_WHITESPACE
45- )
46- set(DATA_DIR ${CMAKE_INSTALL_DATADIR}/${APP_HARDCODE})
47- set(ICON "${CMAKE_INSTALL_PREFIX}/${DATA_DIR}/${ICON}")
48- set(DESKTOP_DIR ${CMAKE_INSTALL_DATADIR}/applications)
49+ # components PATH
50+ execute_process(
51+ COMMAND qmake -query QT_INSTALL_QML
52+ OUTPUT_VARIABLE QT_IMPORTS_DIR
53+ OUTPUT_STRIP_TRAILING_WHITESPACE
54+ )
55+ set(DATA_DIR ${CMAKE_INSTALL_DATADIR}/${APP_HARDCODE})
56+ set(ICON "${CMAKE_INSTALL_PREFIX}/${DATA_DIR}/${ICON}")
57+ set(DESKTOP_DIR ${CMAKE_INSTALL_DATADIR}/applications)
58 endif(CLICK_MODE)
59
60 file(GLOB_RECURSE I18N_SRC_FILES
61- RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
62- src/app/qml/*.qml *.desktop.in)
63+ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
64+ src/app/qml/*.qml *.desktop.in)
65 list(SORT I18N_SRC_FILES)
66
67-
68 file(GLOB SRC_FILES
69- RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
70- *.qml *.js *.png *.js)
71+ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
72+ *.qml *.js *.png *.js)
73 install(FILES ${SRC_FILES} DESTINATION ${DATA_DIR})
74
75 configure_file(${DESKTOP_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE})
76@@ -62,7 +62,6 @@
77 # Tests
78 enable_testing()
79
80-add_subdirectory(click)
81 add_subdirectory(po)
82 add_subdirectory(tests)
83 add_subdirectory(3rdParty)
84
85=== renamed file 'click/apparmor.json' => 'apparmor.json'
86--- click/apparmor.json 2014-02-16 10:51:11 +0000
87+++ apparmor.json 2014-04-09 19:09:30 +0000
88@@ -5,5 +5,5 @@
89 "content_exchange",
90 "audio"
91 ],
92- "policy_version": 1
93+ "policy_version": 1.1
94 }
95
96=== removed directory 'click'
97=== removed file 'click/CMakeLists.txt'
98--- click/CMakeLists.txt 2014-01-19 13:59:12 +0000
99+++ click/CMakeLists.txt 1970-01-01 00:00:00 +0000
100@@ -1,8 +0,0 @@
101-if(CLICK_MODE)
102- if(NOT BZR_REVNO)
103- set(BZR_REVNO "latest")
104- endif(NOT BZR_REVNO)
105- configure_file(manifest.json.in ${CMAKE_CURRENT_BINARY_DIR}/manifest.json)
106- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/manifest.json apparmor.json
107- DESTINATION ${CMAKE_INSTALL_PREFIX})
108-endif(CLICK_MODE)
109
110=== renamed file 'com.ubuntu.reminders_reminders.desktop.in' => 'com.ubuntu.reminders.desktop.in'
111=== renamed file 'click/manifest.json.in' => 'manifest.json'
112--- click/manifest.json.in 2014-02-10 14:36:59 +0000
113+++ manifest.json 2014-04-09 19:09:30 +0000
114@@ -1,22 +1,22 @@
115 {
116 "description": "Ubuntu Reminders app, powered by Evernote",
117- "framework": "ubuntu-sdk-13.10",
118+ "framework": "ubuntu-sdk-14.04-dev1",
119 "architecture": "armhf",
120 "hooks": {
121- "@APP_NAME@": {
122+ "reminders": {
123 "apparmor": "apparmor.json",
124- "desktop": "@DESKTOP_FILE@"
125+ "desktop": "com.ubuntu.reminders.desktop"
126 }
127 },
128 "maintainer": "Ubuntu Reminders app developers <ubuntu-phone@lists.launchpad.net>",
129- "name": "@PROJECT_NAME@",
130+ "name": "com.ubuntu.reminders",
131 "title": "Reminders",
132- "version": "0.4.@BZR_REVNO@",
133+ "version": "0.5",
134 "x-source": {
135- "vcs-bzr": "@BZR_SOURCE@",
136- "vcs-bzr-revno": "@BZR_REVNO@"
137+ "vcs-bzr": "lp:reminders",
138+ "vcs-bzr-revno": "latest"
139 },
140 "x-test": {
141- "autopilot": "@AUTOPILOT_DIR@"
142- }
143-}
144+ "autopilot": "reminders"
145+ }
146+}
147\ No newline at end of file

Subscribers

People subscribed via source and target branches