Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I noticed that Ubuntu SDK recently had some updates and it installed a program named "Click". I would like to know what they are and how to use them.

Also, would they make Debian packaging easier?

share|improve this question

2 Answers 2

up vote 16 down vote accepted

Click packages are the new packaging format used in Ubuntu Touch, and by Ubuntu 14.10, on the desktop version of Ubuntu as well.

Some of the features they provide are:

  • Simplified packaging for the developer. The Ubuntu SDK can automatically create Click packages of your Ubuntu Touch apps. If you want to create your own, the format is very simple, consisting of two files, manifest.json and <app-name>.json.

    The manifiest.json file is the actual package definition and looks like this:

    {
        "description": "Your tasks, every device, everywhere. Create and synchronize tasks using Ubuntu One, and connect to your boards in Trello.",
        "framework": "ubuntu-sdk-13.10",
        "hooks": {
            "ubuntu-tasks": {
                "apparmor": "ubuntu-tasks.json",
                "desktop": "ubuntu-tasks.desktop"
            }
        },
        "maintainer": "Michael Spencer <sonrisesoftware@gmail.com>",
        "name": "com.ubuntu.developer.mdspencer.ubuntu-tasks",
        "title": "Ubuntu Tasks",
        "version": "0.5"
    }
    

    The <app.name>.json file is the security profile for your app and looks like this:

    {
        "policy_groups": [
            "networking"
        ],
        "policy_version": 1
    }
    

    To build your package, you can either use the Ubuntu SDK or by running

    click build .
    

    You can find more information about packaging your app here.

  • The ability to run under confinement. What this means is that the app is prevented from doing bad things. It can only access its own private directory and access features that the user allows the app to use. This means that Click packages are very safe and the review process for publishing them is much simpler.

Once you've packaged your app, you can submit your application to the Click App Store. The review process is vary simple and will be completeled usually within a few hours. Once reviewed, your app will be available for installation from any device runnign Ubuntu Touch.

Would they make Debain packaging easier?

Yes and no. Debian packaging is completely different. However, if your app is made with the Ubuntu SDK, you don't need to use Debian packaging and can instead use Click packaging, which is much easier to use and much safer for the end user.

Here are some useful links for more information:

share|improve this answer

The short answer is that they are packages designed to work better on mobile devices.

This is still VERY new and I'm going to wait awhile myself before I start using them (if I ever do).

Someone wrote an article on them awhile ago: http://iloveubuntu.net/click-package-012-landed-ubuntu-1310s-universe-command-line-initial-functionality

share|improve this answer
    
This link does not describe the thing in detail. Lets wait for the Ubuntu community to answer the question. –  Archisman Panigrahi Aug 27 '13 at 16:35
    
It's in version 0.1.2; I wouldn't hold my breath on that just yet if you get my meaning. –  krowe Aug 27 '13 at 16:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.