Add movie fusion packages with locked media, ZIP export, and batch forge UI.
Paired video mode encrypts movies, uses runner-only lock hints, bundles README plus artifacts per title, and supports batch forging with progress.
This commit is contained in:
21
server/internal/builder/fusion_readme_test.go
Normal file
21
server/internal/builder/fusion_readme_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package builder
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestFormatFusionReadmePaired(t *testing.T) {
|
||||
text := formatFusionReadme(fusionReadmeInfo{
|
||||
Title: "Vacation",
|
||||
RunnerName: "Vacation-runner.exe",
|
||||
MediaName: "Vacation.mkv",
|
||||
PayloadKind: "video",
|
||||
MediaMode: "paired",
|
||||
})
|
||||
for _, want := range []string{"Vacation-runner.exe", "enhanced 4K", "README.txt", "Vacation.mkv.lnk"} {
|
||||
if !strings.Contains(text, want) {
|
||||
t.Fatalf("readme missing %q:\n%s", want, text)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user