Fix skin exposure mask islands and OSC coordinates; prepare 1.0.2
这个提交包含在:
1 父节点
dd04a471e1
当前提交
d561537eed
19 个文件已更改
+364
-35
没有与搜索条件相匹配的文件
@@ -45,6 +45,13 @@ try:
|
||||
raise RuntimeError('Apple did not accept notarization; original installed app retained')
|
||||
run(['xcrun','stapler','staple',str(app)])
|
||||
run(['xcrun','stapler','validate',str(app)])
|
||||
# A live host retains its old XPC/OSC connection. Replacing the bundle while
|
||||
# that connection exists can deadlock host shutdown or select stale code.
|
||||
running=run(['ps','-axo','comm=']).splitlines()
|
||||
hosts={'/Applications/Motion.app/Contents/MacOS/Motion',
|
||||
'/Applications/Final Cut Pro.app/Contents/MacOS/Final Cut Pro'}
|
||||
if hosts.intersection(line.strip() for line in running):
|
||||
raise RuntimeError('Close Motion and Final Cut Pro before installing; installed app retained')
|
||||
if installed.exists():
|
||||
info=plistlib.loads((installed/'Contents/Info.plist').read_bytes())
|
||||
if info.get('CFBundleIdentifier')!=bundle_id:raise RuntimeError('The installation path belongs to another product')
|
||||
@@ -60,6 +67,9 @@ try:
|
||||
if info.get('CFBundleIdentifier')!=bundle_id or 'TeamIdentifier=B3W25FX5H5' not in signature:raise RuntimeError('Installed app identity mismatch')
|
||||
(logs/'installed-signature.txt').write_text(signature)
|
||||
run(['pluginkit','-a',str(installed/'Contents/PlugIns/beatygril XPC Service.pluginkit')])
|
||||
# Xcode may register its build product. Only the installed plugin should
|
||||
# be discoverable while native host validation is in progress.
|
||||
run(['pluginkit','-r',str(plugin)])
|
||||
except Exception:
|
||||
if installed.exists():shutil.rmtree(installed)
|
||||
if previous.exists():shutil.move(str(previous),str(installed))
|
||||
|
||||
可执行文件
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/zsh
|
||||
set -euo pipefail
|
||||
cd "${0:A:h:h}"
|
||||
output_dir=$(mktemp -d /tmp/paintfcp-osc-tests.XXXXXX)
|
||||
trap 'rm -rf "$output_dir"' EXIT
|
||||
plugin_dir="$PWD/beatygril/beatygril/Plugin"
|
||||
sdk_frameworks=/Library/Developer/SDKs/FxPlug.sdk/Library/Frameworks
|
||||
runtime_frameworks=/Library/Developer/Frameworks
|
||||
compiler_extra=()
|
||||
if [[ "${PAINTFCP_OSC_ASAN:-0}" == 1 ]]; then
|
||||
compiler_extra=(-fsanitize=address -g)
|
||||
fi
|
||||
xcrun clang "${compiler_extra[@]}" -fobjc-arc -fmodules -Wall -Wextra -Wno-unused-parameter \
|
||||
-mmacosx-version-min=13.0 -I "$plugin_dir" -F "$sdk_frameworks" -F "$runtime_frameworks" \
|
||||
-Wl,-rpath,"$runtime_frameworks" \
|
||||
"$plugin_dir/PGFaceSelectOSC.m" tests/osc_tests.m \
|
||||
-framework Foundation -framework CoreImage -framework CoreGraphics \
|
||||
-framework CoreMedia -framework CoreVideo -framework IOSurface \
|
||||
-framework FxPlug -framework PluginManager -o "$output_dir/osc-tests"
|
||||
"$output_dir/osc-tests" "$plugin_dir/Info.plist"
|
||||
在新工单中引用
屏蔽一个用户