Skip to content

bluebird75/lua_get_os_name

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Build Status Build status

get_os_name.lua

by Philippe Fremy

Utility to get the OS name and architecture in pure lua, without any dependency on other modules.

Example on Windows:

c:> lua test_get_os_name.lua
os="Windows" arch="x86"

Example on MacOs X:

$ lua test_get_os_name.lua
os="Mac" arch="x86_64"

Example on Linux:

$ lua test_get_os_name.lua
os="Linux" arch="x86_64"

Heavily based on the following Gist: https://gist.github.com/soulik/82e9d02a818ce12498d1

About

Utility to get the OS name in pure lua

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published