mirror of
https://github.com/kaboomserver/server.git
synced 2024-12-22 15:45:07 +00:00
Add scripts for fetching latest versions of plugins
This commit is contained in:
parent
c7c8eb4670
commit
14ce48b036
3 changed files with 45 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
scripts/fetched_plugins/
|
29
scripts/fetch_external_plugins.sh
Executable file
29
scripts/fetch_external_plugins.sh
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
# Script used to fetch latest versions of external plugins
|
||||
# Plugins: EssentialsX, FastAsyncWorldEdit, GeyserMC, ViaVersion, ViaBackwards, ViaRewind
|
||||
|
||||
mkdir -p fetched_plugins
|
||||
|
||||
# Fetch plugins
|
||||
for download_url in https://ci.ender.zone/job/EssentialsX/lastSuccessfulBuild/artifact/*zip*/archive.zip \
|
||||
https://ci.athion.net/job/FastAsyncWorldEdit-1.17/lastSuccessfulBuild/artifact/*zip*/archive.zip \
|
||||
https://ci.opencollab.dev/job/GeyserMC/job/Geyser/job/master/lastSuccessfulBuild/artifact/*zip*/archive.zip \
|
||||
https://ci.viaversion.com/job/ViaVersion/lastSuccessfulBuild/artifact/*zip*/archive.zip \
|
||||
https://ci.viaversion.com/job/ViaBackwards/lastSuccessfulBuild/artifact/*zip*/archive.zip \
|
||||
https://ci.viaversion.com/job/ViaRewind/lastSuccessfulBuild/artifact/*zip*/archive.zip
|
||||
do
|
||||
curl -L $download_url > archive.zip
|
||||
unzip -o archive.zip
|
||||
rm archive.zip
|
||||
done
|
||||
|
||||
# Move plugins
|
||||
mv archive/jars/EssentialsX-*.jar fetched_plugins/Essentials.jar
|
||||
mv archive/artifacts/FastAsyncWorldEdit-Bukkit-*.jar fetched_plugins/FastAsyncWorldEdit.jar
|
||||
mv archive/bootstrap/spigot/target/Geyser-Spigot.jar fetched_plugins/Geyser.jar
|
||||
mv archive/build/libs/ViaVersion-*.jar fetched_plugins/ViaVersion.jar
|
||||
mv archive/build/libs/ViaBackwards-*.jar fetched_plugins/ViaBackwards.jar
|
||||
mv archive/all/target/ViaRewind-*.jar fetched_plugins/ViaRewind.jar
|
||||
|
||||
# Clean up
|
||||
rm -rf archive/
|
15
scripts/fetch_internal_plugins.sh
Executable file
15
scripts/fetch_internal_plugins.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
# Script used to fetch latest versions of internal plugins
|
||||
# Plugins: CommandSpy, Extras, iControlU, Weapons
|
||||
|
||||
mkdir -p fetched_plugins
|
||||
|
||||
for download_url in https://nightly.link/kaboomserver/commandspy/workflows/main/master/CommandSpy.zip \
|
||||
https://nightly.link/kaboomserver/extras/workflows/main/master/Extras.zip \
|
||||
https://nightly.link/kaboomserver/icontrolu/workflows/main/master/iControlU.zip \
|
||||
https://nightly.link/kaboomserver/weapons/workflows/main/master/Weapons.zip
|
||||
do
|
||||
curl -L $download_url > archive.zip
|
||||
unzip -o archive.zip -d fetched_plugins
|
||||
rm archive.zip
|
||||
done
|
Loading…
Reference in a new issue