Commit 4885b08b authored by Alberto Mardegan's avatar Alberto Mardegan

Add click packaging

parent 14d2d4a6
TOP_SRC_DIR = $$PWD
TOP_BUILD_DIR = $$shadowed($$PWD)
......@@ -2,10 +2,11 @@ PROJECT_VERSION = 0.1
APPLICATION_NAME = "it.mardy.imaginario"
TOP_SRC_DIR = $$PWD
TOP_BUILD_DIR = $${TOP_SRC_DIR}/$(BUILD_DIR)
INSTALL_PREFIX = $${TOP_BUILD_DIR}/click
CONFIG(qtc) {
INSTALL_PREFIX = /
} else {
INSTALL_PREFIX = $${TOP_BUILD_DIR}/click
}
CLICK_ARCH = $$system("dpkg-architecture -qDEB_BUILD_ARCH")
include(coverage.pri)
This diff is collapsed.
{
"policy_groups": [
"content_exchange",
"content_exchange_source"
],
"policy_version": 1.2
}
{
"destination": [
"pictures"
],
"share": [
"pictures"
]
}
[Desktop Entry]
Name=Imaginario
Exec=./bin/$${TARGET}
Icon=imaginario.svg
Terminal=false
Type=Application
X-Ubuntu-Touch=true
{
\"description\": \"Photo manager\",
\"framework\": \"ubuntu-sdk-14.10-qml\",
\"hooks\": {
\"imaginario\": {
\"apparmor\": \"imaginario.apparmor\",
\"content-hub\": \"imaginario.content-hub\",
\"desktop\": \"imaginario.desktop\"
}
},
\"architecture\": \"$${CLICK_ARCH}\",
\"maintainer\": \"Alberto Mardegan <info@mardy.it>\",
\"name\": \"it.mardy.imaginario\",
\"title\": \"Imaginario\",
\"version\": \"$${PROJECT_VERSION}-0\"
}
......@@ -10,3 +10,27 @@ click.commands = "click build click"
QMAKE_EXTRA_TARGETS += click
include(common-config.pri)
CLICK_DIR = $${INSTALL_PREFIX}
icon.files = data/imaginario.svg
icon.path = $${CLICK_DIR}
INSTALLS += icon
QMAKE_SUBSTITUTES += data/ubuntu-touch/imaginario.desktop.in
desktop.files = data/ubuntu-touch/imaginario.desktop
desktop.path = $${CLICK_DIR}
INSTALLS += desktop
apparmor.files = data/ubuntu-touch/imaginario.apparmor
apparmor.path = $${CLICK_DIR}
INSTALLS += apparmor
contenthub.files = data/ubuntu-touch/imaginario.content-hub
contenthub.path = $${CLICK_DIR}
INSTALLS += contenthub
QMAKE_SUBSTITUTES += data/ubuntu-touch/manifest.json.in
manifest.files = data/ubuntu-touch/manifest.json
manifest.path = $${CLICK_DIR}
INSTALLS += manifest
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment