From 944c40d5ea755f997681dd76652a80709bbd69eb Mon Sep 17 00:00:00 2001 From: William Vinnicombe Date: Fri, 6 Dec 2024 12:10:30 +0000 Subject: [PATCH] Add modifiers to version bundles Allows modifying versions of tools for specific platforms, for example use 13.2.Rel1 toolchain instead of 13.3.Rel1 on Intel MacOS, as 13.3.Rel1 is linked against homebrew (https://forums.raspberrypi.com/viewtopic.php?t=380395) --- data/0.18.0/examples.json | 1490 +++++++++++++++++++++++++++ data/0.18.0/github-cache.json | 979 ++++++++++++++++++ data/0.18.0/supportedToolchains.ini | 60 ++ data/0.18.0/versionBundles.json | 35 + scripts/genExamples.py | 117 ++- src/utils/sharedConstants.mts | 2 +- src/utils/versionBundles.mts | 38 +- 7 files changed, 2642 insertions(+), 79 deletions(-) create mode 100644 data/0.18.0/examples.json create mode 100644 data/0.18.0/github-cache.json create mode 100644 data/0.18.0/supportedToolchains.ini create mode 100644 data/0.18.0/versionBundles.json diff --git a/data/0.18.0/examples.json b/data/0.18.0/examples.json new file mode 100644 index 0000000..f70bfb2 --- /dev/null +++ b/data/0.18.0/examples.json @@ -0,0 +1,1490 @@ +{ + "hello_anything": { + "path": "binary_info/hello_anything", + "name": "hello_anything", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "blink_any": { + "path": "binary_info/blink_any", + "name": "blink_any", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_usb": { + "path": "hello_world/usb", + "name": "hello_usb", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_serial": { + "path": "hello_world/serial", + "name": "hello_serial", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pwm_led_fade": { + "path": "pwm/led_fade", + "name": "pwm_led_fade", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico2" + ], + "supportRiscV": true + }, + "hello_pwm": { + "path": "pwm/hello_pwm", + "name": "hello_pwm", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pwm_measure_duty_cycle": { + "path": "pwm/measure_duty_cycle", + "name": "pwm_measure_duty_cycle", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_48MHz": { + "path": "clocks/hello_48MHz", + "name": "hello_48MHz", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_resus": { + "path": "clocks/hello_resus", + "name": "hello_resus", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "clocks_detached_clk_peri": { + "path": "clocks/detached_clk_peri", + "name": "clocks_detached_clk_peri", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_gpout": { + "path": "clocks/hello_gpout", + "name": "hello_gpout", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "uart_advanced": { + "path": "uart/uart_advanced", + "name": "uart_advanced", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "lcd_uart": { + "path": "uart/lcd_uart", + "name": "lcd_uart", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_uart": { + "path": "uart/hello_uart", + "name": "hello_uart", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "dht": { + "path": "gpio/dht_sensor", + "name": "dht", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_7segment": { + "path": "gpio/hello_7segment", + "name": "hello_7segment", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_gpio_irq": { + "path": "gpio/hello_gpio_irq", + "name": "hello_gpio_irq", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "blink": { + "path": "blink", + "name": "blink", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "blink_simple": { + "path": "blink_simple", + "name": "blink_simple", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_watchdog": { + "path": "watchdog/hello_watchdog", + "name": "hello_watchdog", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_hub75": { + "path": "pio/hub75", + "name": "pio_hub75", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_pwm": { + "path": "pio/pwm", + "name": "pio_pwm", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico2" + ], + "supportRiscV": true + }, + "pio_manchester_encoding": { + "path": "pio/manchester_encoding", + "name": "pio_manchester_encoding", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_differential_manchester": { + "path": "pio/differential_manchester", + "name": "pio_differential_manchester", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_addition": { + "path": "pio/addition", + "name": "pio_addition", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_onewire": { + "path": "pio/onewire", + "name": "pio_onewire", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_squarewave": { + "path": "pio/squarewave", + "name": "pio_squarewave", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_squarewave_div_sync": { + "path": "pio/squarewave", + "name": "pio_squarewave_div_sync", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_clocked_input": { + "path": "pio/clocked_input", + "name": "pio_clocked_input", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_blink": { + "path": "pio/pio_blink", + "name": "pio_blink", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_quadrature_encoder_substep": { + "path": "pio/quadrature_encoder_substep", + "name": "pio_quadrature_encoder_substep", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_quadrature_encoder": { + "path": "pio/quadrature_encoder", + "name": "pio_quadrature_encoder", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_ws2812": { + "path": "pio/ws2812", + "name": "pio_ws2812", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_uart_rx": { + "path": "pio/uart_rx", + "name": "pio_uart_rx", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_uart_rx_intr": { + "path": "pio/uart_rx", + "name": "pio_uart_rx_intr", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_logic_analyser": { + "path": "pio/logic_analyser", + "name": "pio_logic_analyser", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_ir_loopback": { + "path": "pio/ir_nec/ir_loopback", + "name": "pio_ir_loopback", + "libPaths": [ + "pio/ir_nec/nec_receive_library", + "pio/ir_nec/nec_transmit_library" + ], + "libNames": [ + "nec_receive_library", + "nec_transmit_library" + ], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_i2c_bus_scan": { + "path": "pio/i2c", + "name": "pio_i2c_bus_scan", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_spi_flash": { + "path": "pio/spi", + "name": "pio_spi_flash", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_spi_loopback": { + "path": "pio/spi", + "name": "pio_spi_loopback", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_apa102": { + "path": "pio/apa102", + "name": "pio_apa102", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_uart_tx": { + "path": "pio/uart_tx", + "name": "pio_uart_tx", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pio_st7789_lcd": { + "path": "pio/st7789_lcd", + "name": "pio_st7789_lcd", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_pio": { + "path": "pio/hello_pio", + "name": "hello_pio", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico2" + ], + "supportRiscV": true + }, + "picoboard_button": { + "path": "picoboard/button", + "name": "picoboard_button", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico2" + ], + "supportRiscV": true + }, + "picoboard_blinky": { + "path": "picoboard/blinky", + "name": "picoboard_blinky", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico2" + ], + "supportRiscV": true + }, + "hello_divider": { + "path": "divider", + "name": "hello_divider", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "unique_board_id": { + "path": "system/unique_board_id", + "name": "unique_board_id", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "rand": { + "path": "system/rand", + "name": "rand", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_double_tap": { + "path": "system/hello_double_tap", + "name": "hello_double_tap", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "narrow_io_write": { + "path": "system/narrow_io_write", + "name": "narrow_io_write", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "flash_program": { + "path": "flash/program", + "name": "flash_program", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "flash_xip_stream": { + "path": "flash/xip_stream", + "name": "flash_xip_stream", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "flash_ssi_dma": { + "path": "flash/ssi_dma", + "name": "flash_ssi_dma", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w" + ], + "supportRiscV": false + }, + "flash_nuke": { + "path": "flash/nuke", + "name": "flash_nuke", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "flash_cache_perfctr": { + "path": "flash/cache_perfctr", + "name": "flash_cache_perfctr", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w" + ], + "supportRiscV": false + }, + "hello_timer": { + "path": "timer/hello_timer", + "name": "hello_timer", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "timer_lowlevel": { + "path": "timer/timer_lowlevel", + "name": "timer_lowlevel", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "periodic_sampler": { + "path": "timer/periodic_sampler", + "name": "periodic_sampler", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "dev_hid_composite": { + "path": "usb/device/dev_hid_composite", + "name": "dev_hid_composite", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "dev_lowlevel": { + "path": "usb/device/dev_lowlevel", + "name": "dev_lowlevel", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "host_cdc_msc_hid": { + "path": "usb/host/host_cdc_msc_hid", + "name": "host_cdc_msc_hid", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "rtc_alarm": { + "path": "rtc/rtc_alarm", + "name": "rtc_alarm", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w" + ], + "supportRiscV": false + }, + "hello_rtc": { + "path": "rtc/hello_rtc", + "name": "hello_rtc", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w" + ], + "supportRiscV": false + }, + "rtc_alarm_repeat": { + "path": "rtc/rtc_alarm_repeat", + "name": "rtc_alarm_repeat", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w" + ], + "supportRiscV": false + }, + "multicore_fifo_irqs": { + "path": "multicore/multicore_fifo_irqs", + "name": "multicore_fifo_irqs", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w" + ], + "supportRiscV": false + }, + "multicore_runner": { + "path": "multicore/multicore_runner", + "name": "multicore_runner", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "multicore_runner_queue": { + "path": "multicore/multicore_runner_queue", + "name": "multicore_runner_queue", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_multicore": { + "path": "multicore/hello_multicore", + "name": "hello_multicore", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_reset": { + "path": "reset/hello_reset", + "name": "hello_reset", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_interp": { + "path": "interp/hello_interp", + "name": "hello_interp", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "mpl3115a2_i2c": { + "path": "i2c/mpl3115a2_i2c", + "name": "mpl3115a2_i2c", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "mcp9808_i2c": { + "path": "i2c/mcp9808_i2c", + "name": "mcp9808_i2c", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "mpu6050_i2c": { + "path": "i2c/mpu6050_i2c", + "name": "mpu6050_i2c", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pa1010d_i2c": { + "path": "i2c/pa1010d_i2c", + "name": "pa1010d_i2c", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "lis3dh_i2c": { + "path": "i2c/lis3dh_i2c", + "name": "lis3dh_i2c", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "mma8451_i2c": { + "path": "i2c/mma8451_i2c", + "name": "mma8451_i2c", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "ht16k33_i2c": { + "path": "i2c/ht16k33_i2c", + "name": "ht16k33_i2c", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "i2c_bus_scan": { + "path": "i2c/bus_scan", + "name": "i2c_bus_scan", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "pcf8523_i2c": { + "path": "i2c/pcf8523_i2c", + "name": "pcf8523_i2c", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "lcd_1602_i2c": { + "path": "i2c/lcd_1602_i2c", + "name": "lcd_1602_i2c", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "bmp280_i2c": { + "path": "i2c/bmp280_i2c", + "name": "bmp280_i2c", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "slave_mem_i2c": { + "path": "i2c/slave_mem_i2c", + "name": "slave_mem_i2c", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "slave_mem_i2c_burst": { + "path": "i2c/slave_mem_i2c", + "name": "slave_mem_i2c_burst", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "ssd1306_i2c": { + "path": "i2c/ssd1306_i2c", + "name": "ssd1306_i2c", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "adc_dma_capture": { + "path": "adc/dma_capture", + "name": "adc_dma_capture", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "joystick_display": { + "path": "adc/joystick_display", + "name": "joystick_display", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "onboard_temperature": { + "path": "adc/onboard_temperature", + "name": "onboard_temperature", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "microphone_adc": { + "path": "adc/microphone_adc", + "name": "microphone_adc", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "adc_console": { + "path": "adc/adc_console", + "name": "adc_console", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "read_vsys": { + "path": "adc/read_vsys", + "name": "read_vsys", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_adc": { + "path": "adc/hello_adc", + "name": "hello_adc", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "sniff_crc": { + "path": "dma/sniff_crc", + "name": "sniff_crc", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "dma_control_blocks": { + "path": "dma/control_blocks", + "name": "dma_control_blocks", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_dma": { + "path": "dma/hello_dma", + "name": "hello_dma", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "dma_channel_irq": { + "path": "dma/channel_irq", + "name": "dma_channel_irq", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico2" + ], + "supportRiscV": true + }, + "spi_dma": { + "path": "spi/spi_dma", + "name": "spi_dma", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "spi_flash": { + "path": "spi/spi_flash", + "name": "spi_flash", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "mpu9250_spi": { + "path": "spi/mpu9250_spi", + "name": "mpu9250_spi", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "max7219_8x7seg_spi": { + "path": "spi/max7219_8x7seg_spi", + "name": "max7219_8x7seg_spi", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "max7219_32x8_spi": { + "path": "spi/max7219_32x8_spi", + "name": "max7219_32x8_spi", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "bme280_spi": { + "path": "spi/bme280_spi", + "name": "bme280_spi", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "spi_master": { + "path": "spi/spi_master_slave/spi_master", + "name": "spi_master", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "spi_slave": { + "path": "spi/spi_master_slave/spi_slave", + "name": "spi_slave", + "libPaths": [], + "libNames": [], + "boards": [ + "pico", + "pico_w", + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "picow_blink": { + "path": "pico_w/wifi/blink", + "name": "picow_blink", + "libPaths": [], + "libNames": [], + "boards": [ + "pico_w", + "pico2_w" + ], + "supportRiscV": true + }, + "picow_blink_fast_clock": { + "path": "pico_w/wifi/blink", + "name": "picow_blink_fast_clock", + "libPaths": [], + "libNames": [], + "boards": [ + "pico_w", + "pico2_w" + ], + "supportRiscV": true + }, + "picow_blink_slow_clock": { + "path": "pico_w/wifi/blink", + "name": "picow_blink_slow_clock", + "libPaths": [], + "libNames": [], + "boards": [ + "pico_w", + "pico2_w" + ], + "supportRiscV": true + }, + "picow_ble_temp_reader": { + "path": "pico_w/bt/standalone", + "name": "picow_ble_temp_reader", + "libPaths": [], + "libNames": [], + "boards": [ + "pico_w", + "pico2_w" + ], + "supportRiscV": true + }, + "picow_ble_temp_sensor": { + "path": "pico_w/bt/standalone", + "name": "picow_ble_temp_sensor", + "libPaths": [], + "libNames": [], + "boards": [ + "pico_w", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_sha256": { + "path": "sha/sha256", + "name": "hello_sha256", + "libPaths": [], + "libNames": [], + "boards": [ + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "mbedtls_sha256": { + "path": "sha/mbedtls_sha256", + "name": "mbedtls_sha256", + "libPaths": [], + "libNames": [], + "boards": [ + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "enc_bootloader": { + "path": "bootloaders/encrypted", + "name": "enc_bootloader", + "libPaths": [], + "libNames": [], + "boards": [ + "pico2", + "pico2_w" + ], + "supportRiscV": false + }, + "hello_serial_enc": { + "path": "bootloaders/encrypted", + "name": "hello_serial_enc", + "libPaths": [], + "libNames": [], + "boards": [ + "pico2", + "pico2_w" + ], + "supportRiscV": false + }, + "boot_info": { + "path": "system/boot_info", + "name": "boot_info", + "libPaths": [], + "libNames": [], + "boards": [ + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "runtime_flash_permissions": { + "path": "flash/runtime_flash_permissions", + "name": "runtime_flash_permissions", + "libPaths": [], + "libNames": [], + "boards": [ + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "multicore_doorbell": { + "path": "multicore/multicore_doorbell", + "name": "multicore_doorbell", + "libPaths": [], + "libNames": [], + "boards": [ + "pico2", + "pico2_w" + ], + "supportRiscV": true + }, + "hello_dcp": { + "path": "dcp/hello_dcp", + "name": "hello_dcp", + "libPaths": [], + "libNames": [], + "boards": [ + "pico2", + "pico2_w" + ], + "supportRiscV": false + }, + "hello_otp": { + "path": "otp/hello_otp", + "name": "hello_otp", + "libPaths": [], + "libNames": [], + "boards": [ + "pico2", + "pico2_w" + ], + "supportRiscV": true + } +} \ No newline at end of file diff --git a/data/0.18.0/github-cache.json b/data/0.18.0/github-cache.json new file mode 100644 index 0000000..62925c8 --- /dev/null +++ b/data/0.18.0/github-cache.json @@ -0,0 +1,979 @@ +{ + "githubApiCache-0-0": [ + "1.5.1", + "2.0.0", + "2.1.0" + ], + "githubApiCache-0-1-1.5.1": { + "assets": [ + { + "id": 112935743, + "name": "sdk-1.5.1-html-doc.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk/releases/download/1.5.1/sdk-1.5.1-html-doc.zip" + } + ], + "assetsUrl": "https://api.github.com/repos/raspberrypi/pico-sdk/releases/107707260/assets" + }, + "githubApiCache-0-1-2.0.0": { + "assets": [ + { + "id": 184711853, + "name": "pico-sdk-2.0.0.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk/releases/download/2.0.0/pico-sdk-2.0.0.tar.gz" + } + ], + "assetsUrl": "https://api.github.com/repos/raspberrypi/pico-sdk/releases/169292056/assets" + }, + "githubApiCache-0-1-2.1.0": { + "assets": [ + { + "id": 208867614, + "name": "pico-sdk-2.1.0.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk/releases/download/2.1.0/pico-sdk-2.1.0.tar.gz" + } + ], + "assetsUrl": "https://api.github.com/repos/raspberrypi/pico-sdk/releases/187177527/assets" + }, + "githubApiCache-1-0": [ + "v3.28.6", + "v3.29.6", + "v3.29.9" + ], + "githubApiCache-1-1-v3.28.6": { + "assets": [ + { + "id": 171682637, + "name": "cmake-3.28.6-files-v1.json", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-files-v1.json" + }, + { + "id": 171682639, + "name": "cmake-3.28.6-linux-aarch64.sh", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-linux-aarch64.sh" + }, + { + "id": 171682797, + "name": "cmake-3.28.6-linux-aarch64.tar.gz", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-linux-aarch64.tar.gz" + }, + { + "id": 171682872, + "name": "cmake-3.28.6-linux-x86_64.sh", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-linux-x86_64.sh" + }, + { + "id": 171682906, + "name": "cmake-3.28.6-linux-x86_64.tar.gz", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-linux-x86_64.tar.gz" + }, + { + "id": 171682946, + "name": "cmake-3.28.6-macos-universal.dmg", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-macos-universal.dmg" + }, + { + "id": 171683083, + "name": "cmake-3.28.6-macos-universal.tar.gz", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-macos-universal.tar.gz" + }, + { + "id": 171683266, + "name": "cmake-3.28.6-macos10.10-universal.dmg", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-macos10.10-universal.dmg" + }, + { + "id": 171683323, + "name": "cmake-3.28.6-macos10.10-universal.tar.gz", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-macos10.10-universal.tar.gz" + }, + { + "id": 171683404, + "name": "cmake-3.28.6-SHA-256.txt", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-SHA-256.txt" + }, + { + "id": 171683405, + "name": "cmake-3.28.6-SHA-256.txt.asc", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-SHA-256.txt.asc" + }, + { + "id": 171683406, + "name": "cmake-3.28.6-windows-arm64.msi", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-windows-arm64.msi" + }, + { + "id": 171683440, + "name": "cmake-3.28.6-windows-arm64.zip", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-windows-arm64.zip" + }, + { + "id": 171683535, + "name": "cmake-3.28.6-windows-i386.msi", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-windows-i386.msi" + }, + { + "id": 171683624, + "name": "cmake-3.28.6-windows-i386.zip", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-windows-i386.zip" + }, + { + "id": 171683745, + "name": "cmake-3.28.6-windows-x86_64.msi", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-windows-x86_64.msi" + }, + { + "id": 171683767, + "name": "cmake-3.28.6-windows-x86_64.zip", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-windows-x86_64.zip" + }, + { + "id": 171683790, + "name": "cmake-3.28.6.tar.gz", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6.tar.gz" + }, + { + "id": 171683796, + "name": "cmake-3.28.6.zip", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6.zip" + } + ], + "assetsUrl": "https://api.github.com/repos/Kitware/CMake/releases/158667625/assets" + }, + "githubApiCache-1-1-v3.29.6": { + "assets": [ + { + "id": 174341995, + "name": "cmake-3.29.6-files-v1.json", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-files-v1.json" + }, + { + "id": 174341999, + "name": "cmake-3.29.6-linux-aarch64.sh", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-linux-aarch64.sh" + }, + { + "id": 174342062, + "name": "cmake-3.29.6-linux-aarch64.tar.gz", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-linux-aarch64.tar.gz" + }, + { + "id": 174342111, + "name": "cmake-3.29.6-linux-x86_64.sh", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-linux-x86_64.sh" + }, + { + "id": 174347312, + "name": "cmake-3.29.6-linux-x86_64.tar.gz", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-linux-x86_64.tar.gz" + }, + { + "id": 174342299, + "name": "cmake-3.29.6-macos-universal.dmg", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-macos-universal.dmg" + }, + { + "id": 174342411, + "name": "cmake-3.29.6-macos-universal.tar.gz", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-macos-universal.tar.gz" + }, + { + "id": 174342498, + "name": "cmake-3.29.6-macos10.10-universal.dmg", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-macos10.10-universal.dmg" + }, + { + "id": 174342661, + "name": "cmake-3.29.6-macos10.10-universal.tar.gz", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-macos10.10-universal.tar.gz" + }, + { + "id": 174342833, + "name": "cmake-3.29.6-SHA-256.txt", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-SHA-256.txt" + }, + { + "id": 174342839, + "name": "cmake-3.29.6-SHA-256.txt.asc", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-SHA-256.txt.asc" + }, + { + "id": 174342841, + "name": "cmake-3.29.6-windows-arm64.msi", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-windows-arm64.msi" + }, + { + "id": 174342900, + "name": "cmake-3.29.6-windows-arm64.zip", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-windows-arm64.zip" + }, + { + "id": 174342965, + "name": "cmake-3.29.6-windows-i386.msi", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-windows-i386.msi" + }, + { + "id": 174342982, + "name": "cmake-3.29.6-windows-i386.zip", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-windows-i386.zip" + }, + { + "id": 174343004, + "name": "cmake-3.29.6-windows-x86_64.msi", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-windows-x86_64.msi" + }, + { + "id": 174343044, + "name": "cmake-3.29.6-windows-x86_64.zip", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-windows-x86_64.zip" + }, + { + "id": 174343086, + "name": "cmake-3.29.6.tar.gz", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6.tar.gz" + }, + { + "id": 174343102, + "name": "cmake-3.29.6.zip", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6.zip" + } + ], + "assetsUrl": "https://api.github.com/repos/Kitware/CMake/releases/160931478/assets" + }, + "githubApiCache-1-1-v3.29.9": { + "assets": [ + { + "id": 208104321, + "name": "cmake-3.29.9-files-v1.json", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-files-v1.json" + }, + { + "id": 208104322, + "name": "cmake-3.29.9-linux-aarch64.sh", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-linux-aarch64.sh" + }, + { + "id": 208104324, + "name": "cmake-3.29.9-linux-aarch64.tar.gz", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-linux-aarch64.tar.gz" + }, + { + "id": 208104336, + "name": "cmake-3.29.9-linux-x86_64.sh", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-linux-x86_64.sh" + }, + { + "id": 208104342, + "name": "cmake-3.29.9-linux-x86_64.tar.gz", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-linux-x86_64.tar.gz" + }, + { + "id": 208104354, + "name": "cmake-3.29.9-macos-universal.dmg", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-macos-universal.dmg" + }, + { + "id": 208104365, + "name": "cmake-3.29.9-macos-universal.tar.gz", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-macos-universal.tar.gz" + }, + { + "id": 208104384, + "name": "cmake-3.29.9-macos10.10-universal.dmg", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-macos10.10-universal.dmg" + }, + { + "id": 208104392, + "name": "cmake-3.29.9-macos10.10-universal.tar.gz", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-macos10.10-universal.tar.gz" + }, + { + "id": 208104400, + "name": "cmake-3.29.9-SHA-256.txt", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-SHA-256.txt" + }, + { + "id": 208104401, + "name": "cmake-3.29.9-SHA-256.txt.asc", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-SHA-256.txt.asc" + }, + { + "id": 208104403, + "name": "cmake-3.29.9-windows-arm64.msi", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-windows-arm64.msi" + }, + { + "id": 208104417, + "name": "cmake-3.29.9-windows-arm64.zip", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-windows-arm64.zip" + }, + { + "id": 208104420, + "name": "cmake-3.29.9-windows-i386.msi", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-windows-i386.msi" + }, + { + "id": 208104423, + "name": "cmake-3.29.9-windows-i386.zip", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-windows-i386.zip" + }, + { + "id": 208104428, + "name": "cmake-3.29.9-windows-x86_64.msi", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-windows-x86_64.msi" + }, + { + "id": 208104437, + "name": "cmake-3.29.9-windows-x86_64.zip", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9-windows-x86_64.zip" + }, + { + "id": 208104442, + "name": "cmake-3.29.9.tar.gz", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9.tar.gz" + }, + { + "id": 208104444, + "name": "cmake-3.29.9.zip", + "browser_download_url": "https://github.com/Kitware/CMake/releases/download/v3.29.9/cmake-3.29.9.zip" + } + ], + "assetsUrl": "https://api.github.com/repos/Kitware/CMake/releases/186670936/assets" + }, + "githubApiCache-2-0": [ + "v1.12.1" + ], + "githubApiCache-2-1-v1.12.1": { + "assets": [ + { + "id": 167333823, + "name": "ninja-linux-aarch64.zip", + "browser_download_url": "https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux-aarch64.zip" + }, + { + "id": 167333509, + "name": "ninja-linux.zip", + "browser_download_url": "https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip" + }, + { + "id": 167333196, + "name": "ninja-mac.zip", + "browser_download_url": "https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-mac.zip" + }, + { + "id": 167333379, + "name": "ninja-win.zip", + "browser_download_url": "https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-win.zip" + }, + { + "id": 167333478, + "name": "ninja-winarm64.zip", + "browser_download_url": "https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-winarm64.zip" + } + ], + "assetsUrl": "https://api.github.com/repos/ninja-build/ninja/releases/155357494/assets" + }, + "githubApiCache-3-0": [ + "v1.5.1-0", + "v2.0.0-0", + "v2.0.0-1", + "v2.0.0-2", + "v2.0.0-3", + "v2.0.0-4", + "v2.0.0-5", + "v2.1.0-0" + ], + "githubApiCache-3-1-v1.5.1-0": { + "assets": [ + { + "id": 184737292, + "name": "openocd-0.12.0+dev-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v1.5.1-0/openocd-0.12.0%2Bdev-aarch64-lin.tar.gz" + }, + { + "id": 184736619, + "name": "openocd-0.12.0+dev-arm64-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v1.5.1-0/openocd-0.12.0%2Bdev-arm64-mac.zip" + }, + { + "id": 184739207, + "name": "openocd-0.12.0+dev-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v1.5.1-0/openocd-0.12.0%2Bdev-x64-win.zip" + }, + { + "id": 184736698, + "name": "openocd-0.12.0+dev-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v1.5.1-0/openocd-0.12.0%2Bdev-x86_64-lin.tar.gz" + }, + { + "id": 184739206, + "name": "pico-sdk-tools-1.5.1-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v1.5.1-0/pico-sdk-tools-1.5.1-x64-win.zip" + }, + { + "id": 184737290, + "name": "picotool-2.0.0-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v1.5.1-0/picotool-2.0.0-aarch64-lin.tar.gz" + }, + { + "id": 184736618, + "name": "picotool-2.0.0-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v1.5.1-0/picotool-2.0.0-mac.zip" + }, + { + "id": 184739208, + "name": "picotool-2.0.0-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v1.5.1-0/picotool-2.0.0-x64-win.zip" + }, + { + "id": 184736697, + "name": "picotool-2.0.0-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v1.5.1-0/picotool-2.0.0-x86_64-lin.tar.gz" + } + ], + "assetsUrl": "https://api.github.com/repos/raspberrypi/pico-sdk-tools/releases/169373034/assets" + }, + "githubApiCache-3-1-v2.0.0-0": { + "assets": [ + { + "id": 184711252, + "name": "openocd-0.12.0+dev-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-0/openocd-0.12.0%2Bdev-aarch64-lin.tar.gz" + }, + { + "id": 184710255, + "name": "openocd-0.12.0+dev-arm64-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-0/openocd-0.12.0%2Bdev-arm64-mac.zip" + }, + { + "id": 184711712, + "name": "openocd-0.12.0+dev-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-0/openocd-0.12.0%2Bdev-x64-win.zip" + }, + { + "id": 184709989, + "name": "openocd-0.12.0+dev-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-0/openocd-0.12.0%2Bdev-x86_64-lin.tar.gz" + }, + { + "id": 184711250, + "name": "pico-sdk-tools-2.0.0-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-0/pico-sdk-tools-2.0.0-aarch64-lin.tar.gz" + }, + { + "id": 184710252, + "name": "pico-sdk-tools-2.0.0-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-0/pico-sdk-tools-2.0.0-mac.zip" + }, + { + "id": 184711713, + "name": "pico-sdk-tools-2.0.0-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-0/pico-sdk-tools-2.0.0-x64-win.zip" + }, + { + "id": 184709990, + "name": "pico-sdk-tools-2.0.0-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-0/pico-sdk-tools-2.0.0-x86_64-lin.tar.gz" + }, + { + "id": 184711251, + "name": "picotool-2.0.0-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-0/picotool-2.0.0-aarch64-lin.tar.gz" + }, + { + "id": 184710253, + "name": "picotool-2.0.0-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-0/picotool-2.0.0-mac.zip" + }, + { + "id": 184711714, + "name": "picotool-2.0.0-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-0/picotool-2.0.0-x64-win.zip" + }, + { + "id": 184709988, + "name": "picotool-2.0.0-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-0/picotool-2.0.0-x86_64-lin.tar.gz" + }, + { + "id": 184716562, + "name": "riscv-toolchain-14-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-0/riscv-toolchain-14-aarch64-lin.tar.gz" + } + ], + "assetsUrl": "https://api.github.com/repos/raspberrypi/pico-sdk-tools/releases/169351844/assets" + }, + "githubApiCache-3-1-v2.0.0-1": { + "assets": [ + { + "id": 189376355, + "name": "openocd-0.12.0+dev-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/openocd-0.12.0%2Bdev-x64-win.zip" + }, + { + "id": 189393894, + "name": "pico-sdk-tools-2.0.0-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/pico-sdk-tools-2.0.0-aarch64-lin.tar.gz" + }, + { + "id": 189383672, + "name": "pico-sdk-tools-2.0.0-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/pico-sdk-tools-2.0.0-mac.zip" + }, + { + "id": 189376353, + "name": "pico-sdk-tools-2.0.0-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/pico-sdk-tools-2.0.0-x64-win.zip" + }, + { + "id": 189383021, + "name": "pico-sdk-tools-2.0.0-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/pico-sdk-tools-2.0.0-x86_64-lin.tar.gz" + }, + { + "id": 189393895, + "name": "picotool-2.0.0-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/picotool-2.0.0-aarch64-lin.tar.gz" + }, + { + "id": 189383673, + "name": "picotool-2.0.0-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/picotool-2.0.0-mac.zip" + }, + { + "id": 189376354, + "name": "picotool-2.0.0-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/picotool-2.0.0-x64-win.zip" + }, + { + "id": 189383020, + "name": "picotool-2.0.0-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/picotool-2.0.0-x86_64-lin.tar.gz" + }, + { + "id": 189393893, + "name": "riscv-toolchain-14-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/riscv-toolchain-14-aarch64-lin.tar.gz" + }, + { + "id": 189383674, + "name": "riscv-toolchain-14-arm64-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/riscv-toolchain-14-arm64-mac.zip" + }, + { + "id": 189383683, + "name": "riscv-toolchain-14-x64-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/riscv-toolchain-14-x64-mac.zip" + }, + { + "id": 189383681, + "name": "riscv-toolchain-14-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/riscv-toolchain-14-x64-win.zip" + }, + { + "id": 189383025, + "name": "riscv-toolchain-14-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/riscv-toolchain-14-x86_64-lin.tar.gz" + } + ], + "assetsUrl": "https://api.github.com/repos/raspberrypi/pico-sdk-tools/releases/172779839/assets" + }, + "githubApiCache-3-1-v2.0.0-2": { + "assets": [ + { + "id": 189908794, + "name": "openocd-0.12.0+dev-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/openocd-0.12.0%2Bdev-aarch64-lin.tar.gz" + }, + { + "id": 189901112, + "name": "openocd-0.12.0+dev-arm64-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/openocd-0.12.0%2Bdev-arm64-mac.zip" + }, + { + "id": 189896468, + "name": "openocd-0.12.0+dev-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/openocd-0.12.0%2Bdev-x64-win.zip" + }, + { + "id": 189901568, + "name": "openocd-0.12.0+dev-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/openocd-0.12.0%2Bdev-x86_64-lin.tar.gz" + }, + { + "id": 189908793, + "name": "pico-sdk-tools-2.0.0-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/pico-sdk-tools-2.0.0-aarch64-lin.tar.gz" + }, + { + "id": 189901108, + "name": "pico-sdk-tools-2.0.0-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/pico-sdk-tools-2.0.0-mac.zip" + }, + { + "id": 189896467, + "name": "pico-sdk-tools-2.0.0-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/pico-sdk-tools-2.0.0-x64-win.zip" + }, + { + "id": 189901566, + "name": "pico-sdk-tools-2.0.0-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/pico-sdk-tools-2.0.0-x86_64-lin.tar.gz" + }, + { + "id": 189908796, + "name": "picotool-2.0.0-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/picotool-2.0.0-aarch64-lin.tar.gz" + }, + { + "id": 189901110, + "name": "picotool-2.0.0-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/picotool-2.0.0-mac.zip" + }, + { + "id": 189896466, + "name": "picotool-2.0.0-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/picotool-2.0.0-x64-win.zip" + }, + { + "id": 189901565, + "name": "picotool-2.0.0-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/picotool-2.0.0-x86_64-lin.tar.gz" + }, + { + "id": 189908795, + "name": "riscv-toolchain-14-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/riscv-toolchain-14-aarch64-lin.tar.gz" + }, + { + "id": 189901113, + "name": "riscv-toolchain-14-arm64-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/riscv-toolchain-14-arm64-mac.zip" + }, + { + "id": 189901109, + "name": "riscv-toolchain-14-x64-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/riscv-toolchain-14-x64-mac.zip" + }, + { + "id": 189901111, + "name": "riscv-toolchain-14-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/riscv-toolchain-14-x64-win.zip" + }, + { + "id": 189901567, + "name": "riscv-toolchain-14-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/riscv-toolchain-14-x86_64-lin.tar.gz" + } + ], + "assetsUrl": "https://api.github.com/repos/raspberrypi/pico-sdk-tools/releases/173039107/assets" + }, + "githubApiCache-3-1-v2.0.0-3": { + "assets": [ + { + "id": 191483575, + "name": "openocd-0.12.0+dev-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-3/openocd-0.12.0%2Bdev-aarch64-lin.tar.gz" + }, + { + "id": 191484787, + "name": "openocd-0.12.0+dev-arm64-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-3/openocd-0.12.0%2Bdev-arm64-mac.zip" + }, + { + "id": 191484567, + "name": "openocd-0.12.0+dev-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-3/openocd-0.12.0%2Bdev-x64-win.zip" + }, + { + "id": 191483298, + "name": "openocd-0.12.0+dev-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-3/openocd-0.12.0%2Bdev-x86_64-lin.tar.gz" + }, + { + "id": 191483574, + "name": "pico-sdk-tools-2.0.0-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-3/pico-sdk-tools-2.0.0-aarch64-lin.tar.gz" + }, + { + "id": 191484785, + "name": "pico-sdk-tools-2.0.0-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-3/pico-sdk-tools-2.0.0-mac.zip" + }, + { + "id": 191484566, + "name": "pico-sdk-tools-2.0.0-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-3/pico-sdk-tools-2.0.0-x64-win.zip" + }, + { + "id": 191483299, + "name": "pico-sdk-tools-2.0.0-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-3/pico-sdk-tools-2.0.0-x86_64-lin.tar.gz" + }, + { + "id": 191483572, + "name": "picotool-2.0.0-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-3/picotool-2.0.0-aarch64-lin.tar.gz" + }, + { + "id": 191484786, + "name": "picotool-2.0.0-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-3/picotool-2.0.0-mac.zip" + }, + { + "id": 191484565, + "name": "picotool-2.0.0-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-3/picotool-2.0.0-x64-win.zip" + }, + { + "id": 191483300, + "name": "picotool-2.0.0-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-3/picotool-2.0.0-x86_64-lin.tar.gz" + } + ], + "assetsUrl": "https://api.github.com/repos/raspberrypi/pico-sdk-tools/releases/174135764/assets" + }, + "githubApiCache-3-1-v2.0.0-4": { + "assets": [ + { + "id": 193192683, + "name": "openocd-0.12.0+dev-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-4/openocd-0.12.0%2Bdev-aarch64-lin.tar.gz" + }, + { + "id": 193194432, + "name": "openocd-0.12.0+dev-arm64-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-4/openocd-0.12.0%2Bdev-arm64-mac.zip" + }, + { + "id": 193193748, + "name": "openocd-0.12.0+dev-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-4/openocd-0.12.0%2Bdev-x64-win.zip" + }, + { + "id": 193192582, + "name": "openocd-0.12.0+dev-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-4/openocd-0.12.0%2Bdev-x86_64-lin.tar.gz" + }, + { + "id": 193192681, + "name": "pico-sdk-tools-2.0.0-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-4/pico-sdk-tools-2.0.0-aarch64-lin.tar.gz" + }, + { + "id": 193194434, + "name": "pico-sdk-tools-2.0.0-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-4/pico-sdk-tools-2.0.0-mac.zip" + }, + { + "id": 193193746, + "name": "pico-sdk-tools-2.0.0-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-4/pico-sdk-tools-2.0.0-x64-win.zip" + }, + { + "id": 193192583, + "name": "pico-sdk-tools-2.0.0-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-4/pico-sdk-tools-2.0.0-x86_64-lin.tar.gz" + }, + { + "id": 193192682, + "name": "picotool-2.0.0-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-4/picotool-2.0.0-aarch64-lin.tar.gz" + }, + { + "id": 193194433, + "name": "picotool-2.0.0-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-4/picotool-2.0.0-mac.zip" + }, + { + "id": 193193747, + "name": "picotool-2.0.0-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-4/picotool-2.0.0-x64-win.zip" + }, + { + "id": 193192581, + "name": "picotool-2.0.0-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-4/picotool-2.0.0-x86_64-lin.tar.gz" + } + ], + "assetsUrl": "https://api.github.com/repos/raspberrypi/pico-sdk-tools/releases/175505012/assets" + }, + "githubApiCache-3-1-v2.0.0-5": { + "assets": [ + { + "id": 195382918, + "name": "openocd-0.12.0+dev-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/openocd-0.12.0%2Bdev-aarch64-lin.tar.gz" + }, + { + "id": 195377190, + "name": "openocd-0.12.0+dev-arm64-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/openocd-0.12.0%2Bdev-arm64-mac.zip" + }, + { + "id": 195372506, + "name": "openocd-0.12.0+dev-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/openocd-0.12.0%2Bdev-x64-win.zip" + }, + { + "id": 195376538, + "name": "openocd-0.12.0+dev-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/openocd-0.12.0%2Bdev-x86_64-lin.tar.gz" + }, + { + "id": 195382919, + "name": "pico-sdk-tools-2.0.0-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/pico-sdk-tools-2.0.0-aarch64-lin.tar.gz" + }, + { + "id": 195377173, + "name": "pico-sdk-tools-2.0.0-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/pico-sdk-tools-2.0.0-mac.zip" + }, + { + "id": 195372508, + "name": "pico-sdk-tools-2.0.0-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/pico-sdk-tools-2.0.0-x64-win.zip" + }, + { + "id": 195376540, + "name": "pico-sdk-tools-2.0.0-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/pico-sdk-tools-2.0.0-x86_64-lin.tar.gz" + }, + { + "id": 195382917, + "name": "picotool-2.0.0-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/picotool-2.0.0-aarch64-lin.tar.gz" + }, + { + "id": 195377172, + "name": "picotool-2.0.0-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/picotool-2.0.0-mac.zip" + }, + { + "id": 195372507, + "name": "picotool-2.0.0-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/picotool-2.0.0-x64-win.zip" + }, + { + "id": 195376539, + "name": "picotool-2.0.0-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/picotool-2.0.0-x86_64-lin.tar.gz" + }, + { + "id": 195382920, + "name": "riscv-toolchain-14-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/riscv-toolchain-14-aarch64-lin.tar.gz" + }, + { + "id": 195377191, + "name": "riscv-toolchain-14-arm64-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/riscv-toolchain-14-arm64-mac.zip" + }, + { + "id": 195377189, + "name": "riscv-toolchain-14-x64-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/riscv-toolchain-14-x64-mac.zip" + }, + { + "id": 195377188, + "name": "riscv-toolchain-14-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/riscv-toolchain-14-x64-win.zip" + }, + { + "id": 195376542, + "name": "riscv-toolchain-14-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/riscv-toolchain-14-x86_64-lin.tar.gz" + } + ], + "assetsUrl": "https://api.github.com/repos/raspberrypi/pico-sdk-tools/releases/177327402/assets" + }, + "githubApiCache-3-1-v2.1.0-0": { + "assets": [ + { + "id": 208907841, + "name": "openocd-0.12.0+dev-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.1.0-0/openocd-0.12.0%2Bdev-aarch64-lin.tar.gz" + }, + { + "id": 208909295, + "name": "openocd-0.12.0+dev-arm64-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.1.0-0/openocd-0.12.0%2Bdev-arm64-mac.zip" + }, + { + "id": 208909148, + "name": "openocd-0.12.0+dev-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.1.0-0/openocd-0.12.0%2Bdev-x64-win.zip" + }, + { + "id": 208907708, + "name": "openocd-0.12.0+dev-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.1.0-0/openocd-0.12.0%2Bdev-x86_64-lin.tar.gz" + }, + { + "id": 208907840, + "name": "pico-sdk-tools-2.1.0-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.1.0-0/pico-sdk-tools-2.1.0-aarch64-lin.tar.gz" + }, + { + "id": 208909294, + "name": "pico-sdk-tools-2.1.0-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.1.0-0/pico-sdk-tools-2.1.0-mac.zip" + }, + { + "id": 208909147, + "name": "pico-sdk-tools-2.1.0-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.1.0-0/pico-sdk-tools-2.1.0-x64-win.zip" + }, + { + "id": 208907707, + "name": "pico-sdk-tools-2.1.0-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.1.0-0/pico-sdk-tools-2.1.0-x86_64-lin.tar.gz" + }, + { + "id": 208907842, + "name": "picotool-2.1.0-aarch64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.1.0-0/picotool-2.1.0-aarch64-lin.tar.gz" + }, + { + "id": 208909293, + "name": "picotool-2.1.0-mac.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.1.0-0/picotool-2.1.0-mac.zip" + }, + { + "id": 208909149, + "name": "picotool-2.1.0-x64-win.zip", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.1.0-0/picotool-2.1.0-x64-win.zip" + }, + { + "id": 208907706, + "name": "picotool-2.1.0-x86_64-lin.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.1.0-0/picotool-2.1.0-x86_64-lin.tar.gz" + } + ], + "assetsUrl": "https://api.github.com/repos/raspberrypi/pico-sdk-tools/releases/187251265/assets" + }, + "githubApiCache-4-0": [ + "2.0.0", + "2.1.0" + ], + "githubApiCache-4-1-2.0.0": { + "assets": [ + { + "id": 184690696, + "name": "picotool-2.0.0.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/picotool/releases/download/2.0.0/picotool-2.0.0.tar.gz" + } + ], + "assetsUrl": "https://api.github.com/repos/raspberrypi/picotool/releases/169321961/assets" + }, + "githubApiCache-4-1-2.1.0": { + "assets": [ + { + "id": 208873404, + "name": "picotool-2.1.0.tar.gz", + "browser_download_url": "https://github.com/raspberrypi/picotool/releases/download/2.1.0/picotool-2.1.0.tar.gz" + } + ], + "assetsUrl": "https://api.github.com/repos/raspberrypi/picotool/releases/187217595/assets" + } +} \ No newline at end of file diff --git a/data/0.18.0/supportedToolchains.ini b/data/0.18.0/supportedToolchains.ini new file mode 100644 index 0000000..a151e3d --- /dev/null +++ b/data/0.18.0/supportedToolchains.ini @@ -0,0 +1,60 @@ +[13_3_Rel1] +win32_x64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-mingw-w64-i686-arm-none-eabi.zip +darwin_arm64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-darwin-arm64-arm-none-eabi.tar.xz +darwin_x64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-darwin-x86_64-arm-none-eabi.tar.xz +linux_x64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi.tar.xz +linux_arm64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-aarch64-arm-none-eabi.tar.xz +[13_2_Rel1] +win32_x64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-mingw-w64-i686-arm-none-eabi.zip +darwin_arm64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-darwin-arm64-arm-none-eabi.tar.xz +darwin_x64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-darwin-x86_64-arm-none-eabi.tar.xz +linux_x64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz +linux_arm64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-aarch64-arm-none-eabi.tar.xz +[RISCV_RPI_2_0_0_5] +win32_x64 = https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/riscv-toolchain-14-x64-win.zip +darwin_arm64 = https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/riscv-toolchain-14-arm64-mac.zip +darwin_x64 = https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/riscv-toolchain-14-x64-mac.zip +linux_x64 = https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/riscv-toolchain-14-x86_64-lin.tar.gz +linux_arm64 = https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/riscv-toolchain-14-aarch64-lin.tar.gz +[RISCV_RPI_2_0_0_2] +win32_x64 = https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/riscv-toolchain-14-x64-win.zip +darwin_arm64 = https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/riscv-toolchain-14-arm64-mac.zip +darwin_x64 = https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/riscv-toolchain-14-x64-mac.zip +linux_x64 = https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/riscv-toolchain-14-x86_64-lin.tar.gz +linux_arm64 = https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-2/riscv-toolchain-14-aarch64-lin.tar.gz +[RISCV_RPI_2_0_0_1] +win32_x64 = https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/riscv-toolchain-14-x64-win.zip +darwin_arm64 = https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/riscv-toolchain-14-arm64-mac.zip +darwin_x64 = https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/riscv-toolchain-14-x64-mac.zip +linux_x64 = https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/riscv-toolchain-14-x86_64-lin.tar.gz +linux_arm64 = https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-1/riscv-toolchain-14-aarch64-lin.tar.gz +[RISCV_13_3] +win32_x64 = https://buildbot.embecosm.com/job/riscv32-gcc-win64-release/24/artifact/riscv32-embecosm-win64-gcc13.2.0.zip +darwin_arm64 = https://buildbot.embecosm.com/job/riscv32-gcc-macos-arm64-release/10/artifact/riscv32-embecosm-macos-gcc13.3.0.zip +darwin_x64 = https://buildbot.embecosm.com/job/riscv32-gcc-macos-release/21/artifact/riscv32-embecosm-macos-gcc13.3.0.zip +linux_x64 = https://buildbot.embecosm.com/job/riscv32-gcc-ubuntu2204-release/12/artifact/riscv32-embecosm-ubuntu2204-gcc13.3.0.tar.gz +[RISCV_COREV_MAY_24] +win32_x64 = https://buildbot.embecosm.com/job/corev-gcc-win64/50/artifact/corev-openhw-gcc-win64-20240602.zip +darwin_arm64 = https://buildbot.embecosm.com/job/corev-gcc-macos-arm64/8/artifact/corev-openhw-gcc-macos-20240530.zip +darwin_x64 = https://buildbot.embecosm.com/job/corev-gcc-macos/48/artifact/corev-openhw-gcc-macos-20240530.zip +linux_x64 = https://buildbot.embecosm.com/job/corev-gcc-ubuntu2204/47/artifact/corev-openhw-gcc-ubuntu2204-20240530.tar.gz +[RISCV_RPI] +linux_arm64 = https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-0/riscv-toolchain-14-aarch64-lin.tar.gz +[12_3_Rel1] +win32_x64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-mingw-w64-i686-arm-none-eabi.zip +darwin_arm64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-darwin-arm64-arm-none-eabi.tar.xz +darwin_x64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-darwin-x86_64-arm-none-eabi.tar.xz +linux_x64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi.tar.xz +linux_arm64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-aarch64-arm-none-eabi.tar.xz +[12_2_Rel1] +win32_x64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/12.2.rel1/binrel/arm-gnu-toolchain-12.2.rel1-mingw-w64-i686-arm-none-eabi.zip +darwin_arm64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/12.2.rel1/binrel/arm-gnu-toolchain-12.2.rel1-darwin-arm64-arm-none-eabi.tar.xz +darwin_x64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/12.2.rel1/binrel/arm-gnu-toolchain-12.2.rel1-darwin-x86_64-arm-none-eabi.tar.xz +linux_x64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/12.2.rel1/binrel/arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi.tar.xz +linux_arm64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/12.2.rel1/binrel/arm-gnu-toolchain-12.2.rel1-aarch64-arm-none-eabi.tar.xz +[11_3_Rel1] +win32_x64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-mingw-w64-i686-arm-none-eabi.zip +darwin_arm64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-darwin-arm64-arm-none-eabi.tar.xz +darwin_x64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-darwin-x86_64-arm-none-eabi.tar.xz +linux_x64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz +linux_arm64 = https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-aarch64-arm-none-eabi.tar.xz diff --git a/data/0.18.0/versionBundles.json b/data/0.18.0/versionBundles.json new file mode 100644 index 0000000..798f27d --- /dev/null +++ b/data/0.18.0/versionBundles.json @@ -0,0 +1,35 @@ +{ + "1.5.0": { + "ninja": "v1.12.1", + "cmake": "v3.28.6", + "picotool": "2.0.0", + "toolchain": "12_3_Rel1", + "riscvToolchain": "NONE" + }, + "1.5.1": { + "ninja": "v1.12.1", + "cmake": "v3.28.6", + "picotool": "2.0.0", + "toolchain": "13_2_Rel1", + "riscvToolchain": "NONE" + }, + "2.0.0": { + "ninja": "v1.12.1", + "cmake": "v3.28.6", + "picotool": "2.0.0", + "toolchain": "13_2_Rel1", + "riscvToolchain": "RISCV_RPI_2_0_0_5" + }, + "2.1.0": { + "ninja": "v1.12.1", + "cmake": "v3.29.9", + "picotool": "2.1.0", + "toolchain": "13_3_Rel1", + "riscvToolchain": "RISCV_RPI_2_0_0_5", + "modifiers": { + "darwin_x64": { + "toolchain": "13_2_Rel1" + } + } + } +} diff --git a/scripts/genExamples.py b/scripts/genExamples.py index cd06781..69f8385 100644 --- a/scripts/genExamples.py +++ b/scripts/genExamples.py @@ -7,24 +7,13 @@ from pico_project import GenerateCMake -boards = [ - "pico", - "pico_w", - "pico2", - "pico2_w" -] +boards = ["pico", "pico_w", "pico2", "pico2_w"] platforms = { "pico": ["rp2040"], "pico_w": ["rp2040"], - "pico2": [ - "rp2350-arm-s", - "rp2350-riscv" - ], - "pico2_w": [ - "rp2350-arm-s", - "rp2350-riscv" - ] + "pico2": ["rp2350-arm-s", "rp2350-riscv"], + "pico2_w": ["rp2350-arm-s", "rp2350-riscv"], } examples = { @@ -34,13 +23,13 @@ "libPaths": [], "libNames": [], "boards": [], - "supportRiscV": False + "supportRiscV": False, } } examples.clear() -CURRENT_DATA_VERSION = "0.17.0" +CURRENT_DATA_VERSION = "0.18.0" try: shutil.rmtree("pico-examples") @@ -51,7 +40,9 @@ shutil.rmtree(path) except FileNotFoundError: pass -os.system("git -c advice.detachedHead=false clone https://github.com/raspberrypi/pico-examples.git --depth=1 --branch sdk-2.1.0") +os.system( + "git -c advice.detachedHead=false clone https://github.com/raspberrypi/pico-examples.git --depth=1 --branch sdk-2.1.0" +) os.environ["PICO_SDK_PATH"] = "~/.pico-sdk/sdk/2.1.0" for board in boards: @@ -63,7 +54,9 @@ toolchainVersion = "RISCV_RPI_2_0_0_5" if "riscv" in platform else "13_3_Rel1" toolchainPath = f"~/.pico-sdk/toolchain/{toolchainVersion}" picotoolDir = "~/.pico-sdk/picotool/2.1.0/picotool" - os.system(f"cmake -S pico-examples -B build -DPICO_BOARD={board} -DPICO_PLATFORM={platform} -DPICO_TOOLCHAIN_PATH={toolchainPath} -Dpicotool_DIR={picotoolDir}") + os.system( + f"cmake -S pico-examples -B build -DPICO_BOARD={board} -DPICO_PLATFORM={platform} -DPICO_TOOLCHAIN_PATH={toolchainPath} -Dpicotool_DIR={picotoolDir}" + ) os.system("cmake --build build --target help > targets.txt") @@ -71,14 +64,14 @@ with open("targets.txt", "r") as f: for line in f.readlines(): - target = line.strip('.').strip() + target = line.strip(".").strip() if ( - "all" in target or - target == "clean" or - target == "depend" or - target == "edit_cache" or - target == "rebuild_cache" or - target.endswith("_pio_h") + "all" in target + or target == "clean" + or target == "depend" + or target == "edit_cache" + or target == "rebuild_cache" + or target.endswith("_pio_h") ): continue targets.append(target) @@ -93,14 +86,12 @@ continue file_path = os.path.join(root, filename) - with open(file_path, 'r') as f: + with open(file_path, "r") as f: f_content = f.read() if "add_library" in f_content: for target in targets: if f"add_library({target}" in f_content: - tmp = lib_locs.get(target, { - "locs": [] - }) + tmp = lib_locs.get(target, {"locs": []}) tmp["locs"].append(file_path) lib_locs[target] = tmp if "add_executable" in f_content: @@ -108,10 +99,7 @@ for target in targets: if f"example_auto_set_url({target})" in f_content: exes.append(target) - tmp = target_locs.get(target, { - "locs": [], - "libs": [] - }) + tmp = target_locs.get(target, {"locs": [], "libs": []}) tmp["locs"].append(file_path) target_locs[target] = tmp @@ -145,36 +133,45 @@ for lib in v["libs"]: shutil.copytree( lib_locs[lib]["loc"].replace("/CMakeLists.txt", ""), - f"tmp/{lib}" + f"tmp/{lib}", ) - params={ - 'projectName' : target, - 'wantOverwrite' : True, - 'wantConvert' : True, - 'wantExample' : True, - 'wantThreadsafeBackground' : False, - 'wantPoll' : False, - 'boardtype' : board, - 'sdkVersion' : "2.1.0", - 'toolchainVersion': toolchainVersion, - 'picotoolVersion': "2.1.0", - 'exampleLibs' : v["libs"] + params = { + "projectName": target, + "wantOverwrite": True, + "wantConvert": True, + "wantExample": True, + "wantThreadsafeBackground": False, + "wantPoll": False, + "boardtype": board, + "sdkVersion": "2.1.0", + "toolchainVersion": toolchainVersion, + "picotoolVersion": "2.1.0", + "exampleLibs": v["libs"], } GenerateCMake("tmp", params) shutil.copy("pico-examples/pico_sdk_import.cmake", "tmp/") - retcmake = os.system("cmake -S tmp -B tmp-build -DCMAKE_COMPILE_WARNING_AS_ERROR=ON") + retcmake = os.system( + "cmake -S tmp -B tmp-build -DCMAKE_COMPILE_WARNING_AS_ERROR=ON" + ) retbuild = os.system("cmake --build tmp-build --parallel 22") - if (retcmake or retbuild): - print(f"Error occurred with {target} {v} - cmake {retcmake}, build {retbuild}") + if retcmake or retbuild: + print( + f"Error occurred with {target} {v} - cmake {retcmake}, build {retbuild}" + ) shutil.copytree("tmp", f"errors-{board}-{platform}/{target}") else: if examples.get(target) != None: example = examples[target] - assert(example["path"] == loc.replace(f"{walk_dir}/", "")) - assert(example["name"] == target) - assert(example["libPaths"] == [lib_locs[lib]["loc"].replace("/CMakeLists.txt", "").replace(f"{walk_dir}/", "") for lib in v["libs"]]) - assert(example["libNames"] == v["libs"]) + assert example["path"] == loc.replace(f"{walk_dir}/", "") + assert example["name"] == target + assert example["libPaths"] == [ + lib_locs[lib]["loc"] + .replace("/CMakeLists.txt", "") + .replace(f"{walk_dir}/", "") + for lib in v["libs"] + ] + assert example["libNames"] == v["libs"] if not board in example["boards"]: example["boards"].append(board) example["supportRiscV"] |= "riscv" in platform @@ -182,14 +179,22 @@ examples[target] = { "path": loc.replace(f"{walk_dir}/", ""), "name": target, - "libPaths": [lib_locs[lib]["loc"].replace("/CMakeLists.txt", "").replace(f"{walk_dir}/", "") for lib in v["libs"]], + "libPaths": [ + lib_locs[lib]["loc"] + .replace("/CMakeLists.txt", "") + .replace(f"{walk_dir}/", "") + for lib in v["libs"] + ], "libNames": v["libs"], "boards": [board], - "supportRiscV": "riscv" in platform + "supportRiscV": "riscv" in platform, } shutil.rmtree("tmp") shutil.rmtree("tmp-build") -with open(f"{os.path.dirname(os.path.realpath(__file__))}/../data/{CURRENT_DATA_VERSION}/examples.json", "w") as f: +with open( + f"{os.path.dirname(os.path.realpath(__file__))}/../data/{CURRENT_DATA_VERSION}/examples.json", + "w", +) as f: json.dump(examples, f, indent=4) diff --git a/src/utils/sharedConstants.mts b/src/utils/sharedConstants.mts index 48de290..4d81f23 100644 --- a/src/utils/sharedConstants.mts +++ b/src/utils/sharedConstants.mts @@ -4,4 +4,4 @@ export const WINDOWS_ARM64_PYTHON_DOWNLOAD_URL = "https://www.python.org/ftp/python/3.12.6/python-3.12.6-embed-arm64.zip"; export const CURRENT_PYTHON_VERSION = "3.12.6"; -export const CURRENT_DATA_VERSION = "0.17.0"; +export const CURRENT_DATA_VERSION = "0.18.0"; diff --git a/src/utils/versionBundles.mts b/src/utils/versionBundles.mts index ae210c2..4d3db13 100644 --- a/src/utils/versionBundles.mts +++ b/src/utils/versionBundles.mts @@ -10,16 +10,12 @@ const versionBundlesUrl = `${CURRENT_DATA_VERSION}/versionBundles.json`; export interface VersionBundle { - python: { - version: string; - macos: string; - windowsAmd64: string; - }; ninja: string; cmake: string; picotool: string; toolchain: string; riscvToolchain: string; + modifiers: { [triple: string] : {[tool: string]: string}}; } export interface VersionBundles { @@ -103,24 +99,22 @@ export default class VersionBundlesLoader { await this.loadBundles(); } - return (this.bundles ?? {})[version]; - } - - public async getPythonWindowsAmd64Url( - pythonVersion: string - ): Promise { - if (this.bundles === undefined) { - await this.loadBundles(); - } - if (this.bundles === undefined) { - return undefined; + const chosenBundle = (this.bundles ?? {})[version]; + + if (chosenBundle !== undefined) { + const modifiers = chosenBundle?.modifiers; + if (modifiers !== undefined) { + const platformDouble = `${process.platform}_${process.arch}`; + if (modifiers[platformDouble] !== undefined) { + chosenBundle.cmake = modifiers[platformDouble]["cmake"] ?? chosenBundle.cmake + chosenBundle.ninja = modifiers[platformDouble]["ninja"] ?? chosenBundle.ninja + chosenBundle.picotool = modifiers[platformDouble]["picotool"] ?? chosenBundle.picotool + chosenBundle.toolchain = modifiers[platformDouble]["toolchain"] ?? chosenBundle.toolchain + chosenBundle.riscvToolchain = modifiers[platformDouble]["riscvToolchain"] ?? chosenBundle.riscvToolchain + } + } } - const bundle = Object.values(this.bundles).find( - bundle => bundle.python.version === pythonVersion - ); - - //return bundle?.python.windowsAmd64; - return bundle; + return chosenBundle; } }