diff --git a/build.gradle b/build.gradle index 1639a61f..1ccd2b67 100644 --- a/build.gradle +++ b/build.gradle @@ -201,8 +201,8 @@ task windowsInstaller(dependsOn: jpackageImage) { // requires inno setup to be i } } -task bumpCaskPR(type: Exec) { - commandLine 'brew', 'bump-cask-pr', 'blobsaver', '--no-audit', '--no-style', '--version', version +task bumpCaskPR(type: Exec) { // TODO: make into a github workflow + commandLine "${projectDir}/dist/macos/bump-cask-pr.bash", version } if (!os.isWindows()) { // never do jpackage on windows diff --git a/dist/macos/bump-cask-pr.bash b/dist/macos/bump-cask-pr.bash new file mode 100755 index 00000000..64d946dd --- /dev/null +++ b/dist/macos/bump-cask-pr.bash @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +if [ $# -ne 1 ]; then + >&2 echo "Must provide exactly one argument for version" + exit 1 +fi + +brew tap homebrew/cask && brew bump-cask-pr blobsaver --no-audit --no-style --version "$1" +brew untap homebrew/cask diff --git a/settings.gradle b/settings.gradle index bfb1bd2a..51036703 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,8 +1 @@ -pluginManagement { - repositories { - mavenCentral() - gradlePluginPortal() - } -} - rootProject.name = 'blobsaver'