Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 76f06f8

Browse files
committed
Add new launcher
1 parent 32b159c commit 76f06f8

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

build.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ fi
146146
"$JPACKAGE_CMD" -t app-image -n "$BUILD_NAME" --app-version "$BUILD_VERSION-$BUILD_VERSION_CODE" \
147147
-i out/project/input --main-jar core.jar --main-class net.bc100dev.osintgram4j.MainClass -d out/pkg --icon "extres/icon.png" \
148148
--java-options "-Xmx256m" --java-options "-Xms128m" --java-options '-Dog4j.location.app_dir=$APPDIR' \
149-
--java-options '-Dog4j.location.bin_dir=$BINDIR' --java-options '-Dog4j.location.root_dir=$ROOTDIR' --verbose
149+
--java-options '-Dog4j.location.bin_dir=$BINDIR' --java-options '-Dog4j.location.root_dir=$ROOTDIR' \
150+
--add-launcher og4j-logdata=extres/og4j-logdata-launcher.properties --verbose
150151

151152
cp cxx/out/og4j-editor out/pkg/osintgram4j/bin/og4j-editor
152153

@@ -161,6 +162,7 @@ if [[ "$INSTALL_CHOICE" =~ ^[Yy]$ ]]; then
161162
echo "Deleting previous installation"
162163
"$PREFIX" rm /usr/bin/osintgram4j
163164
"$PREFIX" rm /usr/bin/og4j-editor
165+
"$PREFIX" rm /usr/bin/og4j-logdata
164166

165167
if [ -d "/usr/share/osintgram4j" ]; then
166168
echo "Deleting old directory (moving to /usr/share/bc100dev/osintgram4j)"
@@ -175,6 +177,7 @@ if [[ "$INSTALL_CHOICE" =~ ^[Yy]$ ]]; then
175177
"$PREFIX" cp -r out/pkg/osintgram4j/* /usr/share/bc100dev/osintgram4j
176178
"$PREFIX" ln -s /usr/share/bc100dev/osintgram4j/bin/osintgram4j /usr/bin/osintgram4j
177179
"$PREFIX" ln -s /usr/share/bc100dev/osintgram4j/bin/og4j-editor /usr/bin/og4j-editor
180+
"$PREFIX" ln -s /usr/share/bc100dev/osintgram4j/bin/og4j-logdata /usr/bin/og4j-logdata
178181

179182
read -p "Do you wish to create an Application Launcher (start from the Start Menu)? (Y/N): " LAUNCHER_CHOICE
180183
if [[ "$LAUNCHER_CHOICE" =~ ^[Yy]$ ]]; then

cxx/.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
linux_out
22
win_out
3-
out
3+
out
4+
win
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
main-class=net.bc100dev.osintgram4j.LogMainClass
2+
classpath=core.jar
3+
java-options=-Xmx256m -Xms128m -Dog4j.location.app_dir=$APPDIR -Dog4j.location.bin_dir=$BINDIR -Dog4j.location.root_dir=$ROOTDIR

0 commit comments

Comments
 (0)