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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
73c8b6e670
commit
7381e54f4f
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user