mirror of
https://github.com/runelite/plugin-hub.git
synced 2026-04-04 06:53:50 -04:00
package: emit warning for large jars
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
||||
path: |
|
||||
~/.gradle/caches/
|
||||
~/.gradle/wrapper/
|
||||
key: package-2.0.9
|
||||
key: package-2.0.10
|
||||
- name: prepare
|
||||
run: |
|
||||
pushd package
|
||||
@@ -82,7 +82,7 @@ jobs:
|
||||
path: |
|
||||
~/.gradle/caches/
|
||||
~/.gradle/wrapper/
|
||||
key: upload-2.0.9
|
||||
key: upload-2.0.10
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: manifest_diff
|
||||
|
||||
@@ -473,6 +473,10 @@ public class Plugin implements Closeable
|
||||
{
|
||||
throw PluginBuildException.of(this, "the output jar is {}MiB, which is above our limit of 10MiB", size / MIB);
|
||||
}
|
||||
if (size > (MAX_JAR_SIZE * 8) / 10)
|
||||
{
|
||||
writeLog("warning: the output jar is {}MiB, which is nearing our limit of 10MiB\n", size / MIB);
|
||||
}
|
||||
manifest.setSize((int) size);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user