diff --git a/package.json b/package.json index d5b743e..576f2f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "real-debrid-downloader", - "version": "1.4.41", + "version": "1.4.42", "description": "Real-Debrid Downloader Desktop (Electron + React + TypeScript)", "main": "build/main/main/main.js", "author": "Sucukdeluxe", diff --git a/scripts/release_codeberg.mjs b/scripts/release_codeberg.mjs index a5867b0..7d556f2 100644 --- a/scripts/release_codeberg.mjs +++ b/scripts/release_codeberg.mjs @@ -2,6 +2,8 @@ import fs from "node:fs"; import path from "node:path"; import { spawnSync } from "node:child_process"; +const NPM_EXECUTABLE = process.platform === "win32" ? "npm.cmd" : "npm"; + function run(command, args, options = {}) { const result = spawnSync(command, args, { cwd: process.cwd(), @@ -241,7 +243,7 @@ async function main() { updatePackageVersion(rootDir, version); process.stdout.write(`Building release artifacts for ${tag}...\n`); - run("npm", ["run", "release:win"]); + run(NPM_EXECUTABLE, ["run", "release:win"]); const assets = ensureAssetsExist(rootDir, version); if (args.dryRun) {