{"id":21206340,"url":"https://github.com/rtmigo/exe2dist","last_synced_at":"2025-10-08T22:27:17.340Z","repository":{"id":61076449,"uuid":"547980885","full_name":"rtmigo/exe2dist","owner":"rtmigo","description":"CLI transforming native executable file to a plaform-specific distributable archive","archived":false,"fork":false,"pushed_at":"2022-10-11T21:08:22.000Z","size":25510,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T22:27:16.877Z","etag":null,"topics":["archive","automation","binary","cd","ci","ci-cd","cli","cpu","dart","executable","gz","linux","native","os","package","platform","tar","tgz","zip"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"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/rtmigo.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}},"created_at":"2022-10-08T17:37:27.000Z","updated_at":"2022-10-22T07:23:32.000Z","dependencies_parsed_at":"2023-01-19T21:33:57.025Z","dependency_job_id":null,"html_url":"https://github.com/rtmigo/exe2dist","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/rtmigo/exe2dist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtmigo%2Fexe2dist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtmigo%2Fexe2dist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtmigo%2Fexe2dist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtmigo%2Fexe2dist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rtmigo","download_url":"https://codeload.github.com/rtmigo/exe2dist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtmigo%2Fexe2dist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000781,"owners_count":26082851,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["archive","automation","binary","cd","ci","ci-cd","cli","cpu","dart","executable","gz","linux","native","os","package","platform","tar","tgz","zip"],"created_at":"2024-11-20T20:55:24.742Z","updated_at":"2025-10-08T22:27:17.309Z","avatar_url":"https://github.com/rtmigo.png","language":"Dart","readme":"# [exe2dist](https://github.com/rtmigo/exe2dist)\n\nCLI utility that packs a binary executable into a redistributable archive.\n\n`outs/1/compiled.kexe` ⮕ `myapp_linux_arm64.tgz` with `myapp` inside\n\n`outs/2/compiled.kexe` ⮕ `myapp_windows_amd64.zip` with `myapp.exe` inside\n\n`outs/3/compiled.kexe` ⮕ `myapp_macos_arm64.tgz` with `myapp` inside\n\n--------------------------------------------------------------------------------\n\n* It detects the architecture for which the executable is compiled\n* It sets executable bits for *nix binaries (`chmod 755`)\n* It adds `.exe` extension to Windows executables\n* It packs the binary to an archive appropriate for the platform\n\n--------------------------------------------------------------------------------\n\nLet's imagine that our automated system compiles executables using Kotlin\nNative. Regardless of the platform, the script builds a `compiled.kexe`.\n\nBefore the release, we can collect all the built files in one directory.\n\n* `outs/1/compiled.kexe`\n* `outs/2/compiled.kexe`\n* `outs/3/compiled.kexe`\n\nBut how to distinguish and name them? `exe2dist` automatically solves this\nproblem.\n\n```bash\nexe2dist myapp outs/*/*.kexe targetdir\n```\n\nThis command will create three archives with friendly names. \n\n--------------------------------------------------------------------------------\n\n`exe2dist` runs on Linux and macOS. It may process binaries that target other\nplatforms.\n\n## Install manually\n\nDownload and extract a binary executable [release](https://github.com/rtmigo/exe2dist/releases):\n\n* [for macOS](https://github.com/rtmigo/exe2dist/releases/latest/download/exe2dist_darwin_amd64.tgz)\n* [for Linux](https://github.com/rtmigo/exe2dist/releases/latest/download/exe2dist_linux_amd64.tgz)\n* [for Windows](https://github.com/rtmigo/exe2dist/releases/latest/download/exe2dist_windows_amd64.zip)\n\n## Install via command line\n\nDownload and unpack the Linux version to the current directory.\n\n```bash\nwget -c https://github.com/rtmigo/exe2dist/releases/download/0.3.3/exe2dist_linux_amd64.tgz -O - | tar -xz\n```\n\nRun immediately:\n\n```bash\n./exe2dist\n```\n\nSame for the newest version instead of the fixed one.\n\n```bash\nwget -c https://github.com/rtmigo/exe2dist/releases/latest/download/exe2dist_linux_amd64.tgz -O - | tar -xz\n```\n\n## Use\n\nArchive file `./native_exe` to a distributable\nlike `distros/theapp_macos_arm64.tgz`:\n\n```bash\nexe2dist theapp native_exe distros/\n```\n\nArchive all files in `./binaries` creating appropriate distributable files in\n`distros`:\n\n```bash\nexe2dist theapp binaries/* distros/\n```\n\n## Platforms\n\nThe safe systems are **Linux**, **macOS** (Darwin) and **Windows**.\n\nThe safe platforms are **x86-64** (AMD64) and **ARM64**. \n\nIf you are building executables for *BSD or more rare *nix systems, this\nutility should be used with caution. It will rely on guesswork, and may wrongly\nassume, that the executable is for Linux.\n\n## License\n\nCopyright © 2022 [Artsiom iG](https://github.com/rtmigo).\nReleased under the [MIT License](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtmigo%2Fexe2dist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtmigo%2Fexe2dist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtmigo%2Fexe2dist/lists"}