https://github.com/luarocks/sysdetect
Detect the operating system and architecture without forking a subprocess
https://github.com/luarocks/sysdetect
Last synced: 9 months ago
JSON representation
Detect the operating system and architecture without forking a subprocess
- Host: GitHub
- URL: https://github.com/luarocks/sysdetect
- Owner: luarocks
- License: mit
- Created: 2024-02-16T19:20:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-17T17:44:31.000Z (over 1 year ago)
- Last Synced: 2025-04-03T19:51:06.637Z (about 1 year ago)
- Language: Lua
- Size: 8.79 KB
- Stars: 3
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sysdetect
A library to detect the operating system and architecture without forking a
subprocess.
We are not going for an exhaustive list of every historical system here, but
we're aiming to cover at least every platform where LuaRocks is known to run.
If your system is not detected, patches are welcome!
## Installing
Install with:
```
luarocks install sysdetect
```
## Building
This library is written in [Teal](https://github.com/teal-language).
Install [Cyan](https://github.com/teal-language/cyan) with `luarocks install cyan` then
run:
```
cyan build
```
Or you can use LuaRocks to run Cyan to build and install the package in one go
using `luarocks make`.
## Testing
The test suite uses Busted. You can run it with:
```
luarocks test
```