Manage own version
Closed this issue · 1 comments
The version is currently hardcoded. It would be nice to pull that from apodidae's git repo instead.
The idea was to write the contents of a very simple Version.swift file from within the Package.swift, so that it would be run on standard swift build
invocations. Not sure if that's the greatest of ideas though. Making it a bit easier at least would be to write the file from a bash script and just shell out to that from Package.swift.
Worked around this for now with scripts/release
. Definitely far from ideal, but it works.
As notes for future me: Would be cool to not have to tag the current head before running release. Probably by reading argv and using that to set the tag as the first step. Or maybe even do something like release major/minor/patch
? There's gotta be a tool for that out there somewhere. Or you know, write a script for that (in something other than bash...).
On second thought, I'm going to leave this open until the release script works like that.