wimpysworld / stream-sprout

Restream a video source to multiple destinations such as Twitch, YouTube, Owncast and Peertube 📡
Apache License 2.0
28 stars 4 forks source link

feat: Add snap support #23

Closed popey closed 3 months ago

popey commented 3 months ago

Description

This adds support for building a snap of stream-sprout. It also adds a workflow to do builds.

Type of change

Checklist:

popey commented 3 months ago

'2024-07-23T23:34:06.7129634Z 2024-07-23 23:34:01.096 :: 2024-07-23 23:34:00.677 Cannot pack snap: error: cannot validate snap "stream-sprout": invalid snap version ".399796c": must start with an ASCII alphanumeric (and not '.')'

The build is failing because it's running in a PR with no git tags. I suspect once this is merged, when run in an actual clone of the real repo, the version will work:-

craftctl set version=$(git describe --tags --abbrev=0).$(git rev-parse --short HEAD)

For example, if I clone the main upstream origin repo from wimpysworld, and drop the yaml in, it sets an version accordingly.

$ version=$(git describe --tags --abbrev=0).$(git rev-parse --short HEAD)
$ echo $version
0.1.4.4928a51