mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 15:47:06 +08:00
work towards getting dummy-module generation working under WSL
This commit is contained in:
parent
7c45d16155
commit
cf284e4755
@ -1,6 +1,6 @@
|
|||||||
# Released under the MIT License. See LICENSE for details.
|
# Released under the MIT License. See LICENSE for details.
|
||||||
#
|
#
|
||||||
"""Utils for wrangling runs of the app.
|
"""Utils for wrangling running the app as part of a build.
|
||||||
|
|
||||||
Manages constructing or downloading it as well as running it.
|
Manages constructing or downloading it as well as running it.
|
||||||
"""
|
"""
|
||||||
@ -141,14 +141,15 @@ def acquire_binary(assets: bool, purpose: str) -> str:
|
|||||||
binary_build_command = ['make', 'cmake-binary']
|
binary_build_command = ['make', 'cmake-binary']
|
||||||
binary_path = 'build/cmake/debug/staged/ballisticakit'
|
binary_path = 'build/cmake/debug/staged/ballisticakit'
|
||||||
else:
|
else:
|
||||||
# Ok; going with prefab headless stuff.
|
# Ok; going with a downloaded prefab headless build.
|
||||||
|
|
||||||
# Let the user know how to use their own binaries instead.
|
# Let the user know how to use their own built binaries instead
|
||||||
|
# if they prefer.
|
||||||
note = '\n' + textwrap.fill(
|
note = '\n' + textwrap.fill(
|
||||||
'NOTE: You can set env-var BA_APP_RUN_ENABLE_BUILDS=1'
|
f'NOTE: You can set env-var BA_APP_RUN_ENABLE_BUILDS=1'
|
||||||
f' to use locally-built binaries for {purpose}'
|
f' to use locally-built binaries for {purpose} instead'
|
||||||
' instead of prefab ones. This will properly reflect any changes'
|
f' of prefab ones. This will properly reflect any changes'
|
||||||
' you\'ve made to the C/C++ layer.',
|
f' you\'ve made to the C/C++ layer.',
|
||||||
80,
|
80,
|
||||||
)
|
)
|
||||||
if assets:
|
if assets:
|
||||||
|
|||||||
@ -652,12 +652,22 @@ def prefab_binary_path() -> None:
|
|||||||
raise RuntimeError('Expected 1 arg.')
|
raise RuntimeError('Expected 1 arg.')
|
||||||
buildtype, buildmode = sys.argv[2].split('-')
|
buildtype, buildmode = sys.argv[2].split('-')
|
||||||
platform = batools.build.get_current_prefab_platform()
|
platform = batools.build.get_current_prefab_platform()
|
||||||
if buildtype == 'gui':
|
|
||||||
binpath = 'ballisticakit'
|
if platform.startswith('windows_'):
|
||||||
elif buildtype == 'server':
|
if buildtype == 'gui':
|
||||||
binpath = 'dist/ballisticakit_headless'
|
binpath = 'BallisticaKit.exe'
|
||||||
|
elif buildtype == 'server':
|
||||||
|
binpath = 'dist/BallisticaKitHeadless.exe'
|
||||||
|
else:
|
||||||
|
raise ValueError(f"Invalid buildtype '{buildtype}'.")
|
||||||
else:
|
else:
|
||||||
raise ValueError(f"Invalid buildtype '{buildtype}'.")
|
if buildtype == 'gui':
|
||||||
|
binpath = 'ballisticakit'
|
||||||
|
elif buildtype == 'server':
|
||||||
|
binpath = 'dist/ballisticakit_headless'
|
||||||
|
else:
|
||||||
|
raise ValueError(f"Invalid buildtype '{buildtype}'.")
|
||||||
|
|
||||||
print(
|
print(
|
||||||
f'build/prefab/full/{platform}_{buildtype}/{buildmode}/{binpath}',
|
f'build/prefab/full/{platform}_{buildtype}/{buildmode}/{binpath}',
|
||||||
end='',
|
end='',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user