Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
4fc2b4e5db
commit
58a4d556af
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 246 KiB |
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 386 KiB After Width: | Height: | Size: 223 KiB |
@ -10,7 +10,7 @@ ORIGINAL_LOC=$(pwd)
|
|||||||
cd ${OUT_DIR}
|
cd ${OUT_DIR}
|
||||||
jar cfm ${PROJECT_NAME}.jar ${ORIGINAL_LOC}/manifest sig
|
jar cfm ${PROJECT_NAME}.jar ${ORIGINAL_LOC}/manifest sig
|
||||||
printf "\n\n\nRunning Program...\n\n"
|
printf "\n\n\nRunning Program...\n\n"
|
||||||
java -jar ${PROJECT_NAME}.jar
|
java -jar ${PROJECT_NAME}.jar "$@"
|
||||||
mv ${PROJECT_NAME}.jar ${ORIGINAL_LOC}
|
mv ${PROJECT_NAME}.jar ${ORIGINAL_LOC}
|
||||||
cd ..
|
cd ..
|
||||||
./scripts/clean.sh
|
./scripts/clean.sh
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
build.sh:de32fdf9f3ce9eb5d4ea9902ee48dbe0 *-
|
build.sh:de32fdf9f3ce9eb5d4ea9902ee48dbe0 *-
|
||||||
clean.sh:8aec15e447257f1c3a4e978f1b56a78e *-
|
clean.sh:8aec15e447257f1c3a4e978f1b56a78e *-
|
||||||
commit.sh:a592fe2113538f8cf933907eeda13ddc *-
|
commit.sh:21af1fa6f09d01679c9e11408967264a *-
|
||||||
jar.sh:58c4f48f7e34425e55358a165a81c03b *-
|
jar.sh:62ce62bbb97d3f3856bcc9b0ad34083c *-
|
||||||
lean.sh:3be7b8b182ccd96e48989b4e57311193 *-
|
lean.sh:3be7b8b182ccd96e48989b4e57311193 *-
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package sig;
|
package sig;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.awt.image.BufferedImage;
|
import java.awt.image.BufferedImage;
|
||||||
@ -37,10 +38,12 @@ public class ArcadeScreenshotHandler {
|
|||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
System.out.println(e.getActionCommand());
|
System.out.println(e.getActionCommand());
|
||||||
POSTRequest postRes = new POSTRequest("http://"+args[0]+"/uploadform.html",Path.of("..","screenshot.png"));
|
|
||||||
try {
|
try {
|
||||||
|
BufferedImage img = CaptureScreen();
|
||||||
|
ImageIO.write(img,"png",new File("..","screenshot.png"));
|
||||||
|
POSTRequest postRes = new POSTRequest("http://"+args[0]+"/uploadform.html",Path.of("..","screenshot.png"));
|
||||||
System.out.println(((HttpResponse<String>)postRes.run()).body());
|
System.out.println(((HttpResponse<String>)postRes.run()).body());
|
||||||
} catch (FailedResponseException e1) {
|
} catch (FailedResponseException | IOException e1) {
|
||||||
e1.printStackTrace();
|
e1.printStackTrace();
|
||||||
}
|
}
|
||||||
playSound(Path.of("..","ding.wav"));
|
playSound(Path.of("..","ding.wav"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user