Skip to content

Commit

Permalink
The correct one-liner
Browse files Browse the repository at this point in the history
  • Loading branch information
araghon007 authored Nov 6, 2020
1 parent 2a2840b commit 170af18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public void actionPerformed(ActionEvent e) {
Files.copy(new File(versions, version + File.separator + version + ".jar").toPath(), new File(wrapDir, versionWrapped + ".jar").toPath(), StandardCopyOption.REPLACE_EXISTING);
fos.write(versionJson.toString().getBytes());
fos.close();
File jar = new File(URLDecoder.decode(Installer.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath(), "UTF-8"));
File jar = new File(Installer.class.getProtectionDomain().getCodeSource().getLocation().toURI());
Files.copy(jar.toPath(), new File(libDir, "retrowrapper-installer.jar").toPath(), StandardCopyOption.REPLACE_EXISTING);
} catch (IOException | URISyntaxException ee) {
ee.printStackTrace();
Expand Down

0 comments on commit 170af18

Please sign in to comment.