From b290dc0b988115973acbccf27b98606832bcb07d Mon Sep 17 00:00:00 2001 From: Godofredo Contreras Date: Thu, 15 Sep 2022 20:15:18 -0700 Subject: [PATCH] Add path to current versions in the symlinks. The symlinks are pointing to themselves. Bug: https://github.com/flutter/flutter/issues/81855 --- sky/tools/create_macos_framework.py | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/sky/tools/create_macos_framework.py b/sky/tools/create_macos_framework.py index 774d818466f00..dedd2d7237296 100755 --- a/sky/tools/create_macos_framework.py +++ b/sky/tools/create_macos_framework.py @@ -109,10 +109,22 @@ def regenerate_symlinks(fat_framework): current_version_path = os.path.join(fat_framework, 'Versions', 'Current') shutil.rmtree(current_version_path, True) os.symlink('A', current_version_path) - os.symlink('FlutterMacOS', os.path.join(fat_framework, 'FlutterMacOS')) - os.symlink('Headers', os.path.join(fat_framework, 'Headers')) - os.symlink('Modules', os.path.join(fat_framework, 'Modules')) - os.symlink('Resources', os.path.join(fat_framework, 'Resources')) + os.symlink( + os.path.join('Versions', 'Current', 'FlutterMacOS'), + os.path.join(fat_framework, 'FlutterMacOS') + ) + os.symlink( + os.path.join('Versions', 'Current', 'Headers'), + os.path.join(fat_framework, 'Headers') + ) + os.symlink( + os.path.join('Versions', 'Current', 'Modules'), + os.path.join(fat_framework, 'Modules') + ) + os.symlink( + os.path.join('Versions', 'Current', 'Resources'), + os.path.join(fat_framework, 'Resources') + ) def process_framework(dst, args, fat_framework, fat_framework_binary):