This commit is contained in:
coco
2026-07-03 15:56:07 +08:00
commit caef23209c
5767 changed files with 1004268 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#! /bin/sh
BASEDIR="$(dirname "$(readlink -f "$0")")"
JAVACMD="$BASEDIR/runtime/bin/java"
exec "$JAVACMD" \
-splash:"$BASEDIR/resources/images/splashscreen.png" \
-cp "$BASEDIR/libs/*" \
-Xmx4096M \
-XX:+UnlockExperimentalVMOptions \
-XX:+UseShenandoahGC \
-XX:ShenandoahGCHeuristics=compact \
-XX:ShenandoahAllocationThreshold=20 \
--add-exports=javafx.base/com.sun.javafx.event=ALL-UNNAMED \
--add-exports=javafx.controls/com.sun.javafx.charts=ALL-UNNAMED \
--add-opens=javafx.graphics/javafx.geometry=ALL-UNNAMED \
--add-opens=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED \
--add-opens=javafx.graphics/com.sun.javafx.scene.traversal=ALL-UNNAMED \
-Dapp.name="binjr" \
-Dapp.pid="$$" \
-Dapp.home="$BASEDIR" \
-Dbasedir="$BASEDIR" \
-Dbinjr.portable=true \
"eu.binjr.core.Bootstrap" \
--system-plugins-path="$BASEDIR/plugins" \
--packaging="LINUX_TAR" \
"$@"
Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

@@ -0,0 +1,30 @@
#! /bin/sh
(
echo "[$(date '+%Y-%m-%dT%H:%M:%S%z')] Updating binjr to version ${NEW_VERSION}" &&
tar xzf "${PACKAGE}" "${NEW_VERSION}" &&
(
cd "./${OLD_VERSION}" &&
find . -mindepth 1 |
sed -n 's@^\./@@p' |
grep -vxFf "./.installed" |
while read file; do
if [ -f "$file" ] && ! [ -f "../${NEW_VERSION}/$file" ]; then
mkdir -p "../${NEW_VERSION}/$(dirname "$file")" &&
ln "$file" "../${NEW_VERSION}/$file" ||
exit 1
fi
done
) &&
ln -s "./${NEW_VERSION}/binjr" "./new_binjr" &&
mv "./new_binjr" "./binjr" && # atomic upgrade
rm -rf "./${OLD_VERSION}" &&
rm "./upgrade" &&
rm "${PACKAGE}" &&
echo "[$(date '+%Y-%m-%dT%H:%M:%S%z')] binjr succesfully updated to version ${NEW_VERSION}" ||
echo "[$(date '+%Y-%m-%dT%H:%M:%S%z')] Unable to update binjr to version ${NEW_VERSION}"
) >> "binjr-install.log" 2>&1
if "${RESTART}"; then
exec "./binjr"
fi