
* cleaned up some files * Fundamental style update * Redesigned some style * fixed hostbanner popup * Removed old identity stuff * fixed close listener * Fixed changelog date * fixed release chat icons * fixed url * Fixed hostbanner * Uploaded missing images * Improved update handling * Improved script files * Fixed loading error and icon error * fixed Yes/No modal * Fixed loader issues with MS Edge * fixed modal style bug * Fixed control bar overflow for small devices * Improved error handling on identity creation * Logging generate error to terminal * fixed possible php error * fixed some possible loading errors when other files have'nt been already loaded. * removed debug message * Changed emsrcypten flags * Improved codec error handling * removed webassembly as required dependency * Improved and fixed channel tree issues * Improved the sliders * Removed unneeded files * fixed loader versions cache * second slight performance improved (dont animate elements anymore if they are not shown) * Fixed query visibility setting * not showing useless client infos for query clients * Added an auto reconnect system * Added a canceled message and increased reconnect interval * removed implemented todo * fixed repetitive channel names * Reworked the channel tree selected lines * Fixed channel tree names * Fixed name alignment * fixed the native client * added min width to the server select groups to avoid a disappearing effect on shrink * fixed bugged downloaded icons
55 lines
No EOL
1.3 KiB
Bash
Executable file
55 lines
No EOL
1.3 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
BASEDIR=$(dirname "$0")
|
|
cd "$BASEDIR/../"
|
|
|
|
if [[ "$1" == "development" ]] || [[ "$1" == "dev" ]]; then
|
|
source_path="web/environment/development"
|
|
type="development"
|
|
elif [[ "$1" == "release" ]] || [[ "$1" == "rel" ]]; then
|
|
source_path="web/environment/release"
|
|
type="release"
|
|
else
|
|
if [[ $# -lt 1 ]]; then
|
|
echo "Invalid argument count!"
|
|
else
|
|
echo "Invalid option $1"
|
|
fi
|
|
echo 'Available options are: "development" or "dev", "release" or "rel"'
|
|
exit 1
|
|
fi
|
|
|
|
if [[ ! -d "$source_path" ]]; then
|
|
echo "Could not find environment! ($source_path)"
|
|
echo "Please generate it first!"
|
|
exit 1
|
|
fi
|
|
|
|
response=$(git diff-index HEAD -- . ':!asm/libraries/' ':!package-lock.json' ':!vendor/')
|
|
if [[ "$response" != "" ]]; then
|
|
echo "You're using a private modified build!"
|
|
echo "Cant assign git hash!"
|
|
NAME="TeaWeb.zip"
|
|
else
|
|
NAME="TeaWeb-$(git rev-parse --short HEAD).zip"
|
|
fi
|
|
|
|
if [[ -e ${NAME} ]]; then
|
|
echo "Found old file. Deleting it."
|
|
rm -r ${NAME}
|
|
fi
|
|
|
|
current_path=$(pwd)
|
|
cd "$source_path"
|
|
zip -9 -r ${NAME} *
|
|
|
|
if [[ $? -ne 0 ]]; then
|
|
echo "Failed to package environment!"
|
|
exit 1
|
|
fi
|
|
|
|
cd "$current_path"
|
|
|
|
mv "${source_path}/${NAME}" .
|
|
echo "Release package successfully packaged!"
|
|
echo "Target file: ${NAME}" |