11diff --git a/out/AppImageUpdater.js b/out/AppImageUpdater.js
2- index 25cef3598cd278cc2a7f1432377c7a50048824b9..b8427a0e622766755faaa0d616f361e5a284e265 100644
2+ index 452e93f..82a6b7c 100644
33--- a/out/AppImageUpdater.js
44+++ b/out/AppImageUpdater.js
55@@ -6,6 +6,7 @@ const child_process_1 = require("child_process");
@@ -10,16 +10,16 @@ index 25cef3598cd278cc2a7f1432377c7a50048824b9..b8427a0e622766755faaa0d616f361e5
1010 const BaseUpdater_1 = require("./BaseUpdater");
1111 const FileWithEmbeddedBlockMapDifferentialDownloader_1 = require("./differentialDownloader/FileWithEmbeddedBlockMapDifferentialDownloader");
1212 const Provider_1 = require("./providers/Provider");
13- @@ -74 ,8 +75 ,6 @@ class AppImageUpdater extends BaseUpdater_1.BaseUpdater {
14- if (appImageFile == null ) {
15- throw (0, builder_util_runtime_1.newError)(" APPIMAGE env is not defined" , "ERR_UPDATER_OLD_FILE_NOT_FOUND");
13+ @@ -77 ,8 +78 ,6 @@ class AppImageUpdater extends BaseUpdater_1.BaseUpdater {
14+ if (!path.isAbsolute( appImageFile) || appImageFile.includes("\0") ) {
15+ throw (0, builder_util_runtime_1.newError)(` APPIMAGE env is not a valid absolute path: "${appImageFile}"` , "ERR_UPDATER_OLD_FILE_NOT_FOUND");
1616 }
1717- // https://stackoverflow.com/a/1712051/1910191
1818- (0, fs_1.unlinkSync)(appImageFile);
1919 let destination;
2020 const existingBaseName = path.basename(appImageFile);
2121 const installerPath = this.installerPath;
22- @@ -92 ,7 +91,53 @@ class AppImageUpdater extends BaseUpdater_1.BaseUpdater {
22+ @@ -95 ,7 +94,62 @@ class AppImageUpdater extends BaseUpdater_1.BaseUpdater {
2323 else {
2424 destination = path.join(path.dirname(appImageFile), path.basename(installerPath));
2525 }
@@ -52,6 +52,15 @@ index 25cef3598cd278cc2a7f1432377c7a50048824b9..b8427a0e622766755faaa0d616f361e5
5252+ fs_1.closeSync(fd);
5353+ }
5454+ fs_1.renameSync(staged, destination);
55+ + if (process.platform === "linux") {
56+ + const directoryFd = fs_1.openSync(path.dirname(destination), "r");
57+ + try {
58+ + fs_1.fsyncSync(directoryFd);
59+ + }
60+ + finally {
61+ + fs_1.closeSync(directoryFd);
62+ + }
63+ + }
5564+ this._logger.info(`Installed verified AppImage at ${destination}`);
5665+ }
5766+ finally {
0 commit comments