Simplify the process of building the universal bundle on the macOS

This commit is contained in:
Mark Kim 2024-02-03 22:18:41 -05:00
parent c1b2811bbf
commit e26c2873db
6 changed files with 28 additions and 8 deletions

View file

@ -1,7 +1,9 @@
#!/bin/bash
if [[ -d TuxPaint.app ]]; then
cd TuxPaint.app/Contents && FONTCONFIG_PATH=Resources/etc fc-list
BUNDLE=TuxPaint-$(uname -m).app
if [[ -d "${BUNDLE}" ]]; then
cd "${BUNDLE}/Contents" && FONTCONFIG_PATH=Resources/etc fc-list
else
echo "./TuxPaint.app: No such folder" 1>&2
echo "./${BUNDLE}: No such folder" 1>&2
fi