Skip to content

Commit

Permalink
Add simple script msys2 helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Royna2544 committed Dec 2, 2024
1 parent 23d914a commit 6c3d2d8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions resources/scripts/install_cmd_for_msys2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
packages = [
'libxml2',
'libwebp',
'opencv',
'sqlite',
'fmt',
'cmake',
'toolchain',
'boost',
'libgit2'
]

mappings = {
'ucrt64': 'mingw-w64-ucrt-x86_64',
'mingw32': 'mingw-w64-i686',
'mingw64': 'mingw-w64-x86_64',
'clang': 'mingw-w64-clang-x86_64',
}

def main():
selected = input(f'Select a runtime. ({'/'.join([l for l in mappings.keys()])}): ')
if selected not in mappings:
print('Invalid runtime selected.')
return
print(f'Command is:\npacman -S {' '.join([f'{mappings[selected]}-{i}' for i in packages])}')

if __name__ == "__main__":
main()

0 comments on commit 6c3d2d8

Please sign in to comment.