mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-26 08:53:32 +08:00
Merge branch 'master' into pubsync
This commit is contained in:
commit
5322b56291
@ -644,10 +644,22 @@ def make_prefab() -> None:
|
||||
from efrotools import run
|
||||
import platform
|
||||
|
||||
if platform.system() == 'Darwin':
|
||||
system = platform.system()
|
||||
machine = platform.machine()
|
||||
if system == 'Darwin':
|
||||
# Currently there's just x86_64 on mac; will need to revisit when arm
|
||||
# cpus happen.
|
||||
base = 'mac'
|
||||
elif system == 'Linux':
|
||||
# We currently only support x86_64 linux.
|
||||
if machine == 'x86_64':
|
||||
base = 'linux'
|
||||
else:
|
||||
raise RuntimeError(f'make_prefab: unsupported linux machine type:'
|
||||
f' {machine}.')
|
||||
else:
|
||||
raise RuntimeError('Prefab not supported on this platform.')
|
||||
raise RuntimeError(f'make_prefab: unrecognized platform:'
|
||||
f' {platform.system()}.')
|
||||
|
||||
if len(sys.argv) != 3:
|
||||
raise RuntimeError('Expected one argument')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user