Skip to content

Commit

Permalink
feat: add pragmata pro font
Browse files Browse the repository at this point in the history
  • Loading branch information
b- committed Oct 29, 2023
1 parent 469b82b commit 05d96a9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ jobs:
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/ublue-os/bluefin/bluefin/README.md
io.artifacthub.package.logo-url=https://avatars.githubusercontent.com/u/120078124?s=200&v=4
- name: Get Pragmata Pro zip file
run: |
curl "$(curl -q \
'https://ckdatabasews.icloud.com/database/1/com.apple.cloudkit/production/public/records/resolve' \
--data-raw '{"shortGUIDs":[{"value":"${{ secrets.PRAGMATAPRO_ICLOUD_ID }}"}]}' --compressed | \
jq -r '.results[0].rootRecord.fields.fileContent.value.downloadURL')" -L > /tmp/pragmatapro.zip
# Build image using Buildah action
- name: Build Image
id: build_image
Expand Down
12 changes: 12 additions & 0 deletions scripts/pragmatapro.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# This font is not free or open-source, so I'm hiding the script to download the zip in gh secrets.
# Sorry... I don't want to get in trouble.
#
# To run this locally, you should have a /tmp/pragmatapro.zip

set -euxo pipefail

mkdir /usr/share/fonts/pragmatapro -p
cd /usr/share/fonts/pragmatapro
unzip /tmp/pragmatapro.zip
fc-cache -f "${PWD}"

0 comments on commit 05d96a9

Please sign in to comment.