Skip to content

Latest commit

 

History

History
56 lines (49 loc) · 1.37 KB

README.md

File metadata and controls

56 lines (49 loc) · 1.37 KB

Flipper Zero Update Indexer and Uploader

Start localy

    INDEXER_FIRMWARE_GITHUB_TOKEN= \
    INDEXER_QFLIPPER_GITHUB_TOKEN= \
    INDEXER_GITHUB_ORGANIZATION= \
    INDEXER_QFLIPPER_GITHUB_REPO= \
    INDEXER_FIRMWARE_GITHUB_REPO= \
    INDEXER_BLACKMAGIC_GITHUB_TOKEN= \
    INDEXER_BLACKMAGIC_GITHUB_REPO= \
    INDEXER_TOKEN= \
    INDEXER_BASE_URL= \
    INDEXER_FILES_DIR= \
    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
    curl 127.0.0.1:8000/qFlipper/release/windows-amd64/installer

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 "[email protected]" \
        127.0.0.1:8000/firmware/uploadfiles

Upload files without reindex

    curl -L -H "Token: YOUR_TOKEN" \
        -F "[email protected]" \
        127.0.0.1:8000/toolchain/uploadfilesraw