File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/electron-updater/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export abstract class BaseUpdater extends AppUpdater {
37
37
38
38
const cacheDir = this . downloadedUpdateHelper . cacheDir
39
39
await ensureDir ( cacheDir )
40
- const updateFileName = `installer-${ version } .${ taskOptions . fileExtension } `
40
+ const updateFileName = taskOptions . fileExtension === "AppImage" ? path . basename ( updateInfo . path ) : `installer-${ version } .${ taskOptions . fileExtension } `
41
41
const updateFile = path . join ( cacheDir , updateFileName )
42
42
const packageFile = packageInfo == null ? null : path . join ( cacheDir , `package-${ version } .${ path . extname ( packageInfo . path ) || "7z" } ` )
43
43
@@ -147,4 +147,4 @@ export interface DownloadExecutorTask {
147
147
readonly fileInfo : ResolvedUpdateFileInfo
148
148
readonly updateInfo : UpdateInfo
149
149
readonly task : ( destinationFile : string , packageFile : string | null , removeTempDirIfAny : ( ) => Promise < any > ) => Promise < any >
150
- }
150
+ }
You can’t perform that action at this time.
0 commit comments