#!/usr/bin/env bash

java -jar packr.jar \
    --platform mac \
    --jdk "${JAVA_HOME}" \
    --executable Symantec \
    --classpath ../out/artifacts/Symantec/Symantec.jar \
    --removelibs ../out/artifacts/Symantec/Symantec.jar \
    --mainclass Symantec \
    --minimizejre hard \
    --bundle "" \
    --output ../out/app/Symantec.app

sed -i $'s/<\/dict>/  <key>LSUIElement<\/key>\\\n  <true\/>\\\n<\/dict>/' ../out/app/Symantec.app/Contents/Info.plist
