diff --git a/stellarium.pro b/stellarium.pro index 63cce76..1d30045 100644 --- a/stellarium.pro +++ b/stellarium.pro @@ -35,9 +35,21 @@ QMAKE_CXXFLAGS_RELEASE += -Ofast UBUNTU_TOUCH { DEFINES += Q_OS_UBUNTU_TOUCH + + target.path = / INSTALLS += target + # figure out the current build architecture + CLICK_ARCH=$$system(dpkg-architecture -qDEB_HOST_ARCH) + + + # substitute the architecture in the manifest file + QMAKE_SUBSTITUTES += $$PWD/ubuntu_touch/manifest.json.in + manifest.files = ubuntu_touch/manifest.json + manifest.path = / + INSTALLS += manifest + click_files.path = / click_files.files = $$PWD/ubuntu_touch/* diff --git a/ubuntu_touch/manifest.json b/ubuntu_touch/manifest.json deleted file mode 100644 index b1176ed..0000000 --- a/ubuntu_touch/manifest.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "me.lduboeuf.stellarium", - "description": "Stellarium", - "architecture": "armhf", - "title": "stellarium", - "hooks": { - "stellarium": { - "apparmor": "stellarium.apparmor", - "desktop": "stellarium.desktop" - } - }, - "version": "0.2.3", - "maintainer": "lionel ", - "framework" : "ubuntu-sdk-16.04" -} diff --git a/ubuntu_touch/manifest.json.in b/ubuntu_touch/manifest.json.in new file mode 100644 index 0000000..3f60b11 --- /dev/null +++ b/ubuntu_touch/manifest.json.in @@ -0,0 +1,15 @@ +{ + \"name\": \"me.lduboeuf.stellarium\", + \"description\": \"Stellarium\", + \"architecture\": \"$${CLICK_ARCH}\", + \"title\": \"stellarium\", + \"hooks\": { + \"stellarium\": { + \"apparmor\": \"stellarium.apparmor\", + \"desktop\": \"stellarium.desktop\" + } + }, + \"version\": \"0.2.3\", + \"maintainer\": \"lionel \", + \"framework\" : \"ubuntu-sdk-16.04\" +}