forked from luwrain/parent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f30049b
commit 5f0d97c
Showing
4 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
Submodule base
updated
5 files
+24 −0 | docker/jammy-iso/Dockerfile | |
+17 −0 | docker/jammy-iso/lwr-build-iso | |
+6 −0 | docker/jammy-iso/make | |
+4 −1 | docker/jammy/Dockerfile | |
+0 −0 | docker/jammy/lwr-build-deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash -evx | ||
# Copyright 2012-2024 Michael Pozhidaev <[email protected]> | ||
# The LUWRAIN Project, GPL v.3 | ||
|
||
DIR="$(pwd)" | ||
DEST_DIR="$DIR/debian/luwrain/usr/share/luwrain" | ||
|
||
. base/scripts/init.sh | ||
|
||
cd base/scripts | ||
mkdir -p "$DEST_DIR/bin" | ||
|
||
cat <<EOF > "$DEST_DIR/bin/luwrain" | ||
#!/bin/bash -e | ||
# Runs the LUWRAIN platform | ||
# Copyright $(date +%Y) Michael Pozhidaev <[email protected]> | ||
cd /usr/share/luwrain | ||
exec java --module-path /usr/share/openjfx/lib --add-modules javafx.controls,javafx.web,javafx.swing -jar lib/luwrain-base.jar "\$@" | ||
EOF | ||
|
||
cat <<EOF > "$DEST_DIR/bin/lwr" | ||
#!/bin/bash -e | ||
# Runs the LUWRAIN platform blocking any output | ||
# Copyright $(date +%Y) Michael Pozhidaev <[email protected]> | ||
exec luwrain "\$@" > /dev/null 2>&1 | ||
EOF | ||
chmod 755 "$DEST_DIR/bin/luwrain" "$DEST_DIR/bin/lwr" | ||
|
||
./lwr-basedirs-linux "$DEST_DIR" | ||
|
||
cd $DEST_DIR | ||
wget -q https://download.luwrain.org/compilation/rhvoice-data.tar.xz | ||
tar xf rhvoice-data.tar.xz | ||
rm -f rhvoice-data.tar.xz | ||
|
||
cd lib | ||
rm -f javafx-*.jar | ||
[ -d $DIR/jni ] && cp $DIR/jni/* $DEST_DIR/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters