diff --git a/.drone.yml b/.woodpecker/woodpecker.yml similarity index 55% rename from .drone.yml rename to .woodpecker/woodpecker.yml index 2fb0ea5..d8dec9a 100644 --- a/.drone.yml +++ b/.woodpecker/woodpecker.yml @@ -1,7 +1,3 @@ -kind: pipeline -type: docker -name: default - steps: - name: build image: maven:3-jdk-11 @@ -9,8 +5,7 @@ steps: - mvn -B -DskipTests clean install - mvn test -B volumes: - - name: m2 - path: /root/.m2 + - /home/docker/woodpecker/files/m2:/root/.m2 - name: archive-artifact image: alpine:latest @@ -18,13 +13,4 @@ steps: - mkdir -p /builds/ESRPatchJava - cp target/ESRPatchJava-*[0-9].jar /builds/ESRPatchJava/ volumes: - - name: builds - path: /builds - -volumes: - - name: m2 - host: - path: /home/docker/drone/files/m2 - - name: builds - host: - path: /home/www/builds \ No newline at end of file + - /home/www/builds:/builds diff --git a/README.md b/README.md index c067902..d3bb4ac 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ### ESRPatchJava -![License](https://img.shields.io/badge/License-GPLv3-blue.svg) ![LatestVer](https://img.shields.io/github/release/developersu/ESRPatchJava.svg) [![Build Status](https://ci.redrise.ru/api/badges/desu/ESRPatchJava/status.svg)](https://ci.redrise.ru/desu/ESRPatchJava) +![License](https://img.shields.io/badge/License-GPLv3-blue.svg) ![LatestVer](https://img.shields.io/github/release/developersu/ESRPatchJava.svg) [![status-badge](https://ci.redrise.ru/api/badges/3/status.svg)](https://ci.redrise.ru/repos/3) ![Application screenshot](screenshots/1.png) @@ -8,4 +8,4 @@ I don't know who is author(s), check code, maybe you'll find out. 'ffgriever' an History of changes you can track on git logs. Updated for using with Java 8+, added CI, Maven etc. -Taken from https://sksapps.haldrie.com/ps2exploit.php \ No newline at end of file +Taken from https://sksapps.haldrie.com/ps2exploit.php diff --git a/src/main/java/esrpatchjava/Main.java b/src/main/java/esrpatchjava/Main.java index 173b549..24a5788 100644 --- a/src/main/java/esrpatchjava/Main.java +++ b/src/main/java/esrpatchjava/Main.java @@ -78,12 +78,12 @@ public class Main extends JFrame implements ActionListener { } public void actionPerformed(ActionEvent event){ - JFileChooser fileChooser = new JFileChooser(); - fileChooser.setFileFilter(new ISOFileFilter()); - if (event.getSource() == btnQuit) System.exit(0); + JFileChooser fileChooser = new JFileChooser(); + fileChooser.setFileFilter(new ISOFileFilter()); + if (fileChooser.showOpenDialog(this) != JFileChooser.APPROVE_OPTION) return;