Skip to content

Commit a2148d8

Browse files
authored
Merge pull request #8 from SimplePixelFont/improve/cli-tool
Improve Builder Workflow & Polish README.md
2 parents f4be9ee + 04f0a06 commit a2148d8

4 files changed

Lines changed: 24 additions & 145 deletions

File tree

.ci/build_tarballs.jl

Lines changed: 0 additions & 72 deletions
This file was deleted.

.ci/release.jl

Lines changed: 0 additions & 41 deletions
This file was deleted.

.ci/update_registry.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ println("Registry written.")
4444
try
4545
run(`git config user.name "github-actions[bot]"`)
4646
run(`git config user.email "github-actions[bot]@users.noreply.github.com"`)
47+
run(`git switch -c chore/update-registry`)
4748
run(`git add $registry_path`)
48-
run(`git commit -m "chore: update registry for $target_name v$version"`)
49-
run(`git push origin main`)
49+
run(`git commit -m "update registry for $target_name v$version"`)
50+
run(`git push -u origin chore/update-registry`)
51+
run(`gh pr create --title "Update registry for $target_name v$version"`)
52+
run(`gh pr merge --auto --merge --delete-branch`)
5053
println("✅ Registry pushed.")
5154
catch e
5255
println("⚠️ Could not push registry: $e")

README.md

Lines changed: 19 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22

33
A compiler toolchain Command Line Interface (CLI) for SimplePixelFonts (SPFs).
44

5-
> [!IMPORTANT]
6-
> SPFC is experimental software, expect bugs and limited functionality. Regardless, efforts are dedicated to bridging the gap between SPF and the standardized and traditional TrueType Fonts (TTF).
5+
`spfc` is dedicated to bridging the gap between SPF and multiple different font formats such as; the standardized and traditional TrueType Fonts (TTF), and a dedicated PICO8 custom font cartridge format (P8).
76

8-
# Usage
7+
# Installing
8+
9+
Pre-built binaries for common platforms like Windows, MacOS, and Linux are provided in the [releases](https://github.com/SimplePixelFont/spfc/releases?q=cli&expanded=true). You can download the appropriate archive, extract it, and execute the binary found in the folder.
10+
11+
# Building
912

10-
This tool is written in Rust, you can bulld and run the project with the following pre-requisites:
13+
`spfc` is written in Rust, you can build and run the project with the following pre-requisites:
1114

1215
* [Rust toolchain](https://www.rust-lang.org/tools/install)
1316
* [Git](https://git-scm.com/install/) (Optional)
@@ -25,38 +28,24 @@ Then build and install the binary with Cargo.
2528
cargo install --path .
2629
```
2730

28-
Finally, run `spfc`.
31+
# Usage
32+
2933
```bash
3034
spfc --help
3135
```
3236
```
3337
SimplePixelFont Compiler Toolchain
3438
35-
Usage: spfc [OPTIONS] --input <INPUT>
39+
Usage: spfc <COMMAND>
40+
41+
Commands:
42+
compile
43+
install Install a new target backend
44+
list List all available targets from the registry
45+
update-registry Update the plugin registry by fetching the latest information from the SimplePixelFont/spfc GitHub repository
46+
help Print this message or the help of the given subcommand(s)
3647
3748
Options:
38-
-i, --input <INPUT>
39-
Input SimplePixelFont file path
40-
-o, --output <OUTPUT>
41-
Output TTF file path [default: output.ttf]
42-
-f, --family-name <FAMILY_NAME>
43-
Name of the font family [default: SimplePixelFont]
44-
-c, --copyright <COPYRIGHT>
45-
Description of the font copyright [default: "Copyright (c) 2026 SimplePixelFont"]
46-
-m, --manufacturer <MANUFACTURER>
47-
Name of the font manufacturer [default: SimplePixelFont]
48-
-v, --vendor-url <VENDOR_URL>
49-
URL of the font vendor [default: https://github.com/SimplePixelFont]
50-
-l, --license-description <LICENSE_DESCRIPTION>
51-
Description of the font license [default: "Licensed under the Apache License, Version 2.0; you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0"]
52-
-f, --family-version <FAMILY_VERSION>
53-
Version of the font family [default: 1]
54-
-p, --pixel-size <PIXEL_SIZE>
55-
Pixel size in font units [default: 64]
56-
-d, --decender-pixels <DECENDER_PIXELS>
57-
Decender size in pixels [default: 0]
58-
-h, --help
59-
Print help
60-
-V, --version
61-
Print version
49+
-h, --help Print help
50+
-V, --version Print version
6251
```

0 commit comments

Comments
 (0)