mirror of
https://github.com/kaboomserver/framework.git
synced 2025-02-26 09:23:55 -05:00
14 lines
661 B
Bash
Executable file
14 lines
661 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# This script is used as a reference to generate a stripped-down JRE for the server
|
|
|
|
rm -rf java/
|
|
curl -L https://download.java.net/java/GA/jdk21/fd2272bbf8e04c3dbaee13770090416c/35/GPL/openjdk-21_linux-x64_bin.tar.gz > openjdk.tar.gz
|
|
tar -zxvf openjdk.tar.gz
|
|
rm openjdk.tar.gz
|
|
mv jdk* jdk/
|
|
jdk/bin/jlink --no-header-files --no-man-pages --compress=2 --strip-debug \
|
|
--exclude-files=**java_*.properties,**jrunscript,**keytool,**legal/** \
|
|
--add-modules java.desktop,java.instrument,java.logging,java.management,java.naming,java.net.http,java.scripting,java.sql,jdk.crypto.ec,jdk.security.auth,jdk.unsupported,jdk.zipfs \
|
|
--output java
|
|
rm -rf jdk/
|