chore: include css into binary
Some checks failed
ci/woodpecker/push/commit Pipeline failed

This commit is contained in:
kekskurse 2025-07-04 13:20:46 +02:00
parent 06206c7e95
commit 186ea1aa7f
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,2 @@
URL:
https://wikipress.s3.fr-par.scw.cloud/wikipress/wikipress/wikipress

View file

@ -2,6 +2,7 @@ package main
import ( import (
"context" "context"
_ "embed"
"fmt" "fmt"
"log" "log"
"os" "os"
@ -10,6 +11,9 @@ import (
"github.com/urfave/cli/v3" "github.com/urfave/cli/v3"
) )
//go:embed layout/output.css
var outputcss string
func main() { func main() {
cmd := &cli.Command{ cmd := &cli.Command{
Name: "generate", Name: "generate",
@ -83,5 +87,7 @@ func action(ctx context.Context, cmd *cli.Command) error {
} }
} }
os.WriteFile(cmd.String("out"), []byte{outputcss}, 0644)
return nil return nil
} }