2024-09-03 18:47:16 -05:00
|
|
|
y=$(date +%y)
|
|
|
|
read -p "Sneedium4Mac # of year $y (1,2,3,4...):" v
|
2024-09-03 18:51:36 -05:00
|
|
|
npm run make-mac
|
2024-09-03 18:47:16 -05:00
|
|
|
mkdir "Sneedium $y.$v"
|
2024-09-03 19:10:29 -05:00
|
|
|
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"
|
2024-09-03 18:47:16 -05:00
|
|
|
tar -czvf "Sneedium4Mac $y.$v.tar.gz" "Sneedium4Mac $y.$v"
|
2024-09-03 19:01:28 -05:00
|
|
|
rm -rf "Sneedium4Mac $y.$v"
|
2024-09-03 18:47:16 -05:00
|
|
|
mkdir ~/sneedium-mac-bins
|
2024-09-03 19:10:29 -05:00
|
|
|
cp "Sneedium $y.$v.tar.gz" "~/sneedium-mac-bins"
|
|
|
|
rm "Sneedium $y.$v.tar.gz"
|