Separate beta app identity to prevent overwriting stable installation

- appId: com.sucukdeluxe.realdebrid-beta
- productName: Real-Debrid-Downloader Beta
- name: real-debrid-downloader-beta
- Release script asset names updated for Beta suffix

Beta installs to separate directory and uses own userData path,
so both stable and beta can run side by side.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sucukdeluxe 2026-03-08 19:08:54 +01:00
parent d0885ba552
commit 6fd25a5447
2 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
{ {
"name": "real-debrid-downloader", "name": "real-debrid-downloader-beta",
"version": "2.0.0-beta.1", "version": "2.0.0-beta.1",
"description": "Desktop downloader", "description": "Desktop downloader",
"main": "build/main/main/main.js", "main": "build/main/main/main.js",
@ -46,8 +46,8 @@
"wait-on": "^8.0.1" "wait-on": "^8.0.1"
}, },
"build": { "build": {
"appId": "com.sucukdeluxe.realdebrid", "appId": "com.sucukdeluxe.realdebrid-beta",
"productName": "Real-Debrid-Downloader", "productName": "Real-Debrid-Downloader Beta",
"directories": { "directories": {
"buildResources": "assets", "buildResources": "assets",
"output": "release" "output": "release"

View File

@ -200,8 +200,8 @@ function updatePackageVersion(rootDir, version) {
function patchLatestYml(releaseDir, version) { function patchLatestYml(releaseDir, version) {
const ymlPath = path.join(releaseDir, "latest.yml"); const ymlPath = path.join(releaseDir, "latest.yml");
let content = fs.readFileSync(ymlPath, "utf8"); let content = fs.readFileSync(ymlPath, "utf8");
const setupName = `Real-Debrid-Downloader Setup ${version}.exe`; const setupName = `Real-Debrid-Downloader Beta Setup ${version}.exe`;
const dashedName = `Real-Debrid-Downloader-Setup-${version}.exe`; const dashedName = `Real-Debrid-Downloader-Beta-Setup-${version}.exe`;
if (content.includes(dashedName)) { if (content.includes(dashedName)) {
content = content.split(dashedName).join(setupName); content = content.split(dashedName).join(setupName);
fs.writeFileSync(ymlPath, content, "utf8"); fs.writeFileSync(ymlPath, content, "utf8");
@ -212,10 +212,10 @@ function patchLatestYml(releaseDir, version) {
function ensureAssetsExist(rootDir, version) { function ensureAssetsExist(rootDir, version) {
const releaseDir = path.join(rootDir, "release"); const releaseDir = path.join(rootDir, "release");
const files = [ const files = [
`Real-Debrid-Downloader Setup ${version}.exe`, `Real-Debrid-Downloader Beta Setup ${version}.exe`,
`Real-Debrid-Downloader ${version}.exe`, `Real-Debrid-Downloader Beta ${version}.exe`,
"latest.yml", "latest.yml",
`Real-Debrid-Downloader Setup ${version}.exe.blockmap` `Real-Debrid-Downloader Beta Setup ${version}.exe.blockmap`
]; ];
for (const fileName of files) { for (const fileName of files) {
const fullPath = path.join(releaseDir, fileName); const fullPath = path.join(releaseDir, fileName);