Coder Social home page Coder Social logo

release-scripts's Introduction

Description

The scripts in the repository are used to:

  • generate the releases.json file used in the USB-SD-Creator and in the addon's update feature present in LibreELEC 12.0+
  • generate json file used for Raspberry Pi Imager
  • manage stale image files in the release testing archive

releases.py

releases.py generates json formatted output with the filenames, file sizes, sha256 sums, modification timestamp, and the directory subpath the file resides in.

For example:

{
  "LibreELEC-10.0": {
    "canary": 21,
    "prettyname_regex": "^LibreELEC-.*-([0-9]+\\.[0-9]+\\-.*-[0-9]{8}-[0-9a-z]{7})",
    "project": {
      "RPi2.arm": {
        "displayName": "Raspberry Pi 2 and 3",
        "releases": {
          "0": {
            "file": {
              "name": "LibreELEC-RPi2.arm-10.0.2.tar",
              "sha256": "3c4f6b848f4e5d700d4389fdd08f9a99cfc1a3c8791d9d803584e4197c69cb19",
              "size": "129945600",
              "subpath": "10.0/RPi",
              "timestamp": "2022-03-05 18:17:34"
            },
            "image": {
              "name": "LibreELEC-RPi2.arm-10.0.2.img.gz",
              "sha256": "9befdc8f42a663e57d7e1e24230fa11354a25cf003ef352c9d3ec576919bea90",
              "size": "126804594",
              "subpath": "10.0/RPi",
              "timestamp": "2022-03-05 18:17:59"
            }
          }
        }
      }
    },
    "url": "https://releases.libreelec.tv/"
  },

For the full output see, https://releases.libreelec.tv/releases.json

How to run

python releases.py -i /path/to/releases -u http://releases.yoururl.com/ -o /path/to/releases -v

-i path to releases

-u top url where the releases are downloadable (http://releases.yoururl.com/my_release-1.1.tar)

-o path to folder where releases.json is located

-v verbose output

release-scripts's People

Contributors

antonlacon avatar chewitt avatar cvh avatar lrusak avatar milhousevh avatar sky42src avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.