raspberrypi / rpi-imager

The home of Raspberry Pi Imager, a user-friendly tool for creating bootable media for Raspberry Pi devices.
https://www.raspberrypi.com/software
Other
1.64k stars 250 forks source link

[OS Request] OctoPi #162

Closed guysoft closed 3 years ago

guysoft commented 3 years ago

Hey, I am the maintainer of OctoPi, and a few other distros since I am also the creator of CustomPiOS. So this is the first attempt our of expected several. I got a request to add OctoPi to rpi-imager on my issue tracker https://github.com/guysoft/OctoPi/issues/726

I can't see any docs on how to add an image. So I am copying more or less what I saw in #83

Note that it should go in the Other spesific purpose OS section.

{
    "os_list": [
        {
            "name": "OctoPi",
            "description": "A Raspberry Pi distribution for 3d printers. Ships OctoPrint out-of-the-box.",
            "icon": "https://raw.githubusercontent.com/guysoft/OctoPi/devel/media/rpi-imager-OctoPi.png",
            "subitems_url": "http://unofficialpi.org/rpi-imager/rpi-imager-octopi.json"
        }
    ]
}

And the json file is in place: http://unofficialpi.org/rpi-imager/rpi-imager-octopi.json

Note: We are expecting next release to also include a 64bit builds which is already in the nightly. If there is a section to add in advance it might also be helpful

ghollingworth commented 3 years ago

The icon needs to be 40x40 and the text needs to be limited to fit into the box. You can test it with rpi-imager by copying a local version of the global os_list_imagingutility.json and running it with the --repo command-line option:

C:\Program Files (x86)\Raspberry Pi Imager>rpi-imager.exe --repo os_list_imagingutility.json

image

guysoft commented 3 years ago

Fixed json in the original request.

Here is how it looks.

Also I warmly recommend adding this to the README file in the repo, or to the wiki page on this githubl, otherwise I expect you will be repeating yourself.

Screenshot_20210311_121202

Screenshot_20210311_121346

ghollingworth commented 3 years ago

Does the one image support all Raspberry Pi devices? In which case I'll probably add it without the submenu

guysoft commented 3 years ago

All current Raspberry Pi devices are supported in that image.

ghollingworth commented 3 years ago

Ok, approved for adding, should appear sometime today...

guysoft commented 3 years ago

Looks like its there now, thanks!

I hope to automate the json stuff here now and also post other CustomPiOS popular distos.

Screenshot_20210311_173308

guysoft commented 3 years ago

@ghollingworth Hey, sorry to bug again, but @foosel has pointed out to me that the url should be HTTPS and not HTTP in order to avoid man-in-the-middle attacks.

So it should be:


{
    "os_list": [
        {
            "name": "OctoPi",
            "description": "A Raspberry Pi distribution for 3d printers. Ships OctoPrint out-of-the-box.",
            "icon": "https://raw.githubusercontent.com/guysoft/OctoPi/devel/media/rpi-imager-OctoPi.png",
            "subitems_url": "https://unofficialpi.org/rpi-imager/rpi-imager-octopi.json"
        }
    ]
}```
XECDesign commented 3 years ago

Should be using HTTPS now.

guysoft commented 3 years ago

Works, closing