Slide 40
Slide 40 text
//
swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "Musicli",
platforms: [.macOS(.v12)],
products: [
.executable(name: "Musicli", targets: ["Musicli"])
],
dependencies: [
.package(url: "https:
//
github.com/apple/swift-argument-parser.git", exact: "1.2.3")
],
targets: [
.executableTarget(
name: "Musicli",
dependencies: [.product(name: "ArgumentParser", package: "swift-argument-parser")],
linkerSettings: [
.unsafeFlags([
"-Xlinker", "-sectcreate",
"-Xlinker", "
__
TEXT",
"-Xlinker", "
__
info_plist",
"-Xlinker", "Sources/Resources/Info.plist"
])
]
),
]
)
https://forums.swift.org/t/swift-package-manager-use-of-info-plist-use-for-apps/6532/13