From 25fe1b0d27edebf2ea37d172985fa5e1b0c6177e Mon Sep 17 00:00:00 2001 From: Ned Palacios Date: Thu, 4 Apr 2024 09:13:57 +0800 Subject: [PATCH] fix(package.py): properly replace gh repo details inside auto-updater.php --- package.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.py b/package.py index 7ec836e..c93cf7a 100644 --- a/package.py +++ b/package.py @@ -12,8 +12,8 @@ if 'GH_USERNAME' in os.environ and 'GH_REPO' in os.environ: with open(os.path.join(__dir__, 'inc', 'auto-updater.php'), 'r+') as file: data = file.read() - data = data.replace('GH_USERNAME', os.environ['GH_USERNAME']) - data = data.replace('GH_REPO', os.environ['GH_REPO']) + data = data.replace('{{GH-USERNAME}}', os.environ['GH_USERNAME']) + data = data.replace('{{GH-REPO-NAME}}', os.environ['GH_REPO']) file.seek(0) file.write(data) file.truncate()