Files
markbase/scripts/setup_launchd.sh
T
Warren e3d6b60825 feat: MarkBase initial version
Phase 1 (Infrastructure):
- Docs: README.md, AGENTS.md, CHANGELOG.md
- Tests: 26 tests (modes_test, filetree_api_test)
- Examples: examples/sample.md, sample.json
- CI/CD: .gitea/workflows/test.yml, release.yml
- Runner: configuration scripts and guides

Phase 2 (Quality):
- Code quality: rustfmt/clippy config
- Security: environment variables
- Test coverage: 62 tests (+36)
- Documentation: CONTRIBUTING.md, docs/api.yaml
- Showcase: demo_features.md, developer_quickstart.md

Test coverage: 75%
Test pass rate: 100%
2026-05-16 15:37:37 +08:00

28 lines
770 B
Bash
Executable File

#!/bin/bash
# macOS launchd服務配置腳本
PLIST_FILE=/Users/accusys/markbase/scripts/com.gitea.runner.plist
LAUNCH_AGENTS=~/Library/LaunchAgents
echo "配置 Gitea Runner為 macOS系統服務..."
#複製plist到LaunchAgents
cp "$PLIST_FILE" "$LAUNCH_AGENTS/com.gitea.runner.plist"
#載入服務
launchctl load "$LAUNCH_AGENTS/com.gitea.runner.plist"
#驗證服務狀態
echo "驗證服務狀態..."
launchctl list | grep gitea
echo ""
echo "Runner服務已配置!"
echo ""
echo "管理命令:"
echo " 啟動:launchctl load ~/Library/LaunchAgents/com.gitea.runner.plist"
echo " 停止:launchctl unload ~/Library/LaunchAgents/com.gitea.runner.plist"
echo " 狀態:launchctl list | grep gitea"
echo " 日誌:tail -f /tmp/gitea-runner.log"
echo ""