-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
breaking-change: De-structured build configs to
configs
directory
- Loading branch information
Showing
20 changed files
with
739 additions
and
212 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
#!/bin/bash | ||
# A script for preparing binaries of XCursor-Pro Cursors, created by Abdulkaiz Khatri. | ||
|
||
version="v2.0.2" | ||
|
||
error() ( | ||
set -o pipefail | ||
"$@" 2> >(sed $'s,.*,\e[31m&\e[m,' >&2) | ||
) | ||
|
||
get_config_file() { | ||
local key="${1}" | ||
local cfg_file="build.toml" | ||
|
||
if [[ $key == *"Right"* ]]; then | ||
cfg_file="build.right.toml" | ||
fi | ||
|
||
echo $cfg_file | ||
} | ||
|
||
with_version() { | ||
local comment="${1}" | ||
echo "$comment ($version)" | ||
} | ||
|
||
if ! type -p ctgen >/dev/null; then | ||
error ctgen | ||
exit 127 # exit program with "command not found" error code | ||
fi | ||
|
||
declare -A names | ||
names["XCursor-Pro-Dark"]=$(with_version "Modern, Proffesional Dark") | ||
names["XCursor-Pro-Light"]=$(with_version "Modern, Proffesional Light") | ||
names["XCursor-Pro-Red"]=$(with_version "Modern, Proffesional Red") | ||
|
||
# Cleanup old builds | ||
rm -rf themes bin | ||
|
||
# Building XCursor binaries | ||
for key in "${!names[@]}"; do | ||
comment="${names[$key]}" | ||
cfg=$(get_config_file key) | ||
|
||
ctgen "configs/x.$cfg" -p x11 -d "bitmaps/$key" -n "$key" -c "$comment XCursors" & | ||
PID=$! | ||
wait $PID | ||
done | ||
|
||
# Building Windows binaries | ||
for key in "${!names[@]}"; do | ||
comment="${names[$key]}" | ||
cfg=$(get_config_file key) | ||
|
||
ctgen "configs/win_rg.$cfg" -d "bitmaps/$key" -n "$key-Regular" -c "$comment Regular Windows Cursors" & | ||
ctgen "configs/win_lg.$cfg" -d "bitmaps/$key" -n "$key-Large" -c "$comment Large Windows Cursors" & | ||
ctgen "configs/win_xl.$cfg" -d "bitmaps/$key" -n "$key-Extra-Large" -c "$comment Extra Large Windows Cursors" & | ||
PID=$! | ||
wait $PID | ||
done | ||
|
||
# Compressing Binaries | ||
mkdir -p bin | ||
cd themes || exit | ||
|
||
for key in "${!names[@]}"; do | ||
tar -cJvf "../bin/${key}.tar.xz" "${key}" & | ||
PID=$! | ||
wait $PID | ||
done | ||
|
||
# Compressing xcursor-pro-all.tar.xz | ||
cp ../LICENSE . | ||
tar -cJvf "../bin/xcursor-pro-all.tar.xz" --exclude="*-Windows" . & | ||
PID=$! | ||
wait $PID | ||
|
||
# Compressing XCursor-Pro-*-Windows | ||
for key in "${!names[@]}"; do | ||
zip -rv "../bin/${key}-Windows.zip" "${key}-Regular-Windows" "${key}-Large-Windows" "${key}-Extra-Large-Windows" & | ||
PID=$! | ||
wait $PID | ||
done | ||
|
||
cd .. | ||
|
||
# Copying License File for 'bitmaps' | ||
cp LICENSE bitmaps/ | ||
zip -rv bin/bitmaps.zip bitmaps |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
[theme] | ||
name = 'XCursor-Pro-Large' | ||
comment = 'Modern, Proffesional Large Windows Cursors' | ||
website = 'https://github.com/ful1e5/XCursor-pro' | ||
|
||
[config] | ||
bitmaps_dir = '' # This config will assigned with `ctgen -d <path>` | ||
out_dir = '../themes' | ||
platforms = 'windows' | ||
|
||
|
||
[cursors] | ||
[cursors.fallback_settings] | ||
win_sizes = ["26:32", "39:48", "52:64", "77:96", "103:128"] | ||
x_hotspot = 128 | ||
y_hotspot = 128 | ||
win_delay = 1 | ||
|
||
|
||
[cursors.all-scroll] | ||
png = 'all-scroll.png' | ||
win_name = 'Move' | ||
|
||
[cursors.move] | ||
png = 'move.png' | ||
x_hotspot = 137 | ||
y_hotspot = 84 | ||
win_name = 'Grabbing' | ||
|
||
[cursors.bottom_left_corner] | ||
png = 'bottom_left_corner.png' | ||
win_name = 'Dgn2' | ||
|
||
[cursors.bottom_right_corner] | ||
png = 'bottom_right_corner.png' | ||
win_name = 'Dgn1' | ||
|
||
[cursors.cross] | ||
png = 'cross.png' | ||
win_name = 'Cross' | ||
|
||
[cursors.crossed_circle] | ||
png = 'crossed_circle.png' | ||
x_hotspot = 39 | ||
y_hotspot = 32 | ||
win_name = 'Unavailable' | ||
|
||
[cursors.hand1] | ||
png = 'hand1.png' | ||
x_hotspot = 141 | ||
y_hotspot = 88 | ||
win_name = 'Pan' | ||
|
||
[cursors.hand2] | ||
png = 'hand2.png' | ||
x_hotspot = 98 | ||
y_hotspot = 24 | ||
win_name = 'Link' | ||
|
||
[cursors.left_ptr] | ||
png = 'left_ptr.png' | ||
x_hotspot = 123 | ||
y_hotspot = 11 | ||
win_name = 'Pointer' | ||
|
||
[cursors.left_ptr_watch] | ||
png = 'left_ptr_watch-*.png' | ||
x_hotspot = 40 | ||
y_hotspot = 30 | ||
win_sizes = "78:96" | ||
win_name = 'Work' | ||
|
||
[cursors.pencil] | ||
png = 'pencil.png' | ||
x_hotspot = 28 | ||
y_hotspot = 226 | ||
win_name = 'Handwriting' | ||
|
||
[cursors.question_arrow] | ||
png = 'question_arrow.png' | ||
x_hotspot = 39 | ||
y_hotspot = 32 | ||
win_name = 'Help' | ||
|
||
[cursors.right_ptr] | ||
png = 'right_ptr.png' | ||
x_hotspot = 174 | ||
y_hotspot = 42 | ||
win_name = 'Alternate' | ||
|
||
[cursors.sb_h_double_arrow] | ||
png = 'sb_h_double_arrow.png' | ||
x11_name = 'sb_h_double_arrow' | ||
win_name = 'Horz' | ||
|
||
[cursors.sb_v_double_arrow] | ||
png = 'sb_v_double_arrow.png' | ||
win_name = 'Vert' | ||
|
||
[cursors.wait] | ||
png = 'wait-*.png' | ||
win_sizes = "78:96" | ||
win_name = 'Busy' | ||
|
||
[cursors.xterm] | ||
png = 'xterm.png' | ||
x_hotspot = 128 | ||
y_hotspot = 126 | ||
win_name = 'Text' | ||
|
||
[cursors.zoom-in] | ||
png = 'zoom-in.png' | ||
x_hotspot = 112 | ||
y_hotspot = 113 | ||
win_name = 'Zoom-in' | ||
|
||
[cursors.zoom-out] | ||
png = 'zoom-out.png' | ||
x_hotspot = 112 | ||
y_hotspot = 113 | ||
win_name = 'Zoom-out' | ||
|
||
[cursors.person] | ||
png = 'person.png' | ||
x_hotspot = 39 | ||
y_hotspot = 32 | ||
win_name = 'Person' | ||
|
||
[cursors.pin] | ||
png = 'pin.png' | ||
x_hotspot = 39 | ||
y_hotspot = 32 | ||
win_name = 'Pin' |
Oops, something went wrong.