{"id":19097569,"url":"https://github.com/apocelipes/golang_qt2deb","last_synced_at":"2026-01-16T00:54:47.499Z","repository":{"id":122772781,"uuid":"140746568","full_name":"apocelipes/golang_qt2deb","owner":"apocelipes","description":"将使用therecipe/qt的golang项目打包成deb文件。","archived":false,"fork":false,"pushed_at":"2018-07-13T11:53:18.000Z","size":2,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T03:31:58.512Z","etag":null,"topics":["bash","golang","golang-tools","qt5"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apocelipes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-07-12T17:47:23.000Z","updated_at":"2025-01-10T20:42:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6783e30-3547-4ab3-8f05-b4211c1abbde","html_url":"https://github.com/apocelipes/golang_qt2deb","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/apocelipes%2Fgolang_qt2deb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apocelipes%2Fgolang_qt2deb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apocelipes%2Fgolang_qt2deb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apocelipes%2Fgolang_qt2deb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apocelipes","download_url":"https://codeload.github.com/apocelipes/golang_qt2deb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247023716,"owners_count":20870933,"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":["bash","golang","golang-tools","qt5"],"created_at":"2024-11-09T03:41:48.926Z","updated_at":"2026-01-16T00:54:47.481Z","avatar_url":"https://github.com/apocelipes.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# golang_qt2deb\n\n+ 帮助使用therecipe/qt的golang项目将编译好的目标打包成为deb文件。\n+ 支持将desktop files一同打包。\n+ 目前配置文件等额外文件需要自行添加仅脚本生成的build目录里，同时需要给脚本加上--nobuild参数。\n***\n## Example\n\n1. 将$GOPATH/qt_example打包，安装至/usr/bin\n\u003e\n\u003e ./golang_qt2deb.sh -t $GOPATH/qt_example --prefix /usr/bin\n\u003e\n\n2. 将$GOPATH/qt_example打包，安装至默认路径，并一并打包desktop file文件至默认路径。\n\u003e\n\u003e ./golang_qt2deb.sh -t $GOPATH/qt_example --desktopfile\n\u003e\n\n3. 将$GOPATH/qt_example打包，安装至默认路径，并一并打包desktop file文件至指定路径。\n\u003e\n\u003e ./golang_qt2deb.sh -t $GOPATH/qt_example --desktopfile --dfpath=/usr/local/share/applications\n\u003e\n\n4. 将$GOPATH/qt_example打包，安装至默认路径，并一并打包desktop file文件至默认路径，但只生成deb配置和数据，不进行实际进行打包。\n\u003e\n\u003e ./golang_qt2deb.sh -t $GOPATH/qt_example --desktopfile --nobuild\n\u003e\n***\n\n## 参数\n\n+ -t/--targer path 指定golang project所在的目录\n+ --prefix [path] 指定文件将要安装的路径，默认在/usr/local/bin\n+ --desktopfile/--df 一起打包target指定目录中和项目目录同名的.desktop文件\n+ --dfpath path 指定.desktop文件将要安装的路径，默认为/usr/share/applications\n+ --nobuild 让脚本复制需要的数据并生成control文件，但不进行打包，需要打包额外文件的可以使用此选项然后在现有配置上进行修改\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapocelipes%2Fgolang_qt2deb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapocelipes%2Fgolang_qt2deb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapocelipes%2Fgolang_qt2deb/lists"}