Skip to content

Commit

Permalink
Add Avrdude 7.2 to boards manager
Browse files Browse the repository at this point in the history
  • Loading branch information
MCUdude committed Oct 19, 2023
1 parent 383881c commit bca6cfc
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Boards_manager_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
AUTHOR=MCUdude # Github username
REPOSITORY=MightyCore # Github repo name

AVRDUDE_VERSION="7.2-arduino.1"

# Get the download URL for the latest release from Github
DOWNLOAD_URL=$(curl -s https://api.github.com/repos/$AUTHOR/$REPOSITORY/releases/latest | grep "tarball_url" | awk -F\" '{print $4}')

Expand Down Expand Up @@ -52,13 +54,14 @@ URL="https://${AUTHOR}.github.io/${REPOSITORY}/$REPOSITORY-${DOWNLOADED_FILE#"v"
cp "package_${AUTHOR}_${REPOSITORY}_index.json" "package_${AUTHOR}_${REPOSITORY}_index.json.tmp"

# Add new boards release entry
jq -r \
--arg repository $REPOSITORY \
--arg version ${DOWNLOADED_FILE#"v"} \
--arg url $URL \
--arg checksum $SHA256 \
--arg file_size $FILE_SIZE \
--arg file_name $REPOSITORY-${DOWNLOADED_FILE#"v"}.tar.bz2 \
jq -r \
--arg repository $REPOSITORY \
--arg version ${DOWNLOADED_FILE#"v"} \
--arg url $URL \
--arg checksum $SHA256 \
--arg file_size $FILE_SIZE \
--arg avrdude_ver $AVRDUDE_VERSION \
--arg file_name $REPOSITORY-${DOWNLOADED_FILE#"v"}.tar.bz2 \
'.packages[].platforms[.packages[].platforms | length] |= . +
{
"name": $repository,
Expand Down Expand Up @@ -87,7 +90,7 @@ jq -r \
{
"packager": "MightyCore",
"name": "avrdude",
"version": "7.1-arduino.1"
"version": $avrdude_ver
},
{
"packager": "arduino",
Expand Down
48 changes: 48 additions & 0 deletions package_MCUdude_MightyCore_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,54 @@
"url": "http://downloads.arduino.cc/tools/avrdude_7.1-arduino.1_Windows_32bit.tar.gz"
}
]
},
{
"name": "avrdude",
"version": "7.2-arduino.1",
"systems": [
{
"size": "1243922",
"checksum": "SHA-256:b5b88e4f52c0edb861f5ae54acbd752f9ecd562a4db4d821ab8c276ee5696dab",
"host": "arm-linux-gnueabihf",
"archiveFileName": "avrdude_7.2-arduino.1_Linux_ARMv6.tar.gz",
"url": "http://downloads.arduino.cc/tools/avrdude_7.2-arduino.1_Linux_ARMv6.tar.gz"
},
{
"size": "1348250",
"checksum": "SHA-256:a3862e6a38668c2688dc0822b16c3f824612cc606259b6813bc5778d36c92ba9",
"host": "aarch64-linux-gnu",
"archiveFileName": "avrdude_7.2-arduino.1_Linux_ARM64.tar.gz",
"url": "http://downloads.arduino.cc/tools/avrdude_7.2-arduino.1_Linux_ARM64.tar.gz"
},
{
"size": "928946",
"checksum": "SHA-256:256cbde856714a18c11b4c99f6b00eed65e4208c92425fa9cfd75a5bdfb6ab09",
"host": "x86_64-apple-darwin12",
"archiveFileName": "avrdude_7.2-arduino.1_macOS_64bit.tar.gz",
"url": "http://downloads.arduino.cc/tools/avrdude_7.2-arduino.1_macOS_64bit.tar.gz"
},
{
"size": "1256881",
"checksum": "SHA-256:25e1b568757d9a58b9663e4493ffc04b9e6d690535c9c1e6c1db7d1ecffb5eff",
"host": "x86_64-linux-gnu",
"archiveFileName": "avrdude_7.2-arduino.1_Linux_64bit.tar.gz",
"url": "http://downloads.arduino.cc/tools/avrdude_7.2-arduino.1_Linux_64bit.tar.gz"
},
{
"size": "1252284",
"checksum": "SHA-256:86a811f6ba2bebbb717a524fcff495f0ebb146abcd15d341a10d867b8e8c83fd",
"host": "i686-linux-gnu",
"archiveFileName": "avrdude_7.2-arduino.1_Linux_32bit.tar.gz",
"url": "http://downloads.arduino.cc/tools/avrdude_7.2-arduino.1_Linux_32bit.tar.gz"
},
{
"size": "1682746",
"checksum": "SHA-256:5536c9fcb41f4a36aa55b3711a0d74943a401261b15cc8aae2473c30ff292021",
"host": "i686-mingw32",
"archiveFileName": "avrdude_7.2-arduino.1_Windows_32bit.tar.gz",
"url": "http://downloads.arduino.cc/tools/avrdude_7.2-arduino.1_Windows_32bit.tar.gz"
}
]
}
]
}
Expand Down

0 comments on commit bca6cfc

Please sign in to comment.