Skip to content

Commit ed8b6e7

Browse files
committed
Revert sha file
1 parent bf43a06 commit ed8b6e7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/electron-updater/src/AppUpdater.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
BlockMap,
1313
retry,
1414
} from "builder-util-runtime"
15-
import { randomBytes, createHash } from "crypto"
15+
import { randomBytes } from "crypto"
1616
import { release } from "os"
1717
import { EventEmitter } from "events"
1818
import { mkdir, outputFile, readFile, rename, unlink } from "fs-extra"
@@ -702,9 +702,7 @@ export abstract class AppUpdater extends (EventEmitter as new () => TypedEmitter
702702
return path.basename(urlPath)
703703
} else {
704704
// url like /latest, generate stable name
705-
const hash = createHash("sha1")
706-
hash.update(taskOptions.fileInfo.url.toString())
707-
return hash.digest("hex")
705+
return taskOptions.fileInfo.info.url
708706
}
709707
}
710708

0 commit comments

Comments
 (0)