This commit is contained in:
parent
84ae0f6994
commit
1d36961a7c
16 changed files with 734 additions and 48 deletions
|
|
@ -13,6 +13,7 @@ import (
|
|||
"drmdecryption/apps/cli/modulescmd"
|
||||
"drmdecryption/apps/proxy/proxyctlcmd"
|
||||
"drmdecryption/apps/streamd/servecmd"
|
||||
"drmdecryption/bootstrap"
|
||||
|
||||
// Links every app module into this binary.
|
||||
_ "drmdecryption/modules/all"
|
||||
|
|
@ -24,6 +25,16 @@ func main() {
|
|||
os.Exit(2)
|
||||
}
|
||||
cmd, args := os.Args[1], os.Args[2:]
|
||||
|
||||
// Materialise apps/, bin/, outputs/, … next to this exe when missing
|
||||
// so a lone downloaded drm.exe becomes a GitHub-like install tree.
|
||||
if cmd != "help" && cmd != "-h" && cmd != "--help" {
|
||||
if err := bootstrap.EnsureAndLog(); err != nil {
|
||||
fmt.Fprintln(os.Stderr, "[!] bootstrap:", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
var err error
|
||||
switch cmd {
|
||||
case "capture":
|
||||
|
|
@ -67,9 +78,11 @@ Usage:
|
|||
drm proxy build|push|install-ca|start|stop|discover|pull|clear-proxy
|
||||
on-device HTTPS MITM
|
||||
|
||||
App modules are compiled in; their local values live in
|
||||
apps/modules/<name>/module.yaml (gitignored) and can be overridden per run with
|
||||
--<app>.<field> flags or <APP>_<FIELD> environment variables.
|
||||
App module *code* is compiled in; module *values* are never inside the exe.
|
||||
Put configs at apps/modules/<name>/module.yaml yourself (see the GitHub repo).
|
||||
On first run, drm only creates the scaffold (apps/pkg, bin/proxy, outputs, …).
|
||||
|
||||
Overrides: --<app>.<field> flags or <APP>_<FIELD> environment variables.
|
||||
|
||||
Run any subcommand with --help for its own flags.
|
||||
`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue