From 7381e54f4f6ea8a4f7a7748087e20f9af9f23e6e Mon Sep 17 00:00:00 2001 From: Sucukdeluxe Date: Fri, 27 Feb 2026 13:43:33 +0100 Subject: [PATCH] Fix update loop: read APP_VERSION from package.json v1.3.1 APP_VERSION was hardcoded as "1.1.29" in constants.ts causing the app to always report the old version and re-trigger the update prompt. Now reads version dynamically from package.json via import. Co-Authored-By: Claude Opus 4.6 --- package-lock.json | 4 ++-- package.json | 2 +- src/main/constants.ts | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 250a72e..d6409bc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "real-debrid-downloader", - "version": "1.3.0", + "version": "1.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "real-debrid-downloader", - "version": "1.3.0", + "version": "1.3.1", "license": "MIT", "dependencies": { "adm-zip": "^0.5.16", diff --git a/package.json b/package.json index 0465328..93d9c55 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "real-debrid-downloader", - "version": "1.3.0", + "version": "1.3.1", "description": "Real-Debrid Downloader Desktop (Electron + React + TypeScript)", "main": "build/main/main/main.js", "author": "Sucukdeluxe", diff --git a/src/main/constants.ts b/src/main/constants.ts index 6100318..735ca9f 100644 --- a/src/main/constants.ts +++ b/src/main/constants.ts @@ -1,9 +1,10 @@ import path from "node:path"; import os from "node:os"; import { AppSettings } from "../shared/types"; +import packageJson from "../../package.json"; export const APP_NAME = "Debrid Download Manager"; -export const APP_VERSION = "1.1.29"; +export const APP_VERSION: string = packageJson.version; export const API_BASE_URL = "https://api.real-debrid.com/rest/1.0"; export const DCRYPT_UPLOAD_URL = "https://dcrypt.it/decrypt/upload";