Skip to content
Snippets Groups Projects
Unverified Commit 3a9f65fb authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[docs] document cross-compiling quirk

parent c6a74b63
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,11 @@ var (
httpServerConf = &httpConf{}
)
// parseCliArgs allows the helper binary to install/uninstall itself. It requires admin privileges.
// However, be warned: if you intend to use it from the command line, you will have to compile it with the Go compiler yourself.
// the version we're shipping (ie, cross-compiled with the mingw compiler) apparently is not able to output to stdout/stderr properly.
// To compile a usable version, from the top of the repo you can do:
// "cd cmd/bitmask-helper && GOOS=windows GOARCH=i386 go build"
func parseCliArgs() {
log.Println("Parsing CLI args...")
isIntSess, err := svc.IsAnInteractiveSession()
......@@ -73,10 +78,12 @@ func parseCliArgs() {
log.Println("cmd:", cmd)
switch cmd {
case "debug":
// run the service on the foreground, for debugging
runService(svcName, true)
return
case "install":
// TODO get binary name
// TODO get binary name -- or maybe not, since in this way we make sure
// that all bitmask-vpn brandings are mutually exclusive.
err = installService(svcName, "bitmask-helper service")
case "remove":
err = removeService(svcName)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment