add build script

master
Michel Roux 4 years ago
parent ec08d71262
commit 76a0b598b1
  1. 4
      .idea/artifacts/Symantec.xml
  2. 5
      build.sh
  3. 2
      src/Symantec.java

@ -6,7 +6,9 @@
<element id="file-copy" path="$PROJECT_DIR$/META-INF/MANIFEST.MF" />
</element>
<element id="module-output" name="Symantec" />
<element id="dir-copy" path="$PROJECT_DIR$/res" />
<element id="directory" name="res">
<element id="dir-copy" path="$PROJECT_DIR$/res" />
</element>
</root>
</artifact>
</component>

@ -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/*

@ -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);

Loading…
Cancel
Save