14 lines
408 B
Bash
Executable File
14 lines
408 B
Bash
Executable File
#!/bin/bash
|
|
# 设置Qt插件路径
|
|
export QT_PLUGIN_PATH=/opt/homebrew/Cellar/qt@5/5.15.18/plugins
|
|
|
|
# 进入脚本所在目录
|
|
cd "$(dirname "$0")"
|
|
|
|
# 确保配置文件存在
|
|
mkdir -p build/CalibratorLauncher.app/Contents/MacOS/config
|
|
cp -f config/launcher_config.json build/CalibratorLauncher.app/Contents/MacOS/config/
|
|
|
|
# 启动应用
|
|
exec ./build/CalibratorLauncher.app/Contents/MacOS/CalibratorLauncher
|