TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
505 B

#!/bin/sh
set -eu
project_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
executable="$project_dir/typephp_macos_hello"
bundle="$project_dir/dist/TypePHP macOS Hello.app"
if [ ! -x "$executable" ]; then
echo "Missing $executable; build project.yml first." >&2
exit 1
fi
mkdir -p "$bundle/Contents/MacOS"
cp "$project_dir/Info.plist" "$bundle/Contents/Info.plist"
cp "$executable" "$bundle/Contents/MacOS/typephp-macos-hello"
codesign --force --deep --sign - "$bundle"
echo "Created $bundle"