forked from LeenkxTeam/LNXSDK
Update
This commit is contained in:
@ -367,7 +367,9 @@ def get_node_path():
|
||||
if get_os() == 'win':
|
||||
return get_sdk_path() + '/nodejs/node.exe'
|
||||
elif get_os() == 'mac':
|
||||
return get_sdk_path() + '/nodejs/node-osx'
|
||||
import platform
|
||||
node_bin = 'node-macos_arm64' if platform.machine() == 'arm64' else 'node-osx'
|
||||
return get_sdk_path() + f'/nodejs/{node_bin}'
|
||||
else:
|
||||
return get_sdk_path() + '/nodejs/node-linux64'
|
||||
|
||||
@ -380,7 +382,9 @@ def get_haxe_path():
|
||||
if get_os() == 'win':
|
||||
return get_kha_path() + '/Tools/windows_x64/haxe.exe'
|
||||
elif get_os() == 'mac':
|
||||
return get_kha_path() + '/Tools/macos_x64/haxe'
|
||||
import platform
|
||||
macos_arch = 'macos_arm64' if platform.machine() == 'arm64' else 'macos_x64'
|
||||
return get_kha_path() + f'/Tools/{macos_arch}/haxe'
|
||||
else:
|
||||
return get_kha_path() + '/Tools/linux_x64/haxe'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user