Skip to content

Commit 314e701

Browse files
committed
Update installer.mjs
1 parent 6badf28 commit 314e701

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

installer.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,15 +296,15 @@ platforms.forEach((dataFor) => {
296296
file = file.replace(/.sfx/g, dataFor.platform + '.sfx');
297297
let location = join(binaryDestination, (process.platform == 'win32' && !dataFor.source.includes('7z1900.exe') ? 'other32' : ''));
298298
to = join(location, file);
299-
fs.moveSync(from, to, {
299+
fs.copySync(from, to, {
300300
overwrite: true
301301
});
302302

303303
if (dataFor.platform != 'win32')
304304
makeExecutable([file], location);
305305
console.log('Sfx module ' + file + ' copied successfully!');
306306
} else if (dataFor.platform == process.platform) {
307-
fs.moveSync(from, to, {
307+
fs.copySync(from, to, {
308308
overwrite: true
309309
});
310310

0 commit comments

Comments
 (0)