This commit is contained in:
parent
84ae0f6994
commit
1d36961a7c
16 changed files with 734 additions and 48 deletions
|
|
@ -106,6 +106,13 @@ func buildCmd(args []string) {
|
|||
outLocal := filepath.Join(root, "apps", "proxy", "proxy-android-arm64")
|
||||
outBin := filepath.Join(root, "bin", "proxy-android-arm64")
|
||||
|
||||
if _, err := os.Stat(deviceDir); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "proxy build needs the full source tree (apps/proxy/device).\n")
|
||||
fmt.Fprintf(os.Stderr, "For a release zip, put proxy-android-arm64 next to drm.exe instead — no Go build required.\n")
|
||||
fmt.Fprintf(os.Stderr, "Missing: %s\n", deviceDir)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
fmt.Println("[*] Building linux/arm64 appproxy...")
|
||||
cmd := exec.Command("go", "build", "-ldflags=-s -w", "-o", outLocal, ".")
|
||||
cmd.Dir = deviceDir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue