UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How do I sign a click package after building it?

    Scheduled Pinned Locked Moved App Development
    4 Posts 2 Posters 446 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • T Offline
        tahayassen
        last edited by

        I ssh'd into my phone and created a package:

        phablet@ubuntu-phablet:~/Downloads$ click build voipmssmsnotifier/
        Successfully built package in './voipmssmsnotifier.yourname_1.0.0_armhf.click'.
        phablet@ubuntu-phablet:~/Downloads$ pkcon install-local voipmssmsnotifier.yourname_1.0.0_armhf.click
        Installing files              [=========================]         
        Finished                      [=========================]         
        Installing files              [=========================]         
        Starting                      [=========================]         
        Finished                      [=========================]         
        Fatal error: /home/phablet/Downloads/voipmssmsnotifier.yourname_1.0.0_armhf.click failed to install.
        Cannot install /home/phablet/Downloads/voipmssmsnotifier.yourname_1.0.0_armhf.click: Signature verification error: debsig: Origin Signature check failed. This deb might not be signed.
        

        However, shown in the above output, it won't install because the click package is not signed. I don't see anything about it in the docs here.

        1 Reply Last reply Reply Quote 0
        • T Offline
          tahayassen
          last edited by

          Apparently you can install it via: pkcon install-local --allow-untrusted something.click

          I learned this from the matrix chat:

          #ut_appdev:matrix.org

          #ubad_discussion:matrix.org

          AppLeeA 1 Reply Last reply Reply Quote 1
          • AppLeeA Online
            AppLee @tahayassen
            last edited by AppLee

            @tahayassen I'm not sure, I will have to search a bit to validate.
            But signed apps are available from the OpenStore, I don't remember doing anything else than allowing developer mode to test my apps.

            Do you use a private/public key to authenticate via SSH ?

            [Edit] You can also use clickable to push the click to your phone, it does all the magic

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              tahayassen @AppLee
              last edited by

              @AppLee I'm actually not using the OpenStore at all but just doing all my development work locally at the moment. I'm not using clickable because my app cannot be cross-compiled. It relies on a rust dbus crate that doesn't allow cross-compiling (see https://github.com/diwic/dbus-rs/blob/master/libdbus-sys/cross_compile.md for details).

              1 Reply Last reply Reply Quote 0
              • First post
                Last post