Mercurial Hosting > junotu
changeset 36:11bf54badc99
Figured out JAR MANIFEST, removed operating system-specific run scripts
author | Fox |
---|---|
date | Wed, 19 Oct 2022 12:36:59 +0200 |
parents | 8cc09761cf18 |
children | de1ba9325973 |
files | package.gui_sh src/manifest |
diffstat | 2 files changed, 6 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/package.gui_sh Thu Aug 18 20:12:22 2022 +0200 +++ b/package.gui_sh Wed Oct 19 12:36:59 2022 +0200 @@ -6,30 +6,15 @@ version=$(hg identify -i) -if [ ! -d './build' ]; then - mkdir ./build -fi +mkdir -p ./build/packed/libraries -if [ ! -d './build/packed' ]; then - mkdir ./build/packed -fi - -javac -d ./build $(find ./src -name '*.java' | xargs) && cd build && jar cvf ./packed/JUnotu.jar $(find ./ -name *.class) +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/run.sh <<EOF -#!/bin/sh -export CLASSPATH=./lucene-core-3.0.3.jar:./JUnotu.jar -cd \$(dirname \$0) -java junotu.Main -EOF -chmod +x ./build/packed/run.sh -cat > ./build/packed/run.bat <<EOF -@echo off -set "CLASSPATH=%cd%\lucene-core-3.0.3.jar;%cd%\JUnotu.jar" -java junotu.Main +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/ +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