Skip to content

Commit

Permalink
Optimise .jar files with JarTighten
Browse files Browse the repository at this point in the history
  • Loading branch information
NeRdTheNed committed Oct 20, 2023
1 parent e3a0846 commit e8efd62
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/draftrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
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
- name: Run ECT (-9999) on built .jar files
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
- name: Run JarTighten on built .jar files
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
- name: Draft release
uses: softprops/action-gh-release@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ jobs:
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
- name: Run ECT (-90032) on built .jar files
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
- name: Run JarTighten on built .jar files
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
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
Binary file added ci-tools/JarTighten-1.2.11-all.jar
Binary file not shown.
1 change: 1 addition & 0 deletions ci-tools/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Programs used during CI builds

- [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).
- [JarTighten](https://github.com/NeRdTheNed/JarTighten) - Jar file size optimiser.

0 comments on commit e8efd62

Please sign in to comment.