{"id":16800237,"url":"https://github.com/abiosoft/custombuild","last_synced_at":"2026-01-04T01:04:23.413Z","repository":{"id":137636088,"uuid":"37400819","full_name":"abiosoft/custombuild","owner":"abiosoft","description":"Automate custom builds of Go programs. Highly experimental.","archived":false,"fork":false,"pushed_at":"2016-06-09T14:24:29.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T14:49:55.084Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abiosoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-14T05:45:02.000Z","updated_at":"2019-05-16T16:47:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"5420fa1e-ea50-4199-8a3d-112fef29ca67","html_url":"https://github.com/abiosoft/custombuild","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiosoft%2Fcustombuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiosoft%2Fcustombuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiosoft%2Fcustombuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiosoft%2Fcustombuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abiosoft","download_url":"https://codeload.github.com/abiosoft/custombuild/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243976362,"owners_count":20377691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T09:31:46.414Z","updated_at":"2026-01-04T01:04:23.384Z","avatar_url":"https://github.com/abiosoft.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"custombuild\n============\n\nA fairly simple package that makes it easier to generate custom builds of your Go programs. *This package is still experimental.*\n\nIt takes as input three things:\n\n- Path to the repository which will be customized\n- A function that performs code generation to customize the build\n- List of packages that are new dependencies of the modified code base\n\n\n### Example\n\n```go\n// Prepare a custom build that uses two new packages the original project doesn't use\nbuilder, err := custombuild.New(\"../myproject\", codeGenFunc, []string{\n\t\"github.com/fizz/fizz\",\n\t\"github.com/foo/foo\",\n})\ndefer builder.Teardown() // always do this, even if error\nif err != nil {\n\tlog.Fatal(err)\n}\n\n// Build for 64-bit Windows\nerr = builder.Build(\"windows\", \"amd64\", \"./windows_build.exe\")\nif err != nil {\n\tlog.Fatal(err)\n}\n\n// Build for ARMv6 Linux\nerr = builder.BuildARM(\"linux\", 6, \"./arm_build\")\nif err != nil {\n\tlog.Fatal(err)\n}\n```\n\n\n### Requirements\n\nThis tool requires the go tool to be installed and in your PATH. Since this tool calls `go get -u`, it requires any necessary version control system to be installed also (usually git).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabiosoft%2Fcustombuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabiosoft%2Fcustombuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabiosoft%2Fcustombuild/lists"}