diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..c5f3f6b9 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.configuration.updateBuildConfiguration": "interactive" +} \ No newline at end of file diff --git a/diylc/.run/DIYLCStarter.run.xml b/diylc/.run/DIYLCStarter.run.xml new file mode 100644 index 00000000..b9dca84e --- /dev/null +++ b/diylc/.run/DIYLCStarter.run.xml @@ -0,0 +1,16 @@ + + + + \ No newline at end of file diff --git a/diylc/diylc-core/src/main/resources/update.xml b/diylc/diylc-core/src/main/resources/update.xml index 2b5d3745..d6090884 100644 --- a/diylc/diylc-core/src/main/resources/update.xml +++ b/diylc/diylc-core/src/main/resources/update.xml @@ -246,9 +246,13 @@ 1 0 - 2025-03-20 00:00:00.000 CET + 2025-03-22 00:00:00.000 CET + + NEW_FEATURE + Added ability to render the underside of boards along with the top side for easier validation, building and debugging + NEW_FEATURE Configurable 'High DPI Rendering' feature which makes the diagram smoother on high-resolution displays but can affect performance @@ -257,6 +261,10 @@ IMPROVEMENT Significantly improved rendering performance + + IMPROVEMENT + Increased initial memory allocation to 1GB for smoother performance + IMPROVEMENT Upgraded source code structure to modern standards and introduced Maven @@ -281,22 +289,6 @@ BUG_FIX Rotating selected components sometimes wacks the alignment off the grid - - https://github.com/bancika/diy-layout-creator/releases - - - - 5 - 2 - 0 - - 2025-03-20 00:00:00.000 CET - - - - NEW_FEATURE - Added ability to render the underside of boards along with the top side for easier validation, building and debugging - BUG_FIX Ctrl+X (Command+X) shortcut for Cut action doesn't work because 'Project Explorer' steals the focus on X key press diff --git a/diylc/diylc-swing/deploy/linux/appimage/diylc.sh b/diylc/diylc-swing/deploy/linux/appimage/diylc.sh index 07214765..1f2138b2 100644 --- a/diylc/diylc-swing/deploy/linux/appimage/diylc.sh +++ b/diylc/diylc-swing/deploy/linux/appimage/diylc.sh @@ -1,26 +1,25 @@ #!/bin/bash #set -x # Enable debug mode -HERE="$(dirname "$(readlink -f "$0")")" +# Get the AppImage directory +if [ -n "$APPDIR" ]; then + HERE="$APPDIR/usr/bin" +else + HERE="$(cd "$(dirname "$0")" && pwd)" +fi + echo "diylc.sh: Running from directory: $HERE" -# Check if Java is available -if [ -d "$HERE/jre" ]; then - export JAVA_HOME="$HERE/jre" - export PATH="$JAVA_HOME/bin:$PATH" - JAVA="$JAVA_HOME/bin/java" - echo "diylc.sh: Using bundled JRE: $JAVA" -else - JAVA="$(which java)" - echo "diylc.sh: Using system Java: $JAVA" -fi - -# Debug: Check Java existence -if [ ! -x "$JAVA" ]; then - echo "diylc.sh: ERROR - Java binary not found or not executable!" +# Use system Java +JAVA="$(which java)" +if [ -z "$JAVA" ] || [ ! -x "$JAVA" ]; then + echo "diylc.sh: ERROR - System Java not found or not executable!" + echo "diylc.sh: Please install Java 17 or later" exit 1 fi +echo "diylc.sh: Using system Java: $JAVA" + cd "$HERE" echo "diylc.sh: Current working directory: $(pwd)" @@ -28,11 +27,9 @@ echo "diylc.sh: Current working directory: $(pwd)" echo "diylc.sh: Executing DIYLCStarter with Java" exec "$JAVA" \ - -Xms512m \ + -Xms1024m \ -Xmx4096m \ - -cp "$HERE/../lib/diylc.jar" \ - --add-exports java.desktop/com.apple.eawt.event=ALL-UNNAMED \ - --add-exports java.desktop/com.apple.eio=ALL-UNNAMED \ + -cp "$APPDIR/usr/lib/diylc.jar" \ --add-opens java.base/java.util=ALL-UNNAMED \ --add-opens java.base/java.lang=ALL-UNNAMED \ --add-opens java.base/java.text=ALL-UNNAMED \ diff --git a/diylc/diylc-swing/pom.xml b/diylc/diylc-swing/pom.xml index c79eaded..48952a6f 100644 --- a/diylc/diylc-swing/pom.xml +++ b/diylc/diylc-swing/pom.xml @@ -350,38 +350,38 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - JAVA_HOME="$APPDIR/usr/lib/jre" - JAVA_HOME="$APPDIR/usr/bin/jre" - + + + + +