view package.gui_sh @ 36:11bf54badc99

Figured out JAR MANIFEST, removed operating system-specific run scripts
author Fox
date Wed, 19 Oct 2022 12:36:59 +0200
parents 14ba7a4ea7cd
children 0d4e996a5d99
line wrap: on
line source

#!/bin/sh

#export _JAVA_AWT_WM_NONREPARENTING=1
export CLASSPATH=./src:./build:./lib/lucene-core-3.0.3.jar
#JAVA=/usr/lib/jvm/java-8-openjdk-amd64/bin/java

version=$(hg identify -i)

mkdir -p ./build/packed/libraries

javac -d ./build $(find ./src -name '*.java' | xargs) && cd build && jar cvefm junotu.Main ./packed/JUnotu.jar ../src/manifest $(find ./ -name *.class)
cd ..
cat > ./build/packed/readme.txt <<EOF
To run the program, unpack it from the achive and either double click 'JUnotu.jar' or run 'java -jar JUnotu.jar' command in the terminal.
EOF
echo $version > ./build/packed/version
scp -r ./lib/* ./build/packed/libraries
rm -f ./build/packed/JUnotu.tar
tar -cvhf ./build/packed/JUnotu.tar -C ./build/packed/ $(ls ./build/packed)
echo Packed revision: $version