Add "chmod +x" on Linux deploy

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2025-06-22 10:41:32 +08:00
parent 1fe3396ec6
commit fe5472af23
+19
View File
@@ -563,6 +563,25 @@ def main():
else:
logger.info(f'generate AppImage success: {LINUX_APPIMAGE_FILENAME}')
printStandardStream(result.stdout, result.stderr)
try:
result = runExternalCommand(
f'chmod +x {LINUX_APPIMAGE_FILENAME}',
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
shell=True,
check=True,
)
except subprocess.CalledProcessError as err:
logger.error(f'chmod +x failed with returncode {err.returncode}')
printStandardStream(err.stdout, err.stderr)
sys.exit(EXIT_FAILURE)
else:
logger.info(f'chmod +x success: {LINUX_APPIMAGE_FILENAME}')
printStandardStream(result.stdout, result.stderr)
else:
# Deploy: Not implemented