Skip to content

Commit

Permalink
Add path to current versions in the symlinks. (flutter#36192)
Browse files Browse the repository at this point in the history
  • Loading branch information
godofredoc authored Sep 16, 2022
1 parent 93da478 commit 311bc5d
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions sky/tools/create_macos_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 311bc5d

Please sign in to comment.