Release file now up-to-date with proper directory handling..

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2, Sig, Sigo 2 years ago committed by GitHub
parent 53c2ec132d
commit 1277e0948a
  1. 2
      Java/scripts/md5
  2. 14
      Java/scripts/release.sh
  3. 20
      src/sig/objects/ConfigureControls.java

@ -4,6 +4,6 @@ clean.sh:668a2f9b568c55f6a044a509315032f6 -
commit.sh:5e4448db9ad48e72ec3a1ff4f5763b41 - commit.sh:5e4448db9ad48e72ec3a1ff4f5763b41 -
jar2.sh:7977fc138ee5db798d08c34734f0be93 - jar2.sh:7977fc138ee5db798d08c34734f0be93 -
jar.sh:821d5a109324d405f05c35c4bb129375 - jar.sh:821d5a109324d405f05c35c4bb129375 -
release.sh:b2338320cf2fc250572b4e4d5a887807 - release.sh:027178aa6da76180401a188d8f03af64 -
update.sh:3be721658983183efa395984acd96b03 - update.sh:3be721658983183efa395984acd96b03 -
zip.sh:273f5a83b80a8e54022d60514dfeec0a - zip.sh:273f5a83b80a8e54022d60514dfeec0a -

@ -1,6 +1,7 @@
#Use ./sig release <windows|mac|linux> to create a custom installer based on OS. #Use ./sig release <windows|mac|linux> to create a custom installer based on OS.
#Java #Java
source ${LANGUAGE}/scripts/version_info source ${LANGUAGE}/scripts/version_info
FILES=$(cat ${LANGUAGE}/scripts/.package.files)
if [ "$1" = "windows" ];then if [ "$1" = "windows" ];then
echo "Creating a package for Windows..." echo "Creating a package for Windows..."
echo "Not implemented yet." echo "Not implemented yet."
@ -10,10 +11,15 @@ elif [ "$1" = "mac" ];then
elif [ "$1" = "linux" ];then elif [ "$1" = "linux" ];then
echo "Creating a package for Linux..." echo "Creating a package for Linux..."
cd .. cd ..
jpackage --input RabiClone --main-jar bin/RabiClone.jar --main-class sig.RabiClone --type app-image --dest RabiCloneOut mkdir -vp RabiCloneOut/in
cp -R RabiCloneOut/RabiClone/lib/app/* RabiCloneOut/RabiClone for f in $FILES
jpackage --app-image RabiCloneOut/RabiClone --name RabiClone do
rm -Rf RabiCloneOut cp -Rv --parents $PROJECT_NAME/$f RabiCloneOut/in
done
jpackage --verbose --input RabiCloneOut/in/RabiClone --main-jar bin/RabiClone.jar --main-class sig.RabiClone --type app-image --dest RabiCloneOut
cp -Rv RabiCloneOut/RabiClone/lib/app/* RabiCloneOut/RabiClone
jpackage --verbose --app-image RabiCloneOut/RabiClone --name RabiClone
rm -Rfv RabiCloneOut
cd RabiClone cd RabiClone
echo "Done!" echo "Done!"
else else

@ -18,6 +18,7 @@ import sig.engine.Panel;
import sig.engine.String; import sig.engine.String;
import sig.engine.Transform; import sig.engine.Transform;
import sig.engine.objects.Object; import sig.engine.objects.Object;
import sig.map.Map;
public class ConfigureControls extends Object{ public class ConfigureControls extends Object{
@ -144,6 +145,25 @@ public class ConfigureControls extends Object{
return sb; return sb;
} }
@Override
public void KeyPressed(Action a) {
switch(a) {
case PLAY_GAME:{
RabiClone.OBJ.remove(RabiClone.level_renderer);
RabiClone.OBJ.add(RabiClone.level_renderer = new LevelRenderer(RabiClone.p));
RabiClone.StartGame();
}break;
case LEVEL_EDITOR:{
RabiClone.OBJ.clear();
RabiClone.ResetGame();
Map.LoadMap(RabiClone.CURRENT_MAP);
RabiClone.OBJ.add(RabiClone.level_renderer = new EditorRenderer(RabiClone.p));
}break;
}
}
public void rawKeyPressed(int keyCode) { public void rawKeyPressed(int keyCode) {
if (assigningKey) { if (assigningKey) {
List<KeyBind> clist = KeyBind.KEYBINDS.get(selectedAction); List<KeyBind> clist = KeyBind.KEYBINDS.get(selectedAction);

Loading…
Cancel
Save