macoc/scripts/lint.sh
casona f0ac170dbb
Some checks failed
macoc CI (Docker) / swift-core (push) Failing after -4s
feat: polish macOS icon and clean generated documentation
2026-10-26 11:42:24 +03:00

28 lines
1.2 KiB
Bash
Executable file

#!/usr/bin/env bash
source "$(dirname "$0")/common.sh"
cd "$ROOT"
git diff --check
git diff --cached --check
test -f Package.swift
test -f Resources/Info.plist
test -s Resources/AppIcon.png
test -s Resources/AppIcon-preview.png
test -s Resources/IconArtwork.jpg
python3 scripts/tests/test_icon_assets.py
test -f Sources/CapswitchApp/MacOSInputController.swift
test -f Sources/CapswitchApp/InputSourceManager.swift
test -f Sources/CapswitchApp/ApplicationRelauncher.swift
test -f Sources/CapswitchApp/AppInstallationManager.swift
test -f Sources/CapswitchApp/LoginItemManager.swift
test -f Sources/CapswitchHID/CapswitchRemapping.c
grep -q 'CFBundleIconFile' Resources/Info.plist
grep -q 'dev.local.Capswitch' Resources/Info.plist
grep -q 'TISSelectInputSource' Sources/CapswitchApp/InputSourceManager.swift
grep -q 'IOHIDServiceClientSetProperty' Sources/CapswitchHID/CapswitchRemapping.c
grep -q '/usr/bin/open' Sources/CapswitchApp/ApplicationRelauncher.swift
grep -q 'SMAppService.mainApp' Sources/CapswitchApp/LoginItemManager.swift
test -f .forgejo/workflows/ci.yml
for name in build bundle test test-linux-core install doctor clean lint verify icon sign package publish-release setup-signing; do
bash -n "scripts/$name.sh"
done
echo "lint: PASS"