Skip to content

bluebird75/lua_get_os_name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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