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 1, 2023
1 parent 562164c commit e0576f7
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 @@ -59,6 +59,8 @@ jobs:
run: for file in ./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 ./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 ./build/libs/*.jar; do java -jar ./ci-tools/JarTighten-1.2.6-all.jar -o -c -E -S -t -z -j --mode=EXTENSIVE --zopfli-iter=9999 --optimise-existing-streams --optimise-recompressed-streams --compare-size-bits $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 @@ -56,6 +56,8 @@ jobs:
run: for file in ./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 ./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 ./build/libs/*.jar; do java -jar ./ci-tools/JarTighten-1.2.6-all.jar -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.6-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 e0576f7

Please sign in to comment.