{"id":18597309,"url":"https://github.com/wiremoons/app_version","last_synced_at":"2026-03-19T05:16:32.449Z","repository":{"id":174509387,"uuid":"652332646","full_name":"wiremoons/app_version","owner":"wiremoons","description":"Odin package to display application version information.","archived":false,"fork":false,"pushed_at":"2025-07-20T13:40:30.000Z","size":204,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-20T15:20:44.149Z","etag":null,"topics":["odin","odin-lang","version"],"latest_commit_sha":null,"homepage":"","language":"Odin","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/wiremoons.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,"zenodo":null}},"created_at":"2023-06-11T20:14:35.000Z","updated_at":"2025-07-20T13:40:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"cfcec211-4460-4f79-be61-8281f9207e6a","html_url":"https://github.com/wiremoons/app_version","commit_stats":null,"previous_names":["wiremoons/app_version"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/wiremoons/app_version","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fapp_version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fapp_version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fapp_version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fapp_version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wiremoons","download_url":"https://codeload.github.com/wiremoons/app_version/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fapp_version/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28975250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T08:16:14.655Z","status":"ssl_error","status_checked_at":"2026-02-01T08:06:51.373Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["odin","odin-lang","version"],"created_at":"2024-11-07T01:27:38.752Z","updated_at":"2026-02-01T09:32:37.499Z","avatar_url":"https://github.com/wiremoons.png","language":"Odin","funding_links":[],"categories":["Libraries"],"sub_categories":["Other"],"readme":"# app_version\nOdin package to generate and display application version information for command line applications.\n\n## Example output\n\nBelow is an example of `app_version` output when run on *macOS*:\n```\n'app_version' is version 'v0.1.0' built in 'Release' mode.\nBuilt on: 'Sun 11 Jun 2023 @ 19:09:40 BST' with Odin compiler: 'dev-2023-06'.\nExecuting on computer 'borrmoons' with 'macOS Unknown (build 22F66, kernel 22.5.0)'.\nSystem information: [ RAM: 8192Gb | CPU: ARM64 | Cores: 8 ].\n```\n\nBelow is an example of `app_version` output when run on a *Raspberry Pi4B*:\n```\n'app_version' is version 'v0.2.1' built in 'Release' mode.\nBuilt on: 'Sun 02 Jul 2023 @ 11:48:02 BST' with Odin compiler: 'dev-2023-06'.\nExecuting on computer 'pi4mobi' with ', Linux 5.15.0-1029-raspi'.\nSystem information: [ RAM: 7807Gb | CPU: ARM64 | Cores: 4 ].\n```\n\nBelow is an example of `app_version` output when run on a *Windows 11*:\n```\n'tripass.exe' is version 'v0.3.1' built in 'Release' mode.\nBuilt on: 'Wed Jul  5 21:07:26 GMTST 2023' with Odin compiler: 'dev-2023-07'.\nExecuting on computer 'PAVIMOONS' with 'Windows 11 Professional (version: 22H2), build: 22621.1848'.\nSystem information: [ RAM: 32116Gb | CPU: AMD Ryzen 5 4600H with Radeon Graphics | Cores: 12 ]\n                    [ GPU #0: Advanced Micro Devices, Inc. model : 'AMD Radeon(TM) Graphics' RAM '512' ]\n                    [ GPU #1: NVIDIA model : 'NVIDIA GeForce GTX 1050' RAM '3072' ].\n```\n\n## How to include this package in your Odin project\n\nThe inclusion of `app_version` in you own project is easily performed by just adding the code from this repo to you own project. The `app_version` code is a *Odin package* to be used by your main programs source code. The recommended approach is to add `app_version` as a [Git submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules). The purpose of *submodules* is to let one project clone another different Git repository into that main project, and still keep the commits separate.\n\nThis will give the flexibility to allow the *Git* commits for your own project to be separate from those in the `app_version` package. The `app_version` package can still be updated independently as needed with a `git pull` if required. The installation instructions below include the commands to add `app_version` as a *submodule* to you own project.\n\nThe approach makes adding *Odin* packages to a existing project very simple and easy to manage. See the *Odin* [packages](https://odin-lang.org/docs/overview/#packages) document for more details.\n\n## Installation\n\nThe instructions below assume you are already developing *Odin* programs, and have a working *Odin* compiler installation. Further help with *Odin* can be found here: https://odin-lang.org/\n\n\n**NOTE:** The process below will add a new directory called: `app_version` as a sub-directory to your own existing *Odin* project. If you already have an existing package in your own project using that specific name (ie `app_version`), you will need to clone this package into a different folder - so as not to overwrite your existing package code.\n\nFrom a command prompt:\n\n1. Change directory if needed, to ensure you are in the root of your own *Odin* project.\n2. Add this *Odin* `app_version` package as a *Git submodule* to your own project using the command: `git submodule add https://github.com/wiremoons/app_version.git app_version`\n3. Update the text file named: `VERSION` in the `app_package` directory, or create your own `VERSION` file in the root of your own project. Add your current applications version, for example: `v1.2.5`. Any text of a reasonable size can be used as the version number for your application by adding it to this `VERSION` file on the first line.\n4. In your own *Odin* project source code, import the `app_version` package as: `import \"app_version\"`\n5. To display the version output in your own project, call the procedure: `app_version.version_show()`\n6. When you build or run you own application include the extra `-define:` parameter to ensure the compile date stamp is captured: `odin build . -define:BUILDTS=\"$(date '+%a %d %b %Y @ %H:%M:%S %Z')\"` or `odin run . -define:BUILDTS=\"$(date '+%a %d %b %Y @ %H:%M:%S %Z')\"`.  The `date` shell command can be adjusted to suit your own date formatting preferences in required.\n\nFor additional help, see the `build.sh` and `main.odin` files included in the `app_version` package which can be used as examples of the steps 3-6 described above.\n\n## License\n\nThe source code is provided with a *MIT* license, a copy of which is available here: [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremoons%2Fapp_version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwiremoons%2Fapp_version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremoons%2Fapp_version/lists"}