2.7.0
01/11/2015 - Improved the Refresh Class function to be used as the default compile function. 01/11/2015 - Implemented better error handling for decompiling class files. 01/15/2015 - CTRL + O will open the add file interface. 01/15/2015 - CTRL + N will open the net workspace interface. 01/15/2015 - It will now save the last directory you opened. 01/15/2015 - Some how the URL for the auto updater change log got changed, this has been fixed. 01/15/2015 - Slightly updated the change log display, it'll now show all the changes since your version. 01/16/2015 - Made EZ-Injection UI look a bit nicer. 01/27/2015 - Decided to scrap the JVM Sandbox POC and use the Security Manager. 01/27/2015 - BCV now blocks exec and won't allow any ports to be bound.
This commit is contained in:
parent
d9f35b8288
commit
6acac78011
2 changed files with 7 additions and 7 deletions
Binary file not shown.
|
@ -396,14 +396,14 @@ public class BytecodeViewer {
|
|||
} catch(Exception e) {
|
||||
new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e);
|
||||
}
|
||||
fc.setFileFilter(viewer.new JarFileFilter());
|
||||
fc.setFileFilter(viewer.new ZipFileFilter());
|
||||
fc.setFileHidingEnabled(false);
|
||||
fc.setAcceptAllFileFilterUsed(false);
|
||||
int returnVal = fc.showSaveDialog(viewer);
|
||||
if (returnVal == JFileChooser.APPROVE_OPTION) {
|
||||
File file = fc.getSelectedFile();
|
||||
if(!file.getAbsolutePath().endsWith(".jar"))
|
||||
file = new File(file.getAbsolutePath()+".jar");
|
||||
if(!file.getAbsolutePath().endsWith(".zip"))
|
||||
file = new File(file.getAbsolutePath()+".zip");
|
||||
|
||||
if(file.exists()) {
|
||||
pane = new JOptionPane("The file " + file + " exists, would you like to overwrite it?");
|
||||
|
@ -429,10 +429,10 @@ public class BytecodeViewer {
|
|||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
InputStream is = new URL("https://github.com/Konloch/bytecode-viewer/releases/download/v"+version+"/BytecodeViewer."+version+".jar").openConnection().getInputStream();
|
||||
InputStream is = new URL("https://github.com/Konloch/bytecode-viewer/releases/download/v"+version+"/BytecodeViewer."+version+".zip").openConnection().getInputStream();
|
||||
FileOutputStream fos = new FileOutputStream(finalFile);
|
||||
try {
|
||||
System.out.println("Downloading from https://github.com/Konloch/bytecode-viewer/releases/download/v"+version+"/BytecodeViewer."+version+".jar");
|
||||
System.out.println("Downloading from https://github.com/Konloch/bytecode-viewer/releases/download/v"+version+"/BytecodeViewer."+version+".zip");
|
||||
byte[] buffer = new byte[8192];
|
||||
int len;
|
||||
int downloaded = 0;
|
||||
|
@ -463,9 +463,9 @@ public class BytecodeViewer {
|
|||
}
|
||||
}
|
||||
System.out.println("Download finished!");
|
||||
showMessage("Download successful! You can find the updated jar at " + finalFile.getAbsolutePath());
|
||||
showMessage("Download successful! You can find the updated program at " + finalFile.getAbsolutePath());
|
||||
} catch(FileNotFoundException e) {
|
||||
showMessage("Unable to download, the jar file has not been uploaded yet, please try again later in an hour.");
|
||||
showMessage("Unable to download, the zip file has not been uploaded yet, please try again later in an hour.");
|
||||
} catch(Exception e) {
|
||||
new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue