add stub rss_templ.go file (maybe fix some ssues with soundcloakctl)

This commit is contained in:
Laptop
2025-11-06 20:27:17 +02:00
parent c83cea39d8
commit 8995409609
3 changed files with 28 additions and 10 deletions

2
.gitignore vendored
View File

@@ -17,6 +17,7 @@ fly.toml
# codegen # codegen
*_templ.go *_templ.go
!rss_templ.go
regexp2_codegen.go regexp2_codegen.go
# built binary # built binary
@@ -26,3 +27,4 @@ main
# for development/testing # for development/testing
Caddyfile Caddyfile
misc/

View File

@@ -16,15 +16,7 @@ git clone https://git.maid.zone/stuff/soundcloak
cd soundcloak cd soundcloak
``` ```
3. Build binary: 3. Download required JS modules:
This uses the `build` script, which generates code from templates, generates code for regular expiressions, and then builds the binary.
```sh
./build
```
4. Download required JS modules:
Currently it's just HLS.js. This is what powers the HLS player Currently it's just HLS.js. This is what powers the HLS player
@@ -32,6 +24,14 @@ Currently it's just HLS.js. This is what powers the HLS player
go tool soundcloakctl js download go tool soundcloakctl js download
``` ```
4. Build binary:
This uses the `build` script, which generates code from templates, generates code for regular expiressions, and then builds the binary.
```sh
./build
```
Now, you can run soundcloak with the `./main` binary. By default, it is listening on `127.0.0.1:4664`. For a configuration guide, [refer to here](INSTANCE_GUIDE.md#configuration-guide) Now, you can run soundcloak with the `./main` binary. By default, it is listening on `127.0.0.1:4664`. For a configuration guide, [refer to here](INSTANCE_GUIDE.md#configuration-guide)
# Updating your local setup # Updating your local setup

16
lib/sc/rss_templ.go Normal file
View File

@@ -0,0 +1,16 @@
// Code generated by hands
// Run templ generate to generate the real code
package sc
//lint:file-ignore SA4006 This context is only used if a nested component is present.
import (
"git.maid.zone/stuff/soundcloak/lib/cfg"
"github.com/a-h/templ"
)
func TrackDescription(prefs cfg.Preferences, t *Track, href string) templ.Component {
return templ.NopComponent
}