From a21a68d3eba9d027e1576a0bb3bc9046656d682a Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 23 Sep 2021 00:27:10 -0700 Subject: [PATCH] Looks like switching to LFS broke raw downloads. --- bin/build-arduino-package | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/build-arduino-package b/bin/build-arduino-package index 5c5cb3a9..e027e29c 100644 --- a/bin/build-arduino-package +++ b/bin/build-arduino-package @@ -105,16 +105,16 @@ GetOptions( my $index_filename = 'package_' . $index_filename_slug . '_index.json'; +my $main_branch_name = 'main'; + if ( $version eq '' && $tag =~ /^v(\d.*)$/ ) { $version = $1; } my $checkout_dir = 'kaleidoscope-checkout'; -my $build_base_url = $boards_repo . "/master/builds"; -$build_base_url =~ s|^ssh://git\@github.com|https://raw.githubusercontent.com|; -$build_base_url =~ s|^https?://github.com|https://raw.githubusercontent.com|; - +my $build_base_url = $boards_repo . "/raw/$main_branch_name/builds"; +$build_base_url =~ s|^ssh://git\@github.com|https://github.com|; print "Working directory: $working_dir\n"; chdir($working_dir);