Files
__mahjong/hello/hello-platform/util/step/runWindows
T
2026-11-03 21:57:07 +03:00

14 lines
329 B
Bash

#!/bin/bash -e
TARGET=$1
STEP=$((STEP+1))
echo "Step $STEP: run $TARGET for Windows"
BIN_DIR=$(swift build --package-path "$(cygpath -m "$SDIR/../ver-windows")" --show-bin-path)
EXE="$(cygpath -u "${BIN_DIR%$'\r'}")/$TARGET.exe"
if [[ ! -f "$EXE" ]]; then
echo "Run util/build-windows first." >&2
exit 1
fi
exec "$EXE"