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'
|
||||
|
||||
|
||||
@ -157,13 +157,16 @@ def write_probes(image_filepath: str, disable_hdr: bool, from_srgb: bool, cached
|
||||
|
||||
if lnx.utils.get_os() == 'win':
|
||||
cmft_path = sdk_path + '/lib/leenkx_tools/cmft/cmft.exe'
|
||||
kraffiti_path = kha_path + '/Kinc/Tools/windows_x64/kraffiti.exe'
|
||||
kraffiti_path = kha_path + '/Kore/Tools/windows_x64/kraffiti.exe'
|
||||
elif lnx.utils.get_os() == 'mac':
|
||||
# Detect ARM64 Mac (M1/M2/M3)
|
||||
import platform
|
||||
macos_arch = 'macos_arm64' if platform.machine() == 'arm64' else 'macos_x64'
|
||||
cmft_path = '"' + sdk_path + '/lib/leenkx_tools/cmft/cmft-osx"'
|
||||
kraffiti_path = '"' + kha_path + '/Kinc/Tools/macos_x64/kraffiti"'
|
||||
kraffiti_path = '"' + kha_path + f'/Kore/Tools/{macos_arch}/kraffiti"'
|
||||
else:
|
||||
cmft_path = '"' + sdk_path + '/lib/leenkx_tools/cmft/cmft-linux64"'
|
||||
kraffiti_path = '"' + kha_path + '/Kinc/Tools/linux_x64/kraffiti"'
|
||||
kraffiti_path = '"' + kha_path + '/Kore/Tools/linux_x64/kraffiti"'
|
||||
|
||||
input_file = lnx.utils.asset_path(image_filepath)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user