Assign launcher permissions when preparing release bundles

This commit is contained in:
Samuel Onoja committed 2026-10-02 10:17:54 +01:00
1 parent f770147c6d
commit 50c5f94007
2 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -163,7 +163,7 @@ def bundle(args):
for origin in sources:
if origin.is_symlink() or not origin.is_file():
fail(f'Bundle input must be a regular file: {origin}')
if rule['mode'] == '0755' and not os.access(origin, os.X_OK):
if rule['source'].startswith('target/release/') and not os.access(origin, os.X_OK):
fail(f'Bundle input is not executable: {origin}')
item = record(rule, origin.name)