Skip to content

Commit e8efd62

Browse files
committed
Optimise .jar files with JarTighten
1 parent e3a0846 commit e8efd62

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

.github/workflows/draftrelease.yml

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
run: for file in ./mc-texture-gen-app/build/libs/*.jar; do ./ci-tools/ect-ubuntu-x86-64 -90032 --disable-png --disable-jpg -strip -zip $file; done
5454
- name: Run ECT (-9999) on built .jar files
5555
run: for file in ./mc-texture-gen-app/build/libs/*.jar; do ./ci-tools/ect-ubuntu-x86-64 -9999 --disable-png --disable-jpg -strip -zip $file; done
56+
- name: Run JarTighten on built .jar files
57+
run: for file in ./mc-texture-gen-app/build/libs/*.jar; do java -jar ./ci-tools/JarTighten-1.2.11-all.jar -x -o -c -E -S -t -z -j --mode=EXTENSIVE --zopfli-iter=9999 $file $file; done
5658
- name: Draft release
5759
uses: softprops/action-gh-release@v1
5860
with:

.github/workflows/gradle.yml

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jobs:
5151
run: for file in ./mc-texture-gen-app/build/libs/*.jar; do ./ci-tools/ect-ubuntu-x86-64 -30060 --disable-png --disable-jpg -strip -zip $file; done
5252
- name: Run ECT (-90032) on built .jar files
5353
run: for file in ./mc-texture-gen-app/build/libs/*.jar; do ./ci-tools/ect-ubuntu-x86-64 -90032 --disable-png --disable-jpg -strip -zip $file; done
54+
- name: Run JarTighten on built .jar files
55+
run: for file in ./mc-texture-gen-app/build/libs/*.jar; do java -jar ./ci-tools/JarTighten-1.2.11-all.jar -x -o -c -E -S -t -z -j --mode=MULTI_CHEAP --zopfli-iter=99 $file $file; done
5456
- name: Upload artifacts
5557
uses: actions/upload-artifact@v3
5658
with:

ci-tools/JarTighten-1.2.11-all.jar

777 KB
Binary file not shown.

ci-tools/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Programs used during CI builds
22

33
- [ECT](https://github.com/fhanau/Efficient-Compression-Tool) - Efficient Compression Tool (or ECT) is a C++ file optimizer. This build of ECT was from commit 7249d5c (close to 0.9.4). Licensed under the Apache-2.0 license (see ECT-License.txt).
4+
- [JarTighten](https://github.com/NeRdTheNed/JarTighten) - Jar file size optimiser.

0 commit comments

Comments
 (0)