sneedium/sneedium-maker-mac.sh
The Ghost of FOSS' Future 726d22f096
will it work?
perhaps not
2024-09-03 19:10:29 -05:00

13 lines
489 B
Bash

y=$(date +%y)
read -p "Sneedium4Mac # of year $y (1,2,3,4...):" v
npm run make-mac
mkdir "Sneedium $y.$v"
cp -r sneedium-darwin-arm64 "Sneedium4Mac $y.$v"
cp -r sneedium-darwin-x64 "Sneedium4Mac $y.$v"
rm -rf "Sneedium4Mac $y.$v/sneedium-darwin-arm64"
rm -rf "Sneedium4Mac $y.$v/sneedium-darwin-x64"
tar -czvf "Sneedium4Mac $y.$v.tar.gz" "Sneedium4Mac $y.$v"
rm -rf "Sneedium4Mac $y.$v"
mkdir ~/sneedium-mac-bins
cp "Sneedium $y.$v.tar.gz" "~/sneedium-mac-bins"
rm "Sneedium $y.$v.tar.gz"