diff --git a/macos/.gitignore b/macos/.gitignore index e11dfec..f68871f 100644 --- a/macos/.gitignore +++ b/macos/.gitignore @@ -1,2 +1,2 @@ -.build/ -dist/ +DerivedData/ +Transui.xcodeproj/ diff --git a/macos/Package.swift b/macos/Package.swift deleted file mode 100644 index 34bff6e..0000000 --- a/macos/Package.swift +++ /dev/null @@ -1,15 +0,0 @@ -// swift-tools-version: 5.9 - -import PackageDescription - -let package = Package( - name: "TransuiMac", - platforms: [.macOS("15.0")], - products: [ - .executable(name: "Transui", targets: ["Transui"]) - ], - targets: [ - .executableTarget(name: "Transui"), - .testTarget(name: "TransuiTests", dependencies: ["Transui"]), - ] -) diff --git a/macos/Transui.entitlements b/macos/Transui.entitlements new file mode 100644 index 0000000..d459cb2 --- /dev/null +++ b/macos/Transui.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.security.device.audio-input + + + diff --git a/macos/project.yml b/macos/project.yml new file mode 100644 index 0000000..8d44782 --- /dev/null +++ b/macos/project.yml @@ -0,0 +1,67 @@ +name: Transui + +options: + createIntermediateGroups: true + deploymentTarget: + macOS: "15.0" + xcodeVersion: "16.0" + +configs: + Debug: debug + Release: release + +settings: + base: + CODE_SIGN_STYLE: Automatic + CURRENT_PROJECT_VERSION: 1 + MARKETING_VERSION: 0.1.0 + SWIFT_VERSION: 5.0 + +targets: + Transui: + type: application + platform: macOS + deploymentTarget: "15.0" + sources: + - path: Sources/Transui + settings: + base: + CODE_SIGN_ENTITLEMENTS: Transui.entitlements + ENABLE_HARDENED_RUNTIME: "YES" + GENERATE_INFOPLIST_FILE: "NO" + INFOPLIST_FILE: Info.plist + PRODUCT_BUNDLE_IDENTIFIER: io.github.transui.macos + PRODUCT_NAME: Transui + + TransuiTests: + type: bundle.unit-test + platform: macOS + deploymentTarget: "15.0" + sources: + - path: Tests/TransuiTests + dependencies: + - target: Transui + settings: + base: + GENERATE_INFOPLIST_FILE: "YES" + PRODUCT_BUNDLE_IDENTIFIER: io.github.transui.macos.tests + +schemes: + Transui: + build: + targets: + Transui: all + TransuiTests: [test] + run: + config: Debug + test: + config: Debug + gatherCoverageData: true + targets: + - TransuiTests + profile: + config: Release + analyze: + config: Debug + archive: + config: Release