Skip to content

Instantly share code, notes, and snippets.

@tnn4
Created March 8, 2025 21:40
Show Gist options
  • Save tnn4/0b1c8061690c88f08485cf94d28bc938 to your computer and use it in GitHub Desktop.
Save tnn4/0b1c8061690c88f08485cf94d28bc938 to your computer and use it in GitHub Desktop.
pico 8
#!/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 "$@"
@tnn4
Copy link
Author

tnn4 commented Mar 8, 2025

source <(curl -s https://gist.githubusercontent.com/tnn4/0b1c8061690c88f08485cf94d28bc938/raw/348a6a5b0bfab4936c700de36f88e4893938d0e7/pico8.sh) win

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment