aboutsummaryrefslogtreecommitdiffstats
path: root/.extras
diff options
context:
space:
mode:
Diffstat (limited to '.extras')
-rw-r--r--.extras/assets/tiles-03-1024x819.jpgbin0 -> 30042 bytes
-rwxr-xr-x.extras/hooks/pre-commit21
-rw-r--r--.extras/nvchecker.toml29
3 files changed, 50 insertions, 0 deletions
diff --git a/.extras/assets/tiles-03-1024x819.jpg b/.extras/assets/tiles-03-1024x819.jpg
new file mode 100644
index 0000000..53d576d
--- /dev/null
+++ b/.extras/assets/tiles-03-1024x819.jpg
Binary files differ
diff --git a/.extras/hooks/pre-commit b/.extras/hooks/pre-commit
index 06cb7a5..d2f9506 100755
--- a/.extras/hooks/pre-commit
+++ b/.extras/hooks/pre-commit
@@ -31,6 +31,27 @@
set -e
exec 1>&2
+# Check for staged source archives (.tar.gz, .tar.xz, .tar.bz2, .zip, etc.)
+# Symlinks: auto-removed. Regular files: blocked (must not be committed).
+source_pattern='\.\(tar\.gz\|tar\.xz\|tar\.bz2\|tar\.zst\|tgz\|zip\|7z\|rpm\|deb\)$'
+source_blocked=""
+while IFS= read -r f; do
+ mode=$(git ls-files --stage -- "$f" | awk '{print $1}')
+ if [ "$mode" = "120000" ]; then
+ echo "Removing staged symlink to source archive: $f"
+ git rm --cached -q -- "$f"
+ rm -f "$f"
+ else
+ source_blocked="$source_blocked $f"
+ fi
+done < <(git diff --cached --name-only | grep -i "$source_pattern")
+if [ -n "$source_blocked" ]; then
+ echo "*** ERROR: source archives staged for commit:"
+ for f in $source_blocked; do echo "*** $f"; done
+ echo "*** Remove them with: git rm --cached -- $source_blocked"
+ exit 1
+fi
+
# There should normally only be one changed build per commit, but this
# rule may get broken when the repo's frozen pending a new Slackware
# release. So use a loop.
diff --git a/.extras/nvchecker.toml b/.extras/nvchecker.toml
index 44dc3b4..4cb06d6 100644
--- a/.extras/nvchecker.toml
+++ b/.extras/nvchecker.toml
@@ -46,3 +46,32 @@ use_latest_release = true
source = "httpheader"
url = "https://discord.com/api/download?platform=linux&format=tar.gz"
regex = "discord-(.*)\\.tar.*"
+
+[solvespace]
+source = "github"
+github = "solvespace/solvespace"
+use_latest_release = true
+prefix = "v"
+
+[gamescope]
+source = "github"
+github = "ValveSoftware/gamescope"
+use_max_tag = true
+
+[nvchecker]
+source = "github"
+github = "lilydjwg/nvchecker"
+use_max_tag = true
+prefix = "v"
+
+[python3-structlog]
+source = "pypi"
+pypi = "structlog"
+
+[python3-platformdirs]
+source = "pypi"
+pypi = "platformdirs"
+
+[python3-awesomeversion]
+source = "pypi"
+pypi = "awesomeversion"