aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-03-03 15:37:32 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-03-03 15:37:32 -0500
commit3f022d841fb457fb8822b5ff6b76ffa7b3e26716 (patch)
tree1b95c3b199b58bb4f802c23fc3e60d76cf7dacd2 /src/lpm.c
parent256dccc7e6967128df17f41a3ab81be8208354b2 (diff)
downloadlite-xl-plugin-manager-3f022d841fb457fb8822b5ff6b76ffa7b3e26716.tar.gz
lite-xl-plugin-manager-3f022d841fb457fb8822b5ff6b76ffa7b3e26716.zip
Allowed for disabling of self-upgrade.
Diffstat (limited to 'src/lpm.c')
-rw-r--r--src/lpm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 6816ae1..ba228a9 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -1336,6 +1336,7 @@ static const luaL_Reg system_lib[] = {
#ifndef LPM_DEFAULT_REPOSITORY
#define LPM_DEFAULT_REPOSITORY "https://github.com/lite-xl/lite-xl-plugin-manager.git:latest"
#endif
+// If this is defined as empty string, we disable self-upgrading.
#ifndef LPM_DEFAULT_RELEASE
#if _WIN32
#define LPM_DEFAULT_RELEASE "https://github.com/lite-xl/lite-xl-plugin-manager/releases/download/%r/lpm." LITE_ARCH_TUPLE ".exe"