Bump Dojo from 1.16.5 to 1.17.3.

This should help with some of the security findings.
This commit is contained in:
supahgreg
2025-10-05 04:33:59 +00:00
parent 6e8a188e4a
commit 46ebef7ebf
25 changed files with 149 additions and 388 deletions

View File

@@ -5,40 +5,40 @@
# It will automatically replace previous build of Dojo in ../dojo
# Dojo requires Java runtime to build. Further information on rebuilding Dojo
# is available here: http://dojotoolkit.org/reference-guide/build/index.html
# is available here: https://dojotoolkit.org/reference-guide/build/index.html
VERSION=1.16.5
VERSION=1.17.3
# Download and extract dojo src code if it doesn't already exist
if [ ! -d "dojo" ]; then
TARBALL=dojo-release-$VERSION-src.tar.gz
if [ ! -f $TARBALL ]; then
wget -q http://download.dojotoolkit.org/release-$VERSION/$TARBALL
fi
tar -zxf $TARBALL
mv dojo-release-$VERSION-src/* .
rm -rf dojo-release-$VERSION-src
TARBALL=dojo-release-$VERSION-src.tar.gz
if [ ! -f $TARBALL ]; then
wget https://download.dojotoolkit.org/release-$VERSION/$TARBALL
fi
tar -zxf $TARBALL
mv dojo-release-$VERSION-src/* .
rm -rf dojo-release-$VERSION-src
fi
if [ -d util/buildscripts/ ]; then
rm -rf release/dojo
rm -rf release/dojo
pushd util/buildscripts
./build.sh profile=../../tt-rss action=release optimize=shrinksafe cssOptimize=comments
popd
pushd util/buildscripts
./build.sh profile=../../tt-rss action=release optimize=shrinksafe cssOptimize=comments
popd
if [ -d release/dojo ]; then
rm -rf ../dojo ../dijit
cp -r release/dojo/dojo ..
cp -r release/dojo/dijit ..
if [ -d release/dojo ]; then
rm -rf ../dojo ../dijit
cp -r release/dojo/dojo ..
cp -r release/dojo/dijit ..
cd ..
cd ..
find dojo -name '*uncompressed*' -exec rm -- {} \;
find dijit -name '*uncompressed*' -exec rm -- {} \;
else
echo $0: ERROR: Dojo build seems to have failed.
fi
find dojo -name '*uncompressed*' -exec rm -- {} \;
find dijit -name '*uncompressed*' -exec rm -- {} \;
else
echo $0: ERROR: Dojo build seems to have failed.
fi
else
echo $0: ERROR: Please unpack Dojo source release into current directory.
echo $0: ERROR: Please unpack Dojo source release into current directory.
fi