|
|
|
@ -50,18 +50,18 @@ my $platforms_template = {
|
|
|
|
|
'toolsDependencies' => [
|
|
|
|
|
{
|
|
|
|
|
'name' => 'xpack-arm-none-eabi-gcc',
|
|
|
|
|
'packager' => 'Keyboardio',
|
|
|
|
|
'packager' => 'keyboardio',
|
|
|
|
|
'version' => '9.3.1-1.3'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'packager' => 'Keyboardio',
|
|
|
|
|
'packager' => 'keyboardio',
|
|
|
|
|
'version' => '0.11.0-1',
|
|
|
|
|
'name' => 'xpack-openocd'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'name' => 'dfu-util',
|
|
|
|
|
'version' => '0.10.0-arduino1',
|
|
|
|
|
'packager' => 'Keyboardio'
|
|
|
|
|
'packager' => 'keyboardio'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
'version' => '0.0.1',
|
|
|
|
@ -200,11 +200,11 @@ sub update_index_file {
|
|
|
|
|
my $json_text = <$fh>;
|
|
|
|
|
my $data = decode_json($json_text);
|
|
|
|
|
|
|
|
|
|
my $this_packager = $data->{'packages'}->[0]->{'name'};
|
|
|
|
|
foreach my $tool (@{$platforms_template->{'gd32'}->{'toolsDependencies'}}) {
|
|
|
|
|
# we need to set the packager of these tools to ourself, since that's what arduino expects
|
|
|
|
|
$tool->{"packager"} = $this_packager;
|
|
|
|
|
}
|
|
|
|
|
#my $this_packager = $data->{'packages'}->[0]->{'name'};
|
|
|
|
|
#foreach my $tool (@{$platforms_template->{'gd32'}->{'toolsDependencies'}}) {
|
|
|
|
|
# # we need to set the packager of these tools to ourself, since that's what arduino expects
|
|
|
|
|
# $tool->{"packager"} = $this_packager;
|
|
|
|
|
# }
|
|
|
|
|
|
|
|
|
|
if ($only_latest_platform) {
|
|
|
|
|
@{ $data->{'packages'}->[0]->{'platforms'} } =
|
|
|
|
|