dobyte/closed-source-solution is a public repo on GitHub by dobyte. 一款用于Go商业项目闭源化的解决方案. It declares the MIT license on GitHub. It is written mainly in Go, has 3 stars and last changed on 2026-10-21. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-20.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
支持 -trimpath、-buildvcs=false、-ldflags="-s -w -buildid=" 精简参数,去除符号表、build id 与本地路径信息。
支持编译客户端侧的自动环境检测(GOOS、GOARCH等),根据环境自动选择合适的编译参数。
支持文件分块传输,传输效率非常高。
支持服务端编译错误的返回,客户端可根据错误信息进行调试。
3.安装
使用go install进行安装需要首先安装go 1.27+环境
go env -w GOSUMDB=off
# 安装编译客户端
go install github.com/dobyte/closed-source-solution/compile@latest
# 安装编译服务端
go install github.com/dobyte/closed-source-solution/remote@latest
go env -w GOSUMDB=on
# 安装最新版
go install mvdan.cc/garble@latest
# 或安装指定版本(推荐,便于与服务端 Go 版本匹配)
go install mvdan.cc/garble@v0.18.0
说明:
安装目录默认为 $GOPATH/bin(Windows 为 %USERPROFILE%\go\bin),该目录需在运行 remote 的进程 PATH 中,否则会报 exec: "garble": executable file not found in %PATH%。
garble 版本必须支持服务端所用的 Go 版本:实测 go1.27.1 需使用 garble v0.18.0,v0.15.0 会报 Go version "go1.27.1" is too new; Go linker patches aren't available for go1.26 or later yet。
首次使用 garble 编译会重新构建标准库与依赖,耗时明显长于普通 go build,后续命中缓存会加快。
4.remote用法
NAME:
closed-source-solution-remote - remote compile server
USAGE:
closed-source-solution-remote [global options]
GLOBAL OPTIONS:
--addr string specify the address of the server (default: ":8080")
--tiny specify whether to strip symbols and paths when compiling; it is disabled by default.
--garble specify whether to enable garble obfuscation when compiling; it is disabled by default.
--help, -h show help
NAME:
closed-source-solution-compile - local compile client
USAGE:
closed-source-solution-compile [global options]
GLOBAL OPTIONS:
--cgo specify whether to enable CGO; it is disabled by default.
--goos string specify the target operating system; default is current operating system. (default: "windows")
--goarch string specify the target architecture; default is current architecture. (default: "amd64")
--output string, -o string specify the output file name; default is main.exe on Windows, main on other platforms.
--packages string specify the path to the package to compile; default is current directory. (default: ".")
--shell string specify the shell to execute before compiling; default is empty.
--tags string specify a comma-separated list of build tags to pass to go build; default is empty.
--remote string specify the remote server address
--help, -h show help
dobyte/closed-source-solution is a public repo on GitHub by dobyte. 一款用于Go商业项目闭源化的解决方案.
Is closed-source-solution open source?
It declares the MIT license on GitHub.
Does closed-source-solution run on macOS, Windows or Linux?
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
How do I install closed-source-solution?
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Is closed-source-solution still maintained?
Its last change on GitHub was on 2026-10-21. Take My Repo does not judge from that whether it is maintained.
What do people who ran closed-source-solution say?
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.