Skip to content

Commit

Permalink
feat: Attach version meta-data inside cursor packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ful1e5 committed Jan 27, 2024
1 parent b420533 commit 04ca866
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

### What's New?

- Attach version meta-data inside cursor packages

## [v2.0.6] - 25 January 2024

### What's New?
Expand Down
33 changes: 20 additions & 13 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash
# A script for preparing binaries of Bibata Cursors, by Abdulkaiz Khatri
# A script for preparing binaries of Bibata Cursors, created by Abdulkaiz Khatri.

version="v2.0.6"

error() (
set -o pipefail
Expand All @@ -17,24 +19,29 @@ get_config_file() {
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["Bibata-Modern-Amber"]="Yellowish and rounded edge Bibata cursors."
names["Bibata-Modern-Amber-Right"]="Yellowish and rounded edge right-hand Bibata cursors."
names["Bibata-Modern-Classic"]="Black and rounded edge Bibata cursors."
names["Bibata-Modern-Classic-Right"]="Black and rounded edge right-hand Bibata cursors."
names["Bibata-Modern-Ice"]="White and rounded edge Bibata cursors."
names["Bibata-Modern-Ice-Right"]="White and rounded edge right-hand Bibata cursors."
names["Bibata-Original-Amber"]="Yellowish and sharp edge Bibata cursors."
names["Bibata-Original-Amber-Right"]="Yellowish and sharp edge right-hand Bibata cursors."
names["Bibata-Original-Classic"]="Black and sharp edge Bibata cursors."
names["Bibata-Original-Classic-Right"]="Black and sharp edge right-hand Bibata cursors."
names["Bibata-Original-Ice"]="White and sharp edge Bibata cursors."
names["Bibata-Original-Ice-Right"]="White and sharp edge right-hand Bibata cursors."
names["Bibata-Modern-Amber"]=$(with_version "Yellowish and rounded edge Bibata cursors")
names["Bibata-Modern-Amber-Right"]=$(with_version "Yellowish and rounded edge right-hand Bibata cursors")
names["Bibata-Modern-Classic"]=$(with_version "Black and rounded edge Bibata cursors")
names["Bibata-Modern-Classic-Right"]=$(with_version "Black and rounded edge right-hand Bibata cursors")
names["Bibata-Modern-Ice"]=$(with_version "White and rounded edge Bibata cursors")
names["Bibata-Modern-Ice-Right"]=$(with_version "White and rounded edge right-hand Bibata cursors")
names["Bibata-Original-Amber"]=$(with_version "Yellowish and sharp edge Bibata cursors")
names["Bibata-Original-Amber-Right"]=$(with_version "Yellowish and sharp edge right-hand Bibata cursors")
names["Bibata-Original-Classic"]=$(with_version "Black and sharp edge Bibata cursors")
names["Bibata-Original-Classic-Right"]=$(with_version "Black and sharp edge right-hand Bibata cursors")
names["Bibata-Original-Ice"]=$(with_version "White and sharp edge Bibata cursors")
names["Bibata-Original-Ice-Right"]=$(with_version "White and sharp edge right-hand Bibata cursors")

# Cleanup old builds
rm -rf themes bin
Expand Down

0 comments on commit 04ca866

Please sign in to comment.