mirror of
https://github.com/ful1e5/apple_cursor.git
synced 2025-05-31 15:28:20 -04:00
refactor: Update build process
- fixed #87 - fixed #84 - fixed #83 - fixed #82 - fixed #68
This commit is contained in:
parent
8438ed9020
commit
665c488b75
514 changed files with 742 additions and 2175 deletions
56
release.sh
Executable file
56
release.sh
Executable file
|
@ -0,0 +1,56 @@
|
|||
#!/bin/bash
|
||||
# A script for preparing binaries for version release of Apple Cursors, by Abdulkaiz Khatri
|
||||
|
||||
|
||||
declare -A names
|
||||
names["macOS-BigSur"]="macOS Big Sur Cursors"
|
||||
names["macOS-BigSur-White"]="macOS Big Sur White Cursors"
|
||||
names["macOS-Monterey"]="macOS Monterey Cursors"
|
||||
names["macOS-Monterey-White"]="macOS Monterey White Cursors"
|
||||
|
||||
# Cleanup old builds
|
||||
rm -rf themes bin
|
||||
|
||||
# Building Bibata XCursor binaries
|
||||
for key in "${!names[@]}";
|
||||
do
|
||||
comment="${names[$key]}";
|
||||
ctgen build.toml -p x11 -d "bitmaps/$key" -n "$key" -c "$comment" &
|
||||
PID=$!
|
||||
wait $PID
|
||||
done
|
||||
|
||||
|
||||
# Building Bibata Windows binaries
|
||||
for key in "${!names[@]}";
|
||||
do
|
||||
comment="${names[$key]}";
|
||||
ctgen build.toml -p windows -s 16 -d "bitmaps/$key" -n "$key-Small" -c "$comment" &
|
||||
ctgen build.toml -p windows -s 24 -d "bitmaps/$key" -n "$key-Regular" -c "$comment" &
|
||||
ctgen build.toml -p windows -s 32 -d "bitmaps/$key" -n "$key-Large" -c "$comment" &
|
||||
ctgen build.toml -p windows -s 48 -d "bitmaps/$key" -n "$key-Extra-Large" -c "$comment" &
|
||||
PID=$!
|
||||
wait $PID
|
||||
done
|
||||
|
||||
# Compressing Binaries
|
||||
mkdir -p bin
|
||||
cd themes
|
||||
|
||||
for key in "${!names[@]}";
|
||||
do
|
||||
tar -czvf "../bin/${key}.tar.gz" "${key}" &
|
||||
PID=$!
|
||||
wait $PID
|
||||
done
|
||||
|
||||
for key in "${!names[@]}";
|
||||
do
|
||||
zip -rv "../bin/${key}-Windows.zip" "${key}-Small-Windows" "${key}-Regular-Windows" "${key}-Large-Windows" "${key}-Extra-Large-Windows" &
|
||||
PID=$!
|
||||
wait $PID
|
||||
done
|
||||
|
||||
cd ..
|
||||
|
||||
echo "$x_bin"
|
Loading…
Add table
Add a link
Reference in a new issue