Add the Flutter video editing application with project management, media import, timeline editing, preview, AI assistance, diagnostics and settings. Include shared UI and native host packages, platform runners, application tests and release tooling. Provide usage and contribution guides, the MIT license and third-party notices. Exclude local credentials, build outputs and validation data.
20 lines
731 B
Bash
20 lines
731 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
if [ "$#" -eq 1 ] && { [ "$1" = "--help" ] || [ "$1" = "-h" ]; }; then
|
|
echo "Usage: $0 <app-executable>"
|
|
exit 0
|
|
fi
|
|
|
|
# Replacing native assets under a live Flutter process can load a second SQLite
|
|
# image on a later lazy FFI lookup, mixing its globals with existing handles.
|
|
# Check the exact build product, not other installed copies of the application.
|
|
if [ "$#" -ne 1 ]; then
|
|
echo 'usage: check_macos_build_target.sh <app-executable>' >&2
|
|
exit 2
|
|
fi
|
|
if /bin/ps -axo comm= | /usr/bin/grep -Fx -- "$1" >/dev/null; then
|
|
echo 'error: Cutdex is running from this build target. Save your edits and quit it (or stop the debugger), then rebuild. Hot reload does not require a native rebuild.' >&2
|
|
exit 1
|
|
fi
|