Skip to content

Commit b066942

Browse files
authored
Merge pull request #163 from caternuson/hack_fix_megatinycore
Hack fix for arduino-cli issue with megatinycore BSP URL
2 parents e342692 + d4e3f15 commit b066942

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: build_platform.py

+6
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,12 @@ def run_or_die(cmd, error):
285285

286286
run_or_die("arduino-cli core update-index --additional-urls "+BSP_URLS+
287287
" > /dev/null", "FAILED to update core indices")
288+
##### HACK !!!!!!!!!!!!!!!!!!!
289+
# manual fix for megatinycore URL truncation issue
290+
# see: https://github.com/arduino/arduino-cli/issues/2345
291+
# https://github.com/SpenceKonde/megaTinyCore/issues/1005
292+
os.system("mv ~/.arduino15/package_drazzy.json ~/.arduino15/package_drazzy.com_index.json")
293+
##### HACK !!!!!!!!!!!!!!!!!!!!
288294
print()
289295

290296
################################ Install dependencies

0 commit comments

Comments
 (0)