Skip to content

Commit 52f30b8

Browse files
committed
Production-ize the helper
1 parent 29f08f8 commit 52f30b8

22 files changed

+541
-396
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ lint:
88
lintfix:
99
docker run -it --rm -v `pwd`:`pwd` -w `pwd` ghcr.io/realm/swiftlint:0.50.0 swiftlint --autocorrect
1010

11+
clean:
12+
rm -rf .build
13+
1114
build:
1215
@echo "--- Building Release"
1316
swift build -c release --arch arm64
1417

18+
rm -rf .build/artifacts/release
1519
mkdir -p .build/artifacts/release
16-
cp .build/apple/Products/Release/hostmgr .build/artifacts/release/hostmgr
17-
cp .build/apple/Products/Release/hostmgr-helper .build/artifacts/release/hostmgr-helper
20+
cp .build/arm64-apple-macosx/release/hostmgr .build/artifacts/release/hostmgr
21+
cp .build/arm64-apple-macosx/release/hostmgr-helper .build/artifacts/release/hostmgr-helper
1822

1923
codesign --entitlements Sources/hostmgr/hostmgr.entitlements -s "Apple Development: Created via API (886NX39KP6)" .build/artifacts/release/hostmgr --force --verbose
2024
codesign --entitlements Sources/hostmgr/hostmgr.entitlements -s "Apple Development: Created via API (886NX39KP6)" .build/artifacts/release/hostmgr-helper --force --verbose
@@ -48,7 +52,7 @@ build-helper-debug:
4852
swift build
4953
codesign --entitlements Sources/hostmgr/hostmgr.entitlements -s "Apple Development: Created via API" .build/arm64-apple-macosx/debug/hostmgr-helper -v
5054

51-
run-helper-debug: build-helper-debug
55+
run-helper-debug: build-debug build-helper-debug
5256
./.build/arm64-apple-macosx/debug/hostmgr-helper --debug true
5357

5458
reload-helper-debug: build-helper-debug

Sources/hostmgr-helper/AppDelegate.swift

Lines changed: 0 additions & 227 deletions
This file was deleted.

Sources/hostmgr-helper/CommandLineArguments.swift

Lines changed: 0 additions & 6 deletions
This file was deleted.

Sources/hostmgr-helper/DebugWindow.swift

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)