1
0
mirror of https://github.com/kami-blue/client synced 2024-12-19 05:34:41 +00:00

update website scripts

This commit is contained in:
Bella 2020-03-06 18:31:29 -05:00
parent c4b3b45d74
commit 0f7f541b6f
No known key found for this signature in database
GPG Key ID: 03B01AC937D1C89C
2 changed files with 26 additions and 3 deletions

22
scripts/fullWeb.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/sh
# Created by S-B99 on 06/03/20
# echo "Usage: ./fullWeb.sh URL VER"
cd /home/bella/projects/kamiblueWebsite/ || exit
case $1 in
*'|'*)
printf 'error: url cannot have any "|" in it\n' >&2
exit 1
esac
sed -i "s|jar_url:.*|jar_url: $1|g" docs/_config.yml
sed -i "s|jar_name:.*|jar_name: $2|g" docs/_config.yml
git reset
git add docs/_config.yml
git commit -m "[BOT] New beta release from Discord"
git push
cd /home/bella/projects/kamiblue/ || exit

View File

@ -1,7 +1,7 @@
#!/bin/sh
# Created by S-B99 on 02/03/20
# echo "Usage: ./ver.sh v2.0.0 01"
# Created by S-B99 on 02/06/20
# echo "Usage: ./website.sh URL VERSION BETAVERSION"
cd /home/bella/projects/kamiblueWebsite/ || exit
@ -11,7 +11,8 @@ case $1 in
exit 1
esac
sed -i "s|https:\/\/cdn\.discordapp\.com\/attachments\/.*-release\.jar|$1|g" docs/_config.yml
sed -i "s|beta_jar_url:.*|beta_jar_url: $1|g" docs/_config.yml
sed -i "s|beta_jar_name:.*|beta_jar_name: $2-beta-$3|g" docs/_config.yml
git reset
git add docs/_config.yml