{"id":16086148,"url":"https://github.com/zw963/package_payload","last_synced_at":"2026-01-30T03:06:15.904Z","repository":{"id":147696559,"uuid":"360113224","full_name":"zw963/package_payload","owner":"zw963","description":"Package payload in linux for get a single file version bash binary.","archived":false,"fork":false,"pushed_at":"2025-09-23T11:55:25.000Z","size":24905,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-23T13:34:57.295Z","etag":null,"topics":[],"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/zw963.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,"zenodo":null}},"created_at":"2021-04-21T09:40:08.000Z","updated_at":"2025-09-23T11:55:29.000Z","dependencies_parsed_at":"2024-03-12T11:51:08.567Z","dependency_job_id":"e70130d6-98cb-444e-b0f3-07b04b9e6005","html_url":"https://github.com/zw963/package_payload","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zw963/package_payload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fpackage_payload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fpackage_payload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fpackage_payload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fpackage_payload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zw963","download_url":"https://codeload.github.com/zw963/package_payload/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fpackage_payload/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28897670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"online","status_checked_at":"2026-01-30T02:00:06.810Z","response_time":66,"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":[],"created_at":"2024-10-09T13:10:43.106Z","updated_at":"2026-01-30T03:06:15.869Z","avatar_url":"https://github.com/zw963.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# package_payload\n\nPackage payload is for package a folder into a executable binary for UNIX-LIKE system.\n\n# How to use it.\n\nMaybe the most easy way to understand how this package work is use examples.\n\nThis project comes with some pre-packaged app:\n\n1. [dte](https://gitlab.com/craigbarnes/dte), a very powerful command line editor for editing in remote linux host or docker, a perfect replacement for nano, and more, you can check original unpacked version dte [here](https://github.com/zw963/package_payload/tree/main/example/dte). __NOTICE: To achieve the best user experience, please use it together with [wezterm](https://github.com/wez/wezterm)__, and if you are a Emacs enthusiast, you can try my [.wezterm.lua](https://gist.github.com/zw963/b02e1cd320538a7276f0e0b666b2b8cc) for a awesome emacs user experience, with in docker, remote VPS etc.\n2. docker_bash, as it name, run bash for docker,  a script for easy interact with docker.\n   it can work as following:\n   - docker_bash a_docker_image\n   - docker_bash a_existing_container\n   - docker_bash a_failed_container\n   - docker_bash a_docker_volume\n   \n   For the purpose of package_payload, we want to attach dte editor into docker_bash, when we in container, we can use dte free.\n\n## 1. package dte editor files which in folder `packages/dte` into `bin/dte`.\n\n```sh\n$:  ./package_payload bin/dte packages/dte/\n./\n./.dte/\n./.dte/rc\n./bin.real/\n./bin.real/dte\n./bin/\n./bin/dte\n./bin/dteinit\n./bin/nano\n./bin/update_dte\n./share/\n./share/man/\n./share/man/man1/\n./share/man/man1/dte.1\n./share/man/man5/\n./share/man/man5/dte-syntax.5\n./share/man/man5/dterc.5\n```\n\nThe first args `bin/dte` is where the new packaged binary you want to place.\nThe secondary args `packages/dte/` is the folder where the `dte editor` files live in.\n`package/dte/bin/dte` must exists, and must executable, and will be invoke when packaged script is running.\n\n**NOTICE:** current dte keyboard binding configured as a emacs replacement, if you are not a emacser, you need adjust [config file](https://github.com/zw963/package_payload/blob/main/example/dte/.dte/rc) follow [offical document](https://craigbarnes.gitlab.io/dte/dterc.html)\n\nUse package_payload, you can package binary along with all your's personal config into only one file (bash script).\n\n**Now, we have a lonely binary `bin/dte`, you can copy it to any unix-like system,  and run it directly.**\n\ne.g. copy to your's remote VPS with IP of 123.123.123.123.\n\n```sh\n$: scp example/bin/dte user@123.123.123.123:\n$: ssh user@123.123.123.123\nS: ./dte\n```\n\nThere is a more quicky way to copy script into VPS's /usr/local/bin/ then ssh logged in.\n\n```sh\n ╰─ $ dte root@192.168.50.111\ndte                       100%  491KB  17.0MB/s   00:00    \nLast login: Fri Jan 19 00:44:22 2024 from 192.168.50.44\n[root@localhost ~]# dte -V\ndte 1.11.1-317-gb5aa677c\n[root@localhost ~]# \n\n```\n\n## 2. package docker_bash with dte.\n\n    - create folder, `packages/docker_bash/bin`, and copy original docker_bash script into it.\n\t - `cd packages/docker_bash/bin`\n\t - create a hardlink to above packaged dte editor. `ln ../../../bin/dte .`\n\t - cd back to project root folder. \n\t - run `./package_payload bin/docker_bash packages/docker_bash/`\n \nNow, we have a lonely binary `bin/docker_bash`, you can try play it with docker, and don't forget,  \nyou can always use `dte` or a alias `nano` when you in container.\n\n# Following is the list of pre-packaged binary.\n\n[dte](/bin/dte)\n\n[docker_bash](/bin/docker_bash)\n\n[iotop](/bin/iotop)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzw963%2Fpackage_payload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzw963%2Fpackage_payload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzw963%2Fpackage_payload/lists"}