Skip to content

Next-Flip/flipper-update-indexer

 
 

Repository files navigation

Flipper Zero Update Indexer and Uploader

Start locally

    INDEXER_FIRMWARE_GITHUB_TOKEN= \
    INDEXER_TOKEN= \
    make run

Clearing:

    make clean

Requests example

Get index

    curl 127.0.0.1:8000/firmware/directory.json

Get latest release

    # format: 127.0.0.1:8000/{directory}/{channel}/{target}/{type}
    # if target contains '/' (slash) replace it by '-' dash symbol
    curl 127.0.0.1:8000/firmware/release/f7/updater_json

Trigger reindex

    curl -H "Token: YOUR_TOKEN" 127.0.0.1:8000/firmware/reindex

Upload files

    curl -L -H "Token: YOUR_TOKEN" \
        -F "branch=drunkbatya/test-spimemmanager" \
        -F "files=@flipper-z-any-core2_firmware-0.73.1.tgz" \
        -F "files=@flipper-z-f7-full-0.73.1.json" \
        127.0.0.1:8000/firmware/uploadfiles

About

Backend indexer for Momentum Firmware update server

Resources

License

Stars

Watchers

Forks

Languages

  • Python 90.5%
  • HTML 4.1%
  • CSS 2.2%
  • JavaScript 1.3%
  • Dockerfile 0.9%
  • Makefile 0.8%
  • Shell 0.2%