Skip to content

Commit

Permalink
Use higher optimisation levels for release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
NeRdTheNed committed May 19, 2023
1 parent 9337cc7 commit f32803e
Showing 1 changed file with 26 additions and 14 deletions.
40 changes: 26 additions & 14 deletions removeDirectoryEntries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,25 @@ do
rm -rf ./build/libs/temp/libraries/temp/
strip-nondeterminism "$jarJar"
advzip --shrink-extra -kzp "$jarJar"
advzip --shrink-insane -kzi 9 -p "$jarJar"
if [[ "$BUILD_RELEASE" == "true" ]]; then
advzip --shrink-insane -kzi 9 -p "$jarJar"
fi
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
./ci-tools/ect-ubuntu-x86-64 --disable-png --disable-jpg -strip -zip "$jarJar"
./ci-tools/ect-ubuntu-x86-64 -9 --disable-png --disable-jpg -strip -zip "$jarJar"
./ci-tools/ect-ubuntu-x86-64 -99 --disable-png --disable-jpg -strip -zip "$jarJar"
./ci-tools/ect-ubuntu-x86-64 -30060 --disable-png --disable-jpg -strip -zip "$jarJar"
./ci-tools/ect-ubuntu-x86-64 -90032 --disable-png --disable-jpg -strip -zip "$jarJar"
if [[ "$BUILD_RELEASE" == "true" ]]; then
./ci-tools/ect-ubuntu-x86-64 -99 --disable-png --disable-jpg -strip -zip "$jarJar"
./ci-tools/ect-ubuntu-x86-64 -30060 --disable-png --disable-jpg -strip -zip "$jarJar"
./ci-tools/ect-ubuntu-x86-64 -90032 --disable-png --disable-jpg -strip -zip "$jarJar"
fi
elif [[ "$OSTYPE" == "darwin"* ]]; then
./ci-tools/ect-0.9.4-mac --disable-png --disable-jpg -strip -zip "$jarJar"
./ci-tools/ect-0.9.4-mac -9 --disable-png --disable-jpg -strip -zip "$jarJar"
./ci-tools/ect-0.9.4-mac -99 --disable-png --disable-jpg -strip -zip "$jarJar"
./ci-tools/ect-0.9.4-mac -30060 --disable-png --disable-jpg -strip -zip "$jarJar"
./ci-tools/ect-0.9.4-mac -90032 --disable-png --disable-jpg -strip -zip "$jarJar"
if [[ "$BUILD_RELEASE" == "true" ]]; then
./ci-tools/ect-0.9.4-mac -99 --disable-png --disable-jpg -strip -zip "$jarJar"
./ci-tools/ect-0.9.4-mac -30060 --disable-png --disable-jpg -strip -zip "$jarJar"
./ci-tools/ect-0.9.4-mac -90032 --disable-png --disable-jpg -strip -zip "$jarJar"
fi
fi
done
echo "test $file"
Expand Down Expand Up @@ -56,18 +62,24 @@ for file in ./build/libs/*.jar ./build/libs/*.zip
do
strip-nondeterminism "$file"
advzip --shrink-extra -kzp "$file"
advzip --shrink-insane -kzi 9 -p "$file"
if [[ "$BUILD_RELEASE" == "true" ]]; then
advzip --shrink-insane -kzi 9 -p "$file"
fi
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
./ci-tools/ect-ubuntu-x86-64 --disable-png --disable-jpg -strip -zip "$file"
./ci-tools/ect-ubuntu-x86-64 -9 --disable-png --disable-jpg -strip -zip "$file"
./ci-tools/ect-ubuntu-x86-64 -99 --disable-png --disable-jpg -strip -zip "$file"
./ci-tools/ect-ubuntu-x86-64 -30060 --disable-png --disable-jpg -strip -zip "$file"
./ci-tools/ect-ubuntu-x86-64 -90032 --disable-png --disable-jpg -strip -zip "$file"
if [[ "$BUILD_RELEASE" == "true" ]]; then
./ci-tools/ect-ubuntu-x86-64 -99 --disable-png --disable-jpg -strip -zip "$file"
./ci-tools/ect-ubuntu-x86-64 -30060 --disable-png --disable-jpg -strip -zip "$file"
./ci-tools/ect-ubuntu-x86-64 -90032 --disable-png --disable-jpg -strip -zip "$file"
fi
elif [[ "$OSTYPE" == "darwin"* ]]; then
./ci-tools/ect-0.9.4-mac --disable-png --disable-jpg -strip -zip "$file"
./ci-tools/ect-0.9.4-mac -9 --disable-png --disable-jpg -strip -zip "$file"
./ci-tools/ect-0.9.4-mac -99 --disable-png --disable-jpg -strip -zip "$file"
./ci-tools/ect-0.9.4-mac -30060 --disable-png --disable-jpg -strip -zip "$file"
./ci-tools/ect-0.9.4-mac -90032 --disable-png --disable-jpg -strip -zip "$file"
if [[ "$BUILD_RELEASE" == "true" ]]; then
./ci-tools/ect-0.9.4-mac -99 --disable-png --disable-jpg -strip -zip "$file"
./ci-tools/ect-0.9.4-mac -30060 --disable-png --disable-jpg -strip -zip "$file"
./ci-tools/ect-0.9.4-mac -90032 --disable-png --disable-jpg -strip -zip "$file"
fi
fi
done

0 comments on commit f32803e

Please sign in to comment.