Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

Release: short labels for the big games, and none over GitHub's 255 characters

Mason363d0404236405b
diff --git a/tools/release.py b/tools/release.py
index e1c01922..07529acf 100644
--- a/tools/release.py
+++ b/tools/release.py
@@ -23,44 +23,22 @@ REPO = "https://github.com/Mason363/NumPlay"
EXTRAS = set()
# games too big to fit next to NumPlay on the calculator: only on their own, in a section of their own
ALONE = {
- "celeste": ("Celeste", "the whole climb up Celeste Mountain. Too big to share the calculator with NumPlay: install it "
- "on its own"),
- "hollowknight": ("Hollow Knight", "from King's Pass to Hornet in Greenpath. Too big to share the calculator with "
- "NumPlay: install it on its own"),
- "undertale": ("Undertale", "the whole Underground, from the bed of golden flowers to the barrier and the neutral "
- "ending: the Ruins, Snowdin, Waterfall, Hotland, the CORE and New Home. Too big to share the calculator "
- "with NumPlay: install it on its own"),
- "subway": ("Subway Surfers", "the endless run down the subway's tracks in 3D: trains, ramps, barriers, coins, "
- "power-ups, hoverboards, the Inspector and his dog, the shop and the missions. Too big to share the "
- "calculator with NumPlay: install it on its own"),
- "fnaf": ("Five Nights at Freddy's", "survive five nights at Freddy Fazbear's Pizza, then the 6th and the Custom "
- "Night, with the game's own pictures. Too big to share the calculator with NumPlay: install it on its own"),
- "hillclimb": ("Hill Climb Racing", "Newton Bill's ride up the hills: ten stages, eight vehicles and their "
- "upgrades. Too big to share the calculator with NumPlay: install it on its own"),
- "championisland": ("Champion Island", "the Doodle Champion Island Games. Too big to share the calculator with "
- "NumPlay: install it on its own"),
- "numpowder": ("NumPowder", "The Powder Toy on the calculator: sand, water, fire, acid, electricity and nearly 200 "
- "elements. Too big to share the calculator with NumPlay: install it on its own"),
- "finalearth2": ("The Final Earth 2", "build a city on floating islands in space, every scenario and free play map. "
- "Too big to share the calculator with NumPlay: install it on its own"),
- "doom": ("Doom", "id Software's Doom, the shareware episode Knee-Deep in the Dead: all nine levels of Phobos. Too "
- "big to share the calculator with NumPlay: install it on its own"),
- "isaac": ("The Binding of Isaac", "a whole run, from the Basement past Mom and her heart to Sheol and the Cathedral. "
- "Too big to share the calculator with NumPlay: install it on its own"),
- "pvz": ("Plants vs. Zombies", "the whole Adventure, from the front lawn to the roof and Dr. Zomboss: 50 levels, 40 "
- "plants, 24 zombies, Crazy Dave, his shop and the Almanac. Too big to share the calculator with NumPlay: "
- "install it on its own"),
- "leveldevil": ("Level Devil", "Unept's troll platformer, all sixteen worlds of five rooms, with the game's own "
- "rooms and traps. Install it on its own"),
- "sonic": ("Sonic the Hedgehog", "the whole 1991 game: Green Hill to Scrap Brain, the Final Zone, the Special "
- "Stages and the six Chaos Emeralds, and the ending. Too big to share the calculator with NumPlay: install "
- "it on its own"),
- "numvisuals": ("NumVisuals", "moving backgrounds with a clock, a stopwatch, a timer, a counter or your own words. "
- "Its backgrounds are also in NumPlay's home screen (Backspace): install it on its own"),
- "cookieclicker": ("Cookie Clicker", "the whole game, with its own pictures: every building and upgrade, golden and "
- "wrath cookies, the grandmapocalypse, ascension and the heavenly upgrades, sugar lumps, the "
- "dragon, Santa and the Grimoire. Too big to share the calculator with NumPlay: install it on its "
- "own"),
+ "celeste": ("Celeste", "the whole climb up Celeste Mountain"),
+ "hollowknight": ("Hollow Knight", "from King's Pass to Hornet in Greenpath"),
+ "undertale": ("Undertale", "the whole Underground, to the barrier and the neutral ending"),
+ "subway": ("Subway Surfers", "the endless run down the subway's tracks, in 3D"),
+ "fnaf": ("Five Nights at Freddy's", "five nights at Freddy Fazbear's Pizza, the 6th and the Custom Night"),
+ "hillclimb": ("Hill Climb Racing", "Newton Bill's ride up the hills: ten stages, eight vehicles"),
+ "championisland": ("Champion Island", "the Doodle Champion Island Games"),
+ "numpowder": ("NumPowder", "The Powder Toy on the calculator, with nearly 200 elements"),
+ "finalearth2": ("The Final Earth 2", "build a city on floating islands in space"),
+ "doom": ("Doom", "Knee-Deep in the Dead, all nine levels"),
+ "isaac": ("The Binding of Isaac", "a whole run, from the Basement to Sheol and the Cathedral"),
+ "pvz": ("Plants vs. Zombies", "the whole Adventure, from the front lawn to Dr. Zomboss"),
+ "leveldevil": ("Level Devil", "Unept's troll platformer, all sixteen worlds"),
+ "sonic": ("Sonic the Hedgehog", "the whole 1991 game, Green Hill to the Final Zone"),
+ "numvisuals": ("NumVisuals", "moving backgrounds with a clock, a stopwatch, a timer, a counter or your own words"),
+ "cookieclicker": ("Cookie Clicker", "the whole game, to the grandmapocalypse, ascension and the dragon"),
}
VARIANTS = [
("NumPlay-Invisible.nwa", "The same app, hidden: a blank icon with no name"),
@@ -141,6 +119,8 @@ def main():
for path, label in files:
if not os.path.exists(path):
raise SystemExit(f"release: missing {path}")
+ if len(label) > 255: # (GitHub refuses longer labels, and the release with them)
+ raise SystemExit(f"release: {os.path.basename(path)}'s label is {len(label)} characters, 255 at most")
print(f"{path}#{label}")