mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
automatically detect BSDs as platform=linuxbsd
This commit is contained in:
@@ -196,7 +196,13 @@ elif env_base["p"] != "":
|
|||||||
selected_platform = env_base["p"]
|
selected_platform = env_base["p"]
|
||||||
else:
|
else:
|
||||||
# Missing `platform` argument, try to detect platform automatically
|
# Missing `platform` argument, try to detect platform automatically
|
||||||
if sys.platform.startswith("linux"):
|
if (
|
||||||
|
sys.platform.startswith("linux")
|
||||||
|
or sys.platform.startswith("dragonfly")
|
||||||
|
or sys.platform.startswith("freebsd")
|
||||||
|
or sys.platform.startswith("netbsd")
|
||||||
|
or sys.platform.startswith("openbsd")
|
||||||
|
):
|
||||||
selected_platform = "linuxbsd"
|
selected_platform = "linuxbsd"
|
||||||
elif sys.platform == "darwin":
|
elif sys.platform == "darwin":
|
||||||
selected_platform = "osx"
|
selected_platform = "osx"
|
||||||
|
|||||||
Reference in New Issue
Block a user