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:
parent
d0885ba552
commit
6fd25a5447
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "real-debrid-downloader",
|
||||
"name": "real-debrid-downloader-beta",
|
||||
"version": "2.0.0-beta.1",
|
||||
"description": "Desktop downloader",
|
||||
"main": "build/main/main/main.js",
|
||||
@ -46,8 +46,8 @@
|
||||
"wait-on": "^8.0.1"
|
||||
},
|
||||
"build": {
|
||||
"appId": "com.sucukdeluxe.realdebrid",
|
||||
"productName": "Real-Debrid-Downloader",
|
||||
"appId": "com.sucukdeluxe.realdebrid-beta",
|
||||
"productName": "Real-Debrid-Downloader Beta",
|
||||
"directories": {
|
||||
"buildResources": "assets",
|
||||
"output": "release"
|
||||
|
||||
@ -200,8 +200,8 @@ function updatePackageVersion(rootDir, version) {
|
||||
function patchLatestYml(releaseDir, version) {
|
||||
const ymlPath = path.join(releaseDir, "latest.yml");
|
||||
let content = fs.readFileSync(ymlPath, "utf8");
|
||||
const setupName = `Real-Debrid-Downloader Setup ${version}.exe`;
|
||||
const dashedName = `Real-Debrid-Downloader-Setup-${version}.exe`;
|
||||
const setupName = `Real-Debrid-Downloader Beta Setup ${version}.exe`;
|
||||
const dashedName = `Real-Debrid-Downloader-Beta-Setup-${version}.exe`;
|
||||
if (content.includes(dashedName)) {
|
||||
content = content.split(dashedName).join(setupName);
|
||||
fs.writeFileSync(ymlPath, content, "utf8");
|
||||
@ -212,10 +212,10 @@ function patchLatestYml(releaseDir, version) {
|
||||
function ensureAssetsExist(rootDir, version) {
|
||||
const releaseDir = path.join(rootDir, "release");
|
||||
const files = [
|
||||
`Real-Debrid-Downloader Setup ${version}.exe`,
|
||||
`Real-Debrid-Downloader ${version}.exe`,
|
||||
`Real-Debrid-Downloader Beta Setup ${version}.exe`,
|
||||
`Real-Debrid-Downloader Beta ${version}.exe`,
|
||||
"latest.yml",
|
||||
`Real-Debrid-Downloader Setup ${version}.exe.blockmap`
|
||||
`Real-Debrid-Downloader Beta Setup ${version}.exe.blockmap`
|
||||
];
|
||||
for (const fileName of files) {
|
||||
const fullPath = path.join(releaseDir, fileName);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user