Updated project to include a jar command runner

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2 2 years ago
parent 3125dcbfe6
commit cc0f69d8b1
  1. BIN
      JavaProjectTemplate.jar
  2. BIN
      bin/ArcadeReader$1.class
  3. BIN
      bin/ArcadeReader.class
  4. BIN
      bin/readers/DDRReader.class
  5. BIN
      bin/readers/ITGReader.class
  6. BIN
      bin/readers/LoveLiveReader.class
  7. BIN
      bin/readers/SoundVoltexReader.class
  8. BIN
      bin/readers/TestReader.class
  9. BIN
      bin/sigPlace.class
  10. BIN
      bin/sigServer.class
  11. 1
      manifest
  12. BIN
      readers/Box.class
  13. BIN
      readers/ColorRange.class
  14. BIN
      readers/PopnReader.class
  15. BIN
      readers/Reader.class
  16. BIN
      readers/fonts/Font.class
  17. BIN
      readers/fonts/Glyph.class
  18. 17
      scripts/jar.sh
  19. 22
      sig
  20. BIN
      sigPlace.jar
  21. 4
      sigPlace.java
  22. 9
      utils/define.sh

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1 @@
Main-Class: sigPlace

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,17 @@
#Builds a runnable jar file using ${MAIN_CLASS} as an entry point and then runs the newly generated jar.
#Java
source ${LANGUAGE}/scripts/version_info
rm -Rf bin/*
javac -d bin *.java
printf "\n\n\nGenerating Manifest...\n\n"
touch manifest
echo "Main-Class: ${MAIN_CLASS}" > manifest
printf "\n\n\nCreating Jar...\n\n"
ORIGINAL_LOC=$(pwd)
cd ${OUT_DIR}
jar cfm ${PROJECT_NAME}.jar ${ORIGINAL_LOC}/manifest .
jar uf ${PROJECT_NAME}.jar -C ../lib/bin/ .
printf "\n\n\nRunning Program...\n\n"
mv sigPlace.jar ..
cd ..
java ${CUSTOM_PARAMS} -Djava.library.path="${LIBRARY_PATH}" -jar ${PROJECT_NAME}.jar "$@"

22
sig

@ -1,12 +1,14 @@
if [ -z "$1" ] export AUTO_UPDATE=true
then
echo "" source utils/define.sh
echo " Usage: ./sig <command> {args}"
echo "" define PROJECT_NAME "sigPlace"
echo " Command List:" define PROJECT_DIR "."
ls -1 ./scripts | sed -e 's/\.sh$//' | sed -e 's/^/ /' define MAIN_CLASS "${PROJECT_NAME}"
echo "" define OUT_DIR "bin"
exit define LIBRARY_PATH "lib"
fi define CLASS_PATH "${PROJECT_DIR}"
define CUSTOM_PARAMS ""
define LANGUAGE "Java"
./scripts/$1.sh "${*:2}" ./scripts/$1.sh "${*:2}"

Binary file not shown.

@ -86,6 +86,9 @@ public class sigPlace {
final static int TRANSPARENT = new Color(0,0,0,0).getRGB(); final static int TRANSPARENT = new Color(0,0,0,0).getRGB();
public static void main(String[] args) { public static void main(String[] args) {
if (args.length>0&&args[0].equals("arcade")) {
System.out.println("Arcade");
} else {
populateDatabase(); populateDatabase();
/*String fontName = "sdvx_EXScore"; /*String fontName = "sdvx_EXScore";
String value = "00457"; String value = "00457";
@ -439,6 +442,7 @@ public class sigPlace {
} }
} */ } */
} }
}
private static void populateDatabase() { private static void populateDatabase() {
Iterator<Path> files; Iterator<Path> files;
try { try {

@ -0,0 +1,9 @@
export VARS=("")
export LANGUAGE=""
function define() {
VARS+=("$1")
value="${*:2}"
eval export "$1"='$value'
}
Loading…
Cancel
Save