Skip to content

Commit 630a856

Browse files
committed
Add FuseGenerator binary package manifest for release zip distribution
Expose FuseGenerator as an SPM binary target backed by GitHub release assets. Document how to update Package.swift URL/checksum for each new release.
1 parent e3cf621 commit 630a856

3 files changed

Lines changed: 33 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ build
22
project.xcworkspace
33
xcuserdata
44
.DS_Store
5+
.build

Package.swift

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// swift-tools-version:5.3
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "FuseGenerator",
6+
products: [
7+
.library(
8+
name: "FuseGenerator",
9+
targets: ["FuseGenerator"]
10+
),
11+
],
12+
targets: [
13+
.binaryTarget(
14+
name: "FuseGenerator",
15+
url: "https://github.com/fmeunier/FuseGenerator/releases/download/fuse-generator-1.5.0-rc3/FuseGenerator-1.5.0-rc3.qlgenerator.zip",
16+
checksum: "8ebbd7609cfb5a5d41aeee14c62d94fdcf8a5b5416e7db41b42539ecda8dcd9e"
17+
),
18+
]
19+
)

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,19 @@ After the workflow completes, verify on GitHub:
7171
- The zip asset is attached.
7272
- The SHA-256 value appears in release notes.
7373

74+
### Update `Package.swift` for each release
75+
76+
`Package.swift` declares a binary target that points at the published release zip and checksum.
77+
78+
After publishing a new release tag:
79+
80+
1. Copy the new asset URL from the release page.
81+
2. Copy the SHA-256 from release notes (or asset digest).
82+
3. Update `url` and `checksum` in `Package.swift`.
83+
4. Commit and push the `Package.swift` update.
84+
85+
Current bootstrap state: `Package.swift` points at `fuse-generator-1.5.0-rc3` until a final non-RC tag is published.
86+
7487
### Testing the workflow safely
7588

7689
Use a throwaway pre-release style tag first (still matches `fuse-generator-*`):

0 commit comments

Comments
 (0)