mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[core] Only install into Applications if all files are inside app bundle
This commit is contained in:
parent
1e97a4d791
commit
2ef5401dbb
|
@ -1335,11 +1335,13 @@ class LegendaryCore:
|
||||||
if platform == 'Mac':
|
if platform == 'Mac':
|
||||||
# if we're on mac and the path to the binary does not start with <something>.app,
|
# if we're on mac and the path to the binary does not start with <something>.app,
|
||||||
# treat it as if it were a Windows game instead and install it to the default folder.
|
# treat it as if it were a Windows game instead and install it to the default folder.
|
||||||
if '.app' not in new_manifest.meta.launch_exe.partition('/')[0].lower():
|
|
||||||
base_path = self.get_default_install_dir(platform='Windows')
|
if all('.app' in fm.filename.partition('/')[0].lower()
|
||||||
else:
|
for fm in new_manifest.file_manifest_list.elements):
|
||||||
# If it is a .app omit the game folder
|
# If it is a .app omit the game folder
|
||||||
game_folder = ''
|
game_folder = ''
|
||||||
|
else:
|
||||||
|
base_path = self.get_default_install_dir(platform='Windows')
|
||||||
|
|
||||||
# make sure base directory actually exists (but do not create game dir)
|
# make sure base directory actually exists (but do not create game dir)
|
||||||
if not os.path.exists(base_path):
|
if not os.path.exists(base_path):
|
||||||
|
|
Loading…
Reference in a new issue