copy -> rename

This commit is contained in:
Zlatin Balevsky
2021-08-02 16:37:49 +01:00
parent da6821a1ca
commit f3e6e01fe5

View File

@ -52,7 +52,7 @@ public class MacUpdateProcessor implements UpdatePostProcessor {
var dmg = new File(workDir, "I2P-" + version + ".dmg");
if (!FileUtil.copy(file,dmg,true,false))
if (!FileUtil.rename(file,dmg))
throw new IOException("Couldn't copy extracted update");
this.version = version;