Files
ICCery-CPU/Scripts/package_app.sh
gronod e319e5b106
Build macOS Packages / Build macOS (Intel) (pull_request) Successful in 39s
Build macOS Packages / Build macOS (Apple Silicon) (pull_request) Successful in 40s
Build macOS Packages / Build macOS (Universal) (pull_request) Failing after 10s
fix: resolve PPD media type and tray option discovery and selection
- Parse PPD translation strings and decode hex escapes (e.g. CD<2F>DVD -> CD/DVD)
- Populate InspectorView media type and tray dropdowns with human-readable titles while preserving computer-readable choice codes
- Fix empty-array nil coalescing bug in InspectorView preventing empty tray and media type popups
- Support OEM vendor PPD keywords (Canon CNIJMediaType/CNIJMediaSupply, Epson EPIJ_FdSo)
- Add dual-identity lookup in PrintEngine and InspectorView for robust choice code vs title resolution
- Add comprehensive PPDOptionsTests and CLI test runner

Closes #1, Closes #2
2026-09-07 22:45:02 +01:00

28 lines
837 B
Bash
Executable File

#!/bin/bash
# Package whatever apps are already in build/apps/ into dist/ + release-assets.
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
PREFIX="${1:-TargetPrint}"
SCRIPTS="$(dirname "$0")"
for arch in x86_64 arm64 universal; do
app="$ROOT/build/apps/$arch/TargetPrint.app"
if [[ -d "$app" ]]; then
"$SCRIPTS/package_release.sh" "$arch" "${PREFIX}-macos-${arch}"
fi
done
if [[ -d "$ROOT/build/release-assets/vendor-iccery" ]]; then
"$SCRIPTS/vendor_bundle.sh" "${PREFIX}-vendor-iccery"
fi
mkdir -p "$ROOT/dist"
if [[ -d "$ROOT/build/apps/universal/TargetPrint.app" ]]; then
rm -rf "$ROOT/dist/TargetPrint.app"
cp -R "$ROOT/build/apps/universal/TargetPrint.app" "$ROOT/dist/TargetPrint.app"
fi
echo "==> dist/ and build/release-assets/ ready"
ls -la "$ROOT/build/release-assets" || true