prole/prole-tools-app/Package.swift
chrisfu 0e01595de0 refactor: switch to environment wrapper; standardize env.sh usage and improve $PROLE_HOME management
- Replace direct script invocation with `$PROLE_HOME/env.sh` wrapper for consistent environment setup across all components.
- Update runtime processes to dynamically resolve `$PROLE_HOME` or fallback to `$HOME/.prole`.
- Deprecate `init-port-forwards.sh` script bundling; remove from LaunchAgentManager and build system.
- Overhaul `env.sh` generation to include execution capability, customizable paths, and improved error handling.
- Standardize app name and paths to "Prole Tools" across all files and UI elements.
- Adjust build output to align with new structure, including executable naming and resource packaging.
2025-12-15 22:00:32 -08:00

37 lines
1.1 KiB
Swift

// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "ProleApp",
platforms: [
.macOS(.v12)
],
products: [
.executable(name: "Prole", targets: ["Prole"]) // App binary name
],
dependencies: [
// NozeIO SwiftNIO IRC Client
.package(url: "https://github.com/NozeIO/swift-nio-irc-client", branch: "main"),
// RoyalVNCKit via SwiftPM instead of local xcframework
.package(url: "https://github.com/royalapplications/royalvnc", branch: "main")
],
targets: [
.executableTarget(
name: "Prole",
dependencies: [
.product(name: "IRC", package: "swift-nio-irc-client"),
.product(name: "RoyalVNCKit", package: "royalvnc")
],
path: "Sources",
resources: [
// The build script separately copies resources into the app bundle; no SPM resources here.
],
linkerSettings: [
.linkedFramework("AppKit"),
.linkedFramework("Carbon"),
.linkedFramework("Network")
]
)
]
)