From a5c1cfeb8563a15c80b60a916675b43f1f29e102 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 23 Sep 2021 00:45:56 -0700 Subject: [PATCH] Correctly? set the packager for our tools for gd32 --- bin/build-arduino-package | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/build-arduino-package b/bin/build-arduino-package index e027e29c..64883b3b 100644 --- a/bin/build-arduino-package +++ b/bin/build-arduino-package @@ -199,6 +199,13 @@ sub update_index_file { || die "Could not open $index_path $!"; 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; + } + if ($only_latest_platform) { @{ $data->{'packages'}->[0]->{'platforms'} } = ( $platforms_template->{'avr'}, $platforms_template->{'gd32'} );