From 76a0b598b13b7e1c199215dd2a0fbd8c377a0c75 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sat, 29 Sep 2018 22:17:02 +0200 Subject: [PATCH] add build script --- .idea/artifacts/Symantec.xml | 4 +++- build.sh | 5 +++++ src/Symantec.java | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 build.sh diff --git a/.idea/artifacts/Symantec.xml b/.idea/artifacts/Symantec.xml index 83236ae..72724ce 100644 --- a/.idea/artifacts/Symantec.xml +++ b/.idea/artifacts/Symantec.xml @@ -6,7 +6,9 @@ - + + + \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..3512581 --- /dev/null +++ b/build.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +mkdir -p out/production/Symantec out/artifacts/Symantec +javac -d out/production/Symantec src/Symantec.java +jar cvfm out/artifacts/Symantec/Symantec.jar META-INF/MANIFEST.MF -C out/production/Symantec Symantec.class res/* diff --git a/src/Symantec.java b/src/Symantec.java index 794b2e0..41be3e5 100644 --- a/src/Symantec.java +++ b/src/Symantec.java @@ -10,7 +10,7 @@ public class Symantec { private void load() { try { - BufferedImage img = ImageIO.read(getClass().getResourceAsStream("Capture.PNG")); + BufferedImage img = ImageIO.read(getClass().getResourceAsStream("res/Capture.PNG")); TrayIcon trayIcon = new TrayIcon(img, "Symantec"); SystemTray tray = SystemTray.getSystemTray(); tray.add(trayIcon);