Skip to content

Arduino packaging must be in a single folder #17

@majenkotech

Description

@majenkotech

A requirement for using the arduino-cli is that the compiler archive must contain only one root folder. At the moment the compiler is packaged as a tar file from inside the top level folder, rather than including that top level folder.

An example of how it should be:

$ tar -ztvf pic32-tools-143-3-Linux32-image.tar.gz 
drwxr-xr-x matt/matt         0 2017-04-27 21:44 pic32-tools-143/
drwxr-xr-x matt/matt         0 2017-04-27 21:44 pic32-tools-143/lib/
drwxr-xr-x matt/matt         0 2017-04-27 21:44 pic32-tools-143/lib/gcc/
drwxr-xr-x matt/matt         0 2017-04-27 21:44 pic32-tools-143/lib/gcc/pic32mx/
drwxr-xr-x matt/matt         0 2017-04-27 21:44 pic32-tools-143/lib/gcc/pic32mx/4.8.3/
drwxr-xr-x matt/matt         0 2017-04-27 21:44 pic32-tools-143/lib/gcc/pic32mx/4.8.3/micromips/
-rw-r--r-- matt/matt       795 2017-03-13 17:01 pic32-tools-143/lib/gcc/pic32mx/4.8.3/micromips/crtn.o
... etc ...

Converting one of the existing builds is easy enough:

$ mkdir pic32-tools-143
$ tar -C pic32-tools-143 -zxf pic32-tools-143-3-Linux32-image.tar.gz
$ tar -zcf pic32-tools-143-3-Linux32-image.tar.gz pic32-tools-143

And of course the file size and SHA-256 checksum will change so the JSON file will need to be updated with those new details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions