mirror of
https://github.com/Anon-Planet/thgtoa.git
synced 2026-09-19 16:18:44 +02:00
Compare commits
4
Commits
v1.2.5
..
9e21392442
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e21392442 | ||
|
|
b22e0da09c | ||
|
|
8b98031d39 | ||
|
|
cba1d637bf |
@@ -118,7 +118,9 @@ jobs:
|
||||
path: repo
|
||||
|
||||
- name: 📂 Copy export files into repo
|
||||
run: cp -v export/* repo/export/
|
||||
run: |
|
||||
mkdir -p repo/export
|
||||
cp -v export/* repo/export/
|
||||
|
||||
- name: 🔏 Configure GPG commit signing
|
||||
env:
|
||||
@@ -126,9 +128,12 @@ jobs:
|
||||
run: |
|
||||
mkdir -p ~/.gnupg
|
||||
echo "$GPG_PRIVATE_KEY" | gpg --batch --quiet --import > /dev/null 2>&1 || true
|
||||
FINGERPRINT=$(gpg --batch --list-secret-keys --with-colons 2>/dev/null \
|
||||
| awk -F: '/^fpr/ { print $10; exit }')
|
||||
git config --global commit.gpgSign true
|
||||
git config --global gpg.program gpg
|
||||
git config --global gpg.exectimeout 180
|
||||
git config --global user.signingkey "$FINGERPRINT"
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
@@ -212,7 +217,7 @@ jobs:
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -y gnupg
|
||||
gpg --import pgp/anonymousplanet-release.asc
|
||||
gpg --import pgp/anonymousplanet.asc
|
||||
|
||||
- name: 🐍 Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
ed1fff860d113609cbeaf38beef5342b473d5f09b9263020ef0a82f42ba9c8d4d17ad2743267a76b0f315c4719f9866d3e2018bc8f4eb64a46d0fcbec0c6ee2f thgtoa.pdf
|
||||
1bd77081bf7f2962f8a52a141e286fc7cb571e17b1b551d1baab5fd892cf874a1ace903301f263d7073251a1c53a4d141aa346fb0c87ea0af0b96703127f5133 thgtoa-dark.pdf
|
||||
@@ -0,0 +1,2 @@
|
||||
85e8824dcda6176ac4444fdc92ff5272527065aabb2c240d3e2f87418aa255b3 thgtoa.pdf
|
||||
28675b585406f0e0543e4f63d5cff6507a064bf4d91db9ff82e4a826e8c8959d thgtoa-dark.pdf
|
||||
+56926
File diff suppressed because one or more lines are too long
+76628
File diff suppressed because one or more lines are too long
@@ -377,7 +377,7 @@ def main() -> int:
|
||||
if not key:
|
||||
print("\n✗ Could not resolve a signing key. Aborting.")
|
||||
print(" Import the release key with:")
|
||||
print(" gpg --import pgp/anonymousplanet-release.asc")
|
||||
print(" gpg --import pgp/anonymousplanet.asc")
|
||||
return 1
|
||||
print(f" Resolved to: {key}")
|
||||
|
||||
|
||||
+4
-1
@@ -82,7 +82,10 @@ def apply_dark_theme(
|
||||
# Saturation (HSV model, vectorised)
|
||||
ch_min = np.min(norm, axis=2)
|
||||
ch_max = np.max(norm, axis=2)
|
||||
sat = np.where(ch_max > 0.001, (ch_max - ch_min) / ch_max, 0.0).astype(np.float32)
|
||||
# Suppress the numpy divide error, idc
|
||||
# division happens on all elements including the zero ones
|
||||
with np.errstate(divide='ignore', invalid='ignore'):
|
||||
sat = np.where(ch_max > 0.001, (ch_max - ch_min) / ch_max, 0.0).astype(np.float32)
|
||||
|
||||
# --- Masks ---
|
||||
# High-saturation = image/photo content — leave untouched
|
||||
|
||||
Reference in New Issue
Block a user