Skip to content

Commit 9a2466e

Browse files
authored
Introduce SwiftBundler library target (#66)
* Create SwiftBundler library target; Keep Main.swift in executable target swift-bundler * Make essentials public * Make appImagePIDs public for Linux * Give format script executable permission * Format * Fix access level for PSProcess typealias on Linux * Move process termination to dedicated function * Update generate_docs.sh to match what happens on CI * Typealias must be public for Linux * Fix default init * Use official Swift argument parser * Fix Signal.rawValue access level on Windows * Rename Main.swift to swift-bundler.swift to satisfy Windows compiler * Fix swift-bundler description * Refine swift-bundler main * Refactor main
1 parent 7081ebd commit 9a2466e

File tree

175 files changed

+117
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+117
-129
lines changed

Package.resolved

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ let package = Package(
77
platforms: [.macOS(.v10_15)],
88
products: [
99
.executable(name: "swift-bundler", targets: ["swift-bundler"]),
10+
.library(name: "SwiftBundler", targets: ["SwiftBundler"]),
1011
.library(name: "SwiftBundlerRuntime", targets: ["SwiftBundlerRuntime"]),
1112
.library(name: "SwiftBundlerBuilders", targets: ["SwiftBundlerBuilders"]),
1213
.plugin(name: "SwiftBundlerCommandPlugin", targets: ["SwiftBundlerCommandPlugin"]),
1314
],
1415
dependencies: [
15-
.package(url: "https://github.com/stackotter/swift-arg-parser", revision: "b1b5373"),
16+
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.5.0"),
1617
.package(url: "https://github.com/apple/swift-log", from: "1.5.4"),
1718
.package(url: "https://github.com/pointfreeco/swift-parsing", .upToNextMinor(from: "0.13.0")),
1819
.package(url: "https://github.com/stackotter/TOMLKit", from: "0.6.1"),
@@ -39,8 +40,9 @@ let package = Package(
3940
.package(url: "https://github.com/apple/swift-async-algorithms", from: "1.0.3"),
4041
],
4142
targets: [
42-
.executableTarget(
43-
name: "swift-bundler",
43+
.executableTarget(name: "swift-bundler", dependencies: ["SwiftBundler"]),
44+
.target(
45+
name: "SwiftBundler",
4446
dependencies: [
4547
"TOMLKit",
4648
"Rainbow",
@@ -51,7 +53,7 @@ let package = Package(
5153
.product(name: "Crypto", package: "swift-crypto"),
5254
.product(name: "SwiftASN1", package: "swift-asn1"),
5355
.product(name: "X509", package: "swift-certificates"),
54-
.product(name: "StackOtterArgParser", package: "swift-arg-parser"),
56+
.product(name: "ArgumentParser", package: "swift-argument-parser"),
5557
.product(name: "Logging", package: "swift-log"),
5658
.product(name: "Parsing", package: "swift-parsing"),
5759
.product(name: "SwiftSyntax", package: "swift-syntax"),
@@ -169,7 +171,7 @@ let package = Package(
169171

170172
// The target containing documentation
171173
.target(
172-
name: "SwiftBundler",
174+
name: "SwiftBundlerDocumentation",
173175
path: "Documentation",
174176
exclude: ["preview_docs.sh"]
175177
),

0 commit comments

Comments
 (0)