From fe5472af23345cbfcd31350cb66372452093399d Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Sun, 22 Jun 2025 10:41:32 +0800 Subject: [PATCH] Add "chmod +x" on Linux deploy Signed-off-by: Loren Eteval --- Deploy.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Deploy.py b/Deploy.py index 419d50c..93754b9 100644 --- a/Deploy.py +++ b/Deploy.py @@ -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