// Package deploy embeds the installer scripts that wxch-server hands out // (/get, /setup.sh, /uninstall.sh, /install.sh and the step scripts). // Scripts contain the placeholder @@BASE@@, which the server replaces with the // address the caller used, so nothing is hard-coded to one domain. package deploy import ( "embed" "io/fs" ) //go:embed files var content embed.FS // FS returns the scripts with the "files" folder as its root. func FS() fs.FS { sub, err := fs.Sub(content, "files") if err != nil { panic(err) } return sub }