You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug in the electron-updater package in the file BaseUpdater.ts.
It was introduced recently with this commit: 45fc0a0.
The NodeJS Modules fs and path have no default imports
import fs from "fs"
import path from "path"
should be
import * as fs from "fs"
import * as path from "path"
or
import { writeFileSync, rmSync } from "fs"
import { join, dirname } from "path"
Because of this, it will always throw an error and set installPathRequiresElevation = true.
This is not needed, when installing in the %appdata% directory of the user.
For users without Admin-Rights, this will even install the update for the wrong user.
I think this slipped through because of the typescript compiler option "allowSyntheticDefaultImports".
With this flag
There is a bug in the electron-updater package in the file BaseUpdater.ts.
It was introduced recently with this commit: 45fc0a0.
The NodeJS Modules fs and path have no default imports
should be
or
Because of this, it will always throw an error and set
installPathRequiresElevation = true
.This is not needed, when installing in the %appdata% directory of the user.
For users without Admin-Rights, this will even install the update for the wrong user.
I think this slipped through because of the typescript compiler option "allowSyntheticDefaultImports".
With this flag
compiles to
The text was updated successfully, but these errors were encountered: