diff --git a/build_manifest.sh b/build_manifest.sh index d4bc2d3ff..3a19417a9 100755 --- a/build_manifest.sh +++ b/build_manifest.sh @@ -42,7 +42,7 @@ for PLUGINFILE in plugins/*; do disabled= # shellcheck disable=SC2162 while read LINE || [[ -n "$LINE" ]]; do - [[ $LINE =~ ^(repository|commit|disabled)=(.*)$ ]] + [[ $LINE =~ ^(repository|commit|disabled|warning)=(.*)$ ]] eval "${BASH_REMATCH[1]}=\"${BASH_REMATCH[2]}\"" done < "$PLUGINFILE" [ -z "$disabled" ] || continue diff --git a/build_plugin.sh b/build_plugin.sh index 343adf1ed..9ba646eb3 100755 --- a/build_plugin.sh +++ b/build_plugin.sh @@ -42,7 +42,7 @@ RUNELITE_VERSION="$(cat "$SCRIPT_HOME/runelite.version")" disabled= # shellcheck disable=SC2162 while read LINE || [[ -n "$LINE" ]]; do - [[ $LINE =~ ^(repository|commit|disabled)=(.*)$ ]] + [[ $LINE =~ ^(repository|commit|disabled|warning)=(.*)$ ]] eval "${BASH_REMATCH[1]}=\"${BASH_REMATCH[2]}\"" done < "$PLUGINFILE" [ -z "$disabled" ] || exit 0 @@ -81,6 +81,7 @@ SIGNING_KEY="" REPO_CREDS="" gradle \ -DrlpluginOutputDirectory="$BUILDDIR" \ -DrlpluginPluginID="$PLUGIN_ID" \ -DrlpluginCommit="$commit" \ + -DrlpluginWarning="$warning" \ rlpluginPackageJar rlpluginEmitManifest [ -s "$BUILDDIR/plugin.jar" ] diff --git a/package.gradle b/package.gradle index 7a0893905..a4133bdc5 100644 --- a/package.gradle +++ b/package.gradle @@ -68,6 +68,9 @@ allprojects { def manifest = new ExternalPluginManifest() manifest.internalName = System.properties["rlpluginPluginID"] manifest.commit = System.properties["rlpluginCommit"] + if (System.properties["rlpluginWarning"]) { + manifest.warning = System.properties["rlpluginWarning"]; + } def pluginJar = new File(System.properties["rlpluginOutputDirectory"], "plugin.jar"); manifest.hash = Files.asByteSource(pluginJar) @@ -147,6 +150,7 @@ class ExternalPluginManifest { String version; String author; String description; + String warning; String[] tags; URL support; boolean hasIcon;