File tree Expand file tree Collapse file tree
app/src/jreleaser/distributions/spotless-cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,5 +14,35 @@ $ brew tap {{brewRepositoryOwner}}/{{brewRepositoryAlias}}
1414$ brew install <formula>
1515` ` `
1616
17+ Invoke the following command if the formula is *not * hosted at GitHub
18+
19+ ` ` ` sh
20+ brew tap {{brewRepositoryOwner}}/{{brewRepositoryName}} {{tapRepoCloneUrl}}
21+ brew install <formula>
22+ ` ` `
23+
24+ ## Casks
25+ Invoke either of the following commands if the cask is hosted at GitHub
26+
27+ ` ` ` sh
28+ $ brew install --cask {{brewRepositoryOwner}}/{{brewRepositoryAlias}}/<cask>
29+ ` ` `
30+
31+ Or
32+
33+ ` ` ` sh
34+ $ brew tap {{brewRepositoryOwner}}/{{brewRepositoryAlias}}
35+ $ brew install --cask <cask>
36+ ` ` `
37+
38+ Invoke the following command if the cask is *not * hosted at GitHub
39+
40+ ` ` ` sh
41+ brew tap {{brewRepositoryOwner}}/{{brewRepositoryName}} {{tapRepoCloneUrl}}
42+ brew install --cask <formula>
43+ ` ` `
44+
45+ If you get a dialog stating the cask is broken try installing with ` --no-quarantine` .
46+
1747## Documentation
1848` brew help` , ` man brew` or check [Homebrew's documentation](https://docs.brew.sh ).
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name: Push-{{distributionName}}
2+
3+ on:
4+ push:
5+ tags:
6+ - '*'
7+ branches-ignore:
8+ - '**'
9+
10+ jobs:
11+ push:
12+ runs-on: windows-latest
13+
14+ steps:
15+ - uses: actions/checkout@v4
16+
17+ - uses: actions/setup-dotnet@v4
18+ with :
19+ dotnet-version: '5.0.x '
20+
21+ - name: Find package
22+ shell: bash
23+ run: |
24+ echo " PACKAGE_NAME=$(ls {{chocolateyPackageName}}/*.nuspec)" >> $GITHUB_ENV
25+
26+ - name: Pack
27+ shell: powershell
28+ run: |
29+ choco pack $ {{= <% %>= }}{{ env.PACKAGE_NAME }}<%= {{ }}= %>
30+
31+ - name: Publish
32+ shell: powershell
33+ run: |
34+ choco apikey -k $ {{= <% %>= }}{{ secrets.CHOCOLATEY_API_KEY }}<%= {{ }}= %> -s {{chocolateySource}}
35+ choco push $ (ls *.nupkg | % {$_ .FullName }) -s {{chocolateySource}}
Original file line number Diff line number Diff line change 1+ name: Trigger-{{distributionName}}
2+
3+ on:
4+ workflow_dispatch:
5+
6+ jobs:
7+ trigger:
8+ runs-on: windows-latest
9+
10+ steps:
11+ - uses: actions/checkout@v4
12+
13+ - uses: actions/setup-dotnet@v4
14+ with :
15+ dotnet-version: '5.0.x '
16+
17+ - name: Find package
18+ shell: bash
19+ run: |
20+ echo " PACKAGE_NAME=$(ls {{distributionName}}/*.nuspec)" >> $GITHUB_ENV
21+
22+ - name: Pack
23+ shell: powershell
24+ run: |
25+ choco pack $ {{= <% %>= }}{{ env.PACKAGE_NAME }}<%= {{ }}= %>
26+
27+ - name: Publish
28+ shell: powershell
29+ run: |
30+ choco apikey -k $ {{= <% %>= }}{{ secrets.CHOCOLATEY_API_KEY }}<%= {{ }}= %> -s {{chocolateySource}}
31+ choco push $ (ls *.nupkg | % {$_ .FullName }) -s {{chocolateySource}}
Original file line number Diff line number Diff line change 11# {{jreleaserCreationStamp}}
22$tools = Split-Path $MyInvocation .MyCommand.Definition
33$package = Split-Path $tools
4+ $app_home = Join-Path $package '{{distributionArtifactRootEntryName}}'
5+ $app_exe = Join-Path $app_home 'bin/{{distributionExecutableWindows}}'
46
57Install-ChocolateyZipPackage `
68 -PackageName '{{chocolateyPackageName}}' `
79 -Url '{{distributionUrl}}' `
810 -Checksum '{{distributionChecksumSha256}}' `
911 -ChecksumType 'sha256' `
10- -UnzipLocation $package
12+ -UnzipLocation $package
13+
14+ Install-BinFile -Name '{{distributionExecutableName}}' -Path $app_exe
Original file line number Diff line number Diff line change 1+ # {{jreleaserCreationStamp}}
2+ $tools = Split-Path $MyInvocation .MyCommand.Definition
3+ $package = Split-Path $tools
4+ $app_home = Join-Path $package '{{distributionArtifactRootEntryName}}'
5+ $app_exe = Join-Path $app_home 'bin/{{distributionExecutableWindows}}'
6+
7+ Uninstall-BinFile -Name '{{distributionExecutableName}}' -Path $app_exe
Original file line number Diff line number Diff line change 1+ {
2+ " aliases" : {
3+ " {{jbangAliasName}}" : {
4+ " script-ref" : " {{jbangScriptName}}.java" ,
5+ " description" : " {{projectDescription}}"
6+ }
7+ }
8+ }
Original file line number Diff line number Diff line change 1+ //usr/bin/env jbang " $0" " $@" ; exit $ ?
2+ //JAVA {{distributionJavaVersion}}+
3+ //DEPS {{jbangDistributionGA}}:{{projectVersion}}
4+ // {{jreleaserCreationStamp}}
5+
6+ public class {{jbangScriptName}} {
7+ public static void main(String... args) throws Exception {
8+ {{distributionJavaMainClass}}.main (args);
9+ }
10+ }
You can’t perform that action at this time.
0 commit comments