diff --git a/diylc/diylc-swing/deploy/linux/run.sh b/diylc/diylc-swing/deploy/linux/run.sh
index 7f78069a..943efe7f 100755
--- a/diylc/diylc-swing/deploy/linux/run.sh
+++ b/diylc/diylc-swing/deploy/linux/run.sh
@@ -2,4 +2,19 @@
JAVA_BIN="$(which java)"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CLASS_PATH="${DIR}/diylc.jar"
-exec java -Xms512m -Xmx4096m -Dorg.diylc.scriptRun=true -Dfile.encoding=UTF-8 -cp "$CLASS_PATH" --add-exports java.desktop/com.apple.eawt.event=ALL-UNNAMED --add-exports java.desktop/com.apple.eio=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.desktop/java.awt=ALL-UNNAMED --add-opens java.desktop/java.awt.font=ALL-UNNAMED --add-opens java.desktop/java.awt.geom=ALL-UNNAMED org.diylc.DIYLCStarter "$@"
\ No newline at end of file
+
+exec java \
+ -Xms1024m \
+ -Xmx4096m \
+ -Dorg.diylc.scriptRun=true \
+ -Dfile.encoding=UTF-8 \
+ -cp "$CLASS_PATH" \
+ --add-exports java.desktop/com.apple.eawt.event=ALL-UNNAMED \
+ --add-exports java.desktop/com.apple.eio=ALL-UNNAMED \
+ --add-opens java.base/java.util=ALL-UNNAMED \
+ --add-opens java.base/java.lang=ALL-UNNAMED \
+ --add-opens java.base/java.text=ALL-UNNAMED \
+ --add-opens java.desktop/java.awt=ALL-UNNAMED \
+ --add-opens java.desktop/java.awt.font=ALL-UNNAMED \
+ --add-opens java.desktop/java.awt.geom=ALL-UNNAMED \
+ org.diylc.DIYLCStarter "$@"
\ No newline at end of file
diff --git a/diylc/diylc-swing/deploy/linux/test-appimage.sh b/diylc/diylc-swing/deploy/linux/test-appimage.sh
new file mode 100755
index 00000000..b8de95c5
--- /dev/null
+++ b/diylc/diylc-swing/deploy/linux/test-appimage.sh
@@ -0,0 +1,72 @@
+#!/bin/bash
+
+# Build the AppImage
+echo "Building AppImage..."
+cd ../..
+#mvn clean package -P linux-appimage
+
+# Check if build was successful
+if [ $? -ne 0 ]; then
+ echo "Build failed!"
+ exit 1
+fi
+
+# Get the AppImage path
+APPIMAGE="target/DIYLayoutCreator-5.1.0-x86_64.AppImage"
+ZIP_FILE="target/diylc-5.1.0-linux.zip"
+
+# Check if files exist
+if [ ! -f "$APPIMAGE" ]; then
+ echo "AppImage not found at $APPIMAGE"
+ exit 1
+fi
+
+if [ ! -f "$ZIP_FILE" ]; then
+ echo "Zip file not found at $ZIP_FILE"
+ exit 1
+fi
+
+# Create test directory
+TEST_DIR="target/appimage-test"
+rm -rf "$TEST_DIR"
+mkdir -p "$TEST_DIR"
+
+# Copy files to test directory
+echo "Copying files to test directory..."
+cp "$APPIMAGE" "$TEST_DIR/"
+cp "$ZIP_FILE" "$TEST_DIR/"
+
+# Extract zip file
+echo "Extracting zip file..."
+cd "$TEST_DIR"
+unzip "diylc-5.1.0-linux.zip"
+
+# Make AppImage executable
+chmod +x "DIYLayoutCreator-5.1.0-x86_64.AppImage"
+
+# Test AppImage structure
+echo "Testing AppImage structure..."
+if [ -f "DIYLayoutCreator-5.1.0-x86_64.AppImage" ]; then
+ echo "AppImage file exists and is executable"
+ echo "AppImage size: $(ls -lh DIYLayoutCreator-5.1.0-x86_64.AppImage | awk '{print $5}')"
+ echo "AppImage permissions: $(ls -l DIYLayoutCreator-5.1.0-x86_64.AppImage | awk '{print $1}')"
+
+ # Check if AppImage has the correct magic number
+ if file "DIYLayoutCreator-5.1.0-x86_64.AppImage" | grep -q "ELF 64-bit LSB executable"; then
+ echo "AppImage has correct ELF format"
+ else
+ echo "Warning: AppImage might not have correct ELF format"
+ fi
+
+ # Check if AppImage has the correct AppImage magic bytes
+ if dd if="DIYLayoutCreator-5.1.0-x86_64.AppImage" bs=8 count=1 2>/dev/null | grep -q "AI"; then
+ echo "AppImage has correct AppImage magic bytes"
+ else
+ echo "Warning: AppImage might not have correct AppImage magic bytes"
+ fi
+
+ echo "AppImage structure test completed successfully!"
+else
+ echo "AppImage file not found in test directory!"
+ exit 1
+fi
\ No newline at end of file
diff --git a/diylc/diylc-swing/deploy/win/launch4j-x64.xml b/diylc/diylc-swing/deploy/win/launch4j-x64.xml
index aa8e8e3a..d2740d62 100644
--- a/diylc/diylc-swing/deploy/win/launch4j-x64.xml
+++ b/diylc/diylc-swing/deploy/win/launch4j-x64.xml
@@ -24,7 +24,7 @@
true
17
- 512
+ 1024
4096
-Dorg.diylc.scriptRun=true
-Dfile.encoding=UTF-8
diff --git a/diylc/diylc-swing/pom.xml b/diylc/diylc-swing/pom.xml
index 95c2456b..c79eaded 100644
--- a/diylc/diylc-swing/pom.xml
+++ b/diylc/diylc-swing/pom.xml
@@ -260,47 +260,6 @@
-
- sign-jar-launcher
- package
-
- run
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -539,9 +498,17 @@
-
+
+
+
+
+
+
+
+
+
-
+
@@ -703,6 +670,49 @@
+
+
+ sign-jar-launcher
+ package
+
+ run
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
create-mac-bundle
@@ -740,7 +750,7 @@
-
+
@@ -973,6 +983,49 @@
+
+
+ sign-jar-launcher
+ package
+
+ run
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
create-mac-bundle
@@ -1011,7 +1064,7 @@
-
+
diff --git a/diylc/pom.xml b/diylc/pom.xml
index 0a778581..8f852003 100644
--- a/diylc/pom.xml
+++ b/diylc/pom.xml
@@ -23,7 +23,7 @@
17
17
1.2.15
- 1.4.19
+ 1.4.21
@@ -61,7 +61,7 @@
junit
junit
- 4.7
+ 4.13.1
test