Created
March 8, 2025 21:40
-
-
Save tnn4/0b1c8061690c88f08485cf94d28bc938 to your computer and use it in GitHub Desktop.
pico 8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
me=$(basename "$0") | |
LINK="https://www.lexaloffle.com/dl/7tiann/pico-" | |
PICO_VERSION="8_0.2.6b" | |
PLATFORMS=("setup.exe" "windows.zip" "i386.zip" "amd64.zip" "osx.zip" "raspi.zip") | |
final_link=${LINK}${PICO_VERSION}_${p} | |
help() { | |
echo "./${me} [ win | linux | mac | raspi | all ]" | |
} | |
main(){ | |
if [ "${1}" = "win" ]; then | |
wget ${LINK}${PICO_VERSION}_windows.zip | |
elif [ "${1}" = "linux" ]; then | |
wget ${LINK}${PICO_VERSION}_amd64.zip | |
elif [ "${1}" = "mac" ]; then | |
wget ${LINK}${PICO_VERSION}_osx.zip | |
elif [ "${1}" = "raspi" ]; then | |
wget ${LINK}${PICO_VERSION}_raspi.zip | |
elif [ "${1}" = "all" ]; then | |
for p in ${PLATFORMS[@]}; do | |
echo "getting ${final_link}" | |
wget ${final_link} | |
sleep 10 | |
done | |
fi | |
} | |
help | |
main "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source <(curl -s https://gist.githubusercontent.com/tnn4/0b1c8061690c88f08485cf94d28bc938/raw/348a6a5b0bfab4936c700de36f88e4893938d0e7/pico8.sh) win