Connect lib at runtime

This commit is contained in:
Ivan Zinchenko 2023-10-24 23:58:36 +03:00
parent 24ae971d89
commit 79f38baa29
Signed by: zinch
GPG Key ID: 6D45AA2C8FD6A37E
2 changed files with 1 additions and 2 deletions

View File

@ -1,3 +1,4 @@
Manifest-Version: 1.0
Created-By: zinch
Class-Path: lib/pokemon.jar
Main-class: Main

View File

@ -2,7 +2,5 @@ all:
rm -rf target
javac -cp lib/pokemon.jar -d target -sourcepath . Main.java Pokemons/* Moves/*
cd target; jar cfm app.jar ../MANIFEST.mf *.class ./**/*.class
cd target; jar -xf ../lib/pokemon.jar ./
cd target; jar -uf app.jar ru
mv target/app.jar ./
rm -rf target