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

    arm64 build within IDE atom and clickable plugin

    Scheduled Pinned Locked Moved App Development
    7 Posts 3 Posters 692 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.
      • W Offline
        wilfridd
        last edited by

        Hi,
        I'm working on having arm64 build for Openradio. I succeeded to simply build it within the terminal and this command :

        • clickable build --arch arm64

        Then I installed the package with UT tweak tool and that's ok.
        I noticed that the Openstore App shows that it conflicts with the stable version, which is btw the armhf version. Not a big deal, but not so clean either.

        Now I'd like the make the relevant changes in the source code so I can compile it within my IDE setup (Atom+click plugin) and finally push a PR to the maintainer who will make it available for download in the Openstore.
        I tried to add this in the file "clickable.json" :

        • "build_args": ["arch=arm64"],

        but atom still compile for the armhf version... So what should I do ?

        Sorry for being so noob with such a question and as always, thanks for your help!

        AppLeeA arubislanderA 2 Replies Last reply Reply Quote 0
        • AppLeeA Offline
          AppLee @wilfridd
          last edited by

          @nauvpp
          To avoid the conflict with the official on you should change the developer tag in the app name.
          For example: openradio.myApp
          Or at least change the version number so the Open Store can understand what's happening.

          I do not understand the part with relevant changes.
          Most of the time compiling for arm64 is enough.
          But if you need to make modifications to the code, then just edit it... ?! πŸ€”
          I told you I missed something ; probably I need some sleep πŸ˜„

          W 1 Reply Last reply Reply Quote 0
          • W Offline
            wilfridd @AppLee
            last edited by

            @applee Hi, thanks for your reply.
            Yep, I can edit the source but, I don't know what to do. I tried to change the file clickable.json using my IDE ( atom) to tell the compiler some arm64 args but it does not have any impact.
            Hopefully I could compile arm64 directly from the source code folder with clickable...

            AppLeeA 1 Reply Last reply Reply Quote 0
            • AppLeeA Offline
              AppLee @wilfridd
              last edited by AppLee

              @nauvpp
              Ok, what I would do is:

              • first: change the version or app name so you can test it without conflict with the official app
              • then: edit the clickable plugin to modify the command.
                I did so to force --ssh <ip_address> but you can force the --arch arm64 option instead

              Edit: I don't have the steps to change the plugin in top of my head but I found it on the documentation.
              Edit: I found the information from an old post

              W 2 Replies Last reply Reply Quote 0
              • W Offline
                wilfridd @AppLee
                last edited by

                @applee ok I'll give it a try. Thank you very much! πŸ‘

                1 Reply Last reply Reply Quote 1
                • arubislanderA Online
                  arubislander @wilfridd
                  last edited by

                  @nauvpp If all that is needed to achieve an arm64 version of the app is adding -a arm64 to clickable build then there are no source code changes necessary in the repo.

                  I checked and there is no automated build configured for this project. This means that the maintainer builds and uploads the click manually.

                  So I am afraid you need to ask the maintainer to build an arm64 version manually.
                  Alternatively you could research adding automated build to the project by way of a .gitab-ci.yml.

                  πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                  Happily running Ubuntu Touch
                  Google Pixel 3a (20.04 DEV)
                  JingPad (24.04 preview)
                  Meizu Pro 5 (16.04 DEV)

                  1 Reply Last reply Reply Quote 0
                  • W Offline
                    wilfridd @AppLee
                    last edited by

                    @applee hi, I finally updated atom clickable plugin and clicklable v7 and everything is fine! I can choose suitable target architecture.

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