Updating apps to 16.04
This will just be a quick "how-to" upgrade your apps to 16.04
So, first off you need to update your manifest, here you need to set
Next and important step (without this your app will fail to install), you need to update your .apparmor file, here you need to set
Here is an git diff how i did this on the ubports app:
diff --git a/com.ubuntu.ubports.apparmor b/com.ubuntu.ubports.apparmor index 06ff04c..5f9e005 100644 --- a/com.ubuntu.ubports.apparmor +++ b/com.ubuntu.ubports.apparmor @@ -7,5 +7,5 @@ "location", "content_exchange" ], - "policy_version": 1.3 + "policy_version": 16.04 } diff --git a/manifest.json.in b/manifest.json.in index 10c8bc7..8af6c2d 100644 --- a/manifest.json.in +++ b/manifest.json.in @@ -10,5 +10,5 @@ }, "version": "1.6", "maintainer": "UBports <firstname.lastname@example.org>", - "framework" : "ubuntu-sdk-15.04.6" + "framework" : "ubuntu-sdk-16.04" }
Finally build for 16.04 using clickable
clickable -k 16.04
That's it, your app should work in 16.04 :)
Also for apps using pyotherside you no longer need to include pyotherside and libpython3.4m in your click package. These are now available in the rootfs, so make sure to remove them from your click before building for xenial.
doniks last edited by
@mariogrip will the click work on 15.04 still afterwards? I assume it won't. Do we have a strategy how to manage this from app store side? Should developers publish two builds? Do they have to have different ids? Will users see both?
chris last edited by
Is there a way I can review the package with clickable to upload to OpenStore?
This is what I am currently getting when I try it: "This app needs to be reviewed manually, please check you app using the click-review command"
advocatux last edited by advocatux
@zubozrout you've posted the answer to your question, you need to run
click-reviewagainst your package :)
@advocatux Yeah I know, but that package is not available for 18.04, right?
advocatux last edited by
@zubozrout no, I don't think so
@zubozrout something like this should work
$ docker run -it -v $PATH_TO_CLICK_DIR:/clickdir clickable/ubuntu-sdk:16.04-amd64 bash $ apt install click-reviewers-tools $ cd /clickdir $ click-review my.click
@danchapman Thanks a lot :).
So now I have this: - lint:framework
'ubuntu-sdk-16.04' is not a supported framework
@zubozrout ahh i wonder if click-review was updated in the ubports archive to allow the new framework. Try dropping the framework to a 15.04 one and run click-review to see what the real errors are and then bump it back up before pushing to the store as the framework most likely isn't the issue.
zubozrout last edited by zubozrout
@danchapman Good idea to test this. It looks like I get the same error for 15.04 (also tested with 15.04.5 which was the framework I originally used for the project).
Ok, so there is this ppa https://launchpad.net/~bhdouglass/+archive/ubuntu/clickable with the latest forked package that is even available for bionic :). And it has xenial app support. With that reviewing the packages should work correctly.