File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22project.xcworkspace
33xcuserdata
44.DS_Store
5+ .build
Original file line number Diff line number Diff line change 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+ )
Original file line number Diff line number Diff 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
7689Use a throwaway pre-release style tag first (still matches ` fuse-generator-* ` ):
You can’t perform that action at this time.
0 commit comments