diff --git a/.changeset/real-ducks-repair.md b/.changeset/real-ducks-repair.md new file mode 100644 index 00000000000..9d7d972cdb5 --- /dev/null +++ b/.changeset/real-ducks-repair.md @@ -0,0 +1,5 @@ +--- +"electron-updater": patch +--- + +fix(rpm-updater): stop uninstalling app before update diff --git a/packages/electron-updater/src/RpmUpdater.ts b/packages/electron-updater/src/RpmUpdater.ts index 3b7f9f9cea2..15cc98007b5 100644 --- a/packages/electron-updater/src/RpmUpdater.ts +++ b/packages/electron-updater/src/RpmUpdater.ts @@ -36,18 +36,9 @@ export class RpmUpdater extends BaseUpdater { let cmd: string[] if (!packageManager) { const packageManager = this.spawnSyncLog("which dnf || which yum") - cmd = [packageManager, "-y", "remove", `'${this.app.name}'`, ";", packageManager, "-y", "install", upgradePath] + cmd = [packageManager, "-y", "install", upgradePath] } else { cmd = [ - packageManager, - "remove", - "-y", - `'${this.app.name}'`, - ";", - packageManager, - "clean", - "--all", - ";", packageManager, "--no-refresh", "install",