Skip to content

Commit 8e2f91a

Browse files
committed
Use higher optimisation levels for release builds
1 parent 7667e77 commit 8e2f91a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

removeDirectoryEntries.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ do
3636
./ci-tools/ect-0.9.4-mac -90032 --disable-png --disable-jpg -strip -zip "$jarJar"
3737
fi
3838
fi
39-
java -jar ./ci-tools/JarTighten-1.2.10-all.jar -o -c -E -S -t --mode=MULTI_CHEAP "$jarJar" "$jarJar"
39+
if [[ "$BUILD_RELEASE" == "true" ]]; then
40+
java -jar ./ci-tools/JarTighten-1.2.10-all.jar -o -c -E -S -t -z -j --mode=MULTI_CHEAP "$jarJar" "$jarJar"
41+
else
42+
java -jar ./ci-tools/JarTighten-1.2.10-all.jar -o -c -E -S -t --mode=MULTI_CHEAP "$jarJar" "$jarJar"
43+
fi
4044
done
4145
echo "test $file"
4246
for jsonFile in ./build/libs/**/**/**.json ./build/libs/**/**.json ./build/libs/**.json
@@ -83,5 +87,9 @@ do
8387
./ci-tools/ect-0.9.4-mac -90032 --disable-png --disable-jpg -strip -zip "$file"
8488
fi
8589
fi
86-
java -jar ./ci-tools/JarTighten-1.2.10-all.jar -o -c -E -S -t --mode=MULTI_CHEAP "$file" "$file"
90+
if [[ "$BUILD_RELEASE" == "true" ]]; then
91+
java -jar ./ci-tools/JarTighten-1.2.10-all.jar -o -c -E -S -t -z -j --mode=MULTI_CHEAP "$file" "$file"
92+
else
93+
java -jar ./ci-tools/JarTighten-1.2.10-all.jar -o -c -E -S -t --mode=MULTI_CHEAP "$file" "$file"
94+
fi
8795
done

0 commit comments

Comments
 (0)