mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-01 01:44:34 -05:00
Try this
This commit is contained in:
@@ -147,24 +147,21 @@ download_electron() {
|
||||
}
|
||||
|
||||
setup_jre() {
|
||||
pwd
|
||||
ls
|
||||
ls ./jre
|
||||
if [ -d "./jre" ]; then
|
||||
mv "./jre" "$RELEASE_NAME/jre"
|
||||
return
|
||||
fi
|
||||
if [ ! -f "$JRE" ]; then
|
||||
curl -L "$JRE_URL" -o "$JRE"
|
||||
fi
|
||||
|
||||
local ext="${JRE##*.}"
|
||||
if [ "$ext" = "zip" ]; then
|
||||
unzip "$JRE"
|
||||
if [ -d "jre" ]; then
|
||||
mv "jre" "$RELEASE_NAME/jre"
|
||||
else
|
||||
tar xvf "$JRE"
|
||||
if [ ! -f "$JRE" ]; then
|
||||
curl -L "$JRE_URL" -o "$JRE"
|
||||
fi
|
||||
|
||||
local ext="${JRE##*.}"
|
||||
if [ "$ext" = "zip" ]; then
|
||||
unzip "$JRE"
|
||||
else
|
||||
tar xvf "$JRE"
|
||||
fi
|
||||
mv "$JRE_DIR" "$RELEASE_NAME/jre"
|
||||
fi
|
||||
mv "$JRE_DIR" "$RELEASE_NAME/jre"
|
||||
}
|
||||
|
||||
copy_linux_package_assets_to() {
|
||||
|
||||
Reference in New Issue
Block a user