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 Oct 13, 2023
1 parent 7667e77 commit 8e2f91a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions removeDirectoryEntries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ do
./ci-tools/ect-0.9.4-mac -90032 --disable-png --disable-jpg -strip -zip "$jarJar"
fi
fi
java -jar ./ci-tools/JarTighten-1.2.10-all.jar -o -c -E -S -t --mode=MULTI_CHEAP "$jarJar" "$jarJar"
if [[ "$BUILD_RELEASE" == "true" ]]; then
java -jar ./ci-tools/JarTighten-1.2.10-all.jar -o -c -E -S -t -z -j --mode=MULTI_CHEAP "$jarJar" "$jarJar"
else
java -jar ./ci-tools/JarTighten-1.2.10-all.jar -o -c -E -S -t --mode=MULTI_CHEAP "$jarJar" "$jarJar"
fi
done
echo "test $file"
for jsonFile in ./build/libs/**/**/**.json ./build/libs/**/**.json ./build/libs/**.json
Expand Down Expand Up @@ -83,5 +87,9 @@ do
./ci-tools/ect-0.9.4-mac -90032 --disable-png --disable-jpg -strip -zip "$file"
fi
fi
java -jar ./ci-tools/JarTighten-1.2.10-all.jar -o -c -E -S -t --mode=MULTI_CHEAP "$file" "$file"
if [[ "$BUILD_RELEASE" == "true" ]]; then
java -jar ./ci-tools/JarTighten-1.2.10-all.jar -o -c -E -S -t -z -j --mode=MULTI_CHEAP "$file" "$file"
else
java -jar ./ci-tools/JarTighten-1.2.10-all.jar -o -c -E -S -t --mode=MULTI_CHEAP "$file" "$file"
fi
done

0 comments on commit 8e2f91a

Please sign in to comment.