Skip to content

Commit

Permalink
ci: fix goreleaser update changes (#874)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox authored Nov 18, 2024
1 parent 5b42b57 commit 5a60d0b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
version: 'v2.4.6'
args: release --clean --verbose
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
70 changes: 35 additions & 35 deletions packaging/pack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,63 +56,63 @@ def put_binaries
puts "Putting binaries to packages..."
{
"#{DIST}/no_self_update_linux_amd64_v1/lefthook" => "npm/lefthook-linux-x64/bin/lefthook",
"#{DIST}/no_self_update_linux_arm64/lefthook" => "npm/lefthook-linux-arm64/bin/lefthook",
"#{DIST}/no_self_update_linux_arm64_v8.0/lefthook" => "npm/lefthook-linux-arm64/bin/lefthook",
"#{DIST}/no_self_update_freebsd_amd64_v1/lefthook" => "npm/lefthook-freebsd-x64/bin/lefthook",
"#{DIST}/no_self_update_freebsd_arm64/lefthook" => "npm/lefthook-freebsd-arm64/bin/lefthook",
"#{DIST}/no_self_update_freebsd_arm64_v8.0/lefthook" => "npm/lefthook-freebsd-arm64/bin/lefthook",
"#{DIST}/no_self_update_openbsd_amd64_v1/lefthook" => "npm/lefthook-openbsd-x64/bin/lefthook",
"#{DIST}/no_self_update_openbsd_arm64/lefthook" => "npm/lefthook-openbsd-arm64/bin/lefthook",
"#{DIST}/no_self_update_openbsd_arm64_v8.0/lefthook" => "npm/lefthook-openbsd-arm64/bin/lefthook",
"#{DIST}/no_self_update_windows_amd64_v1/lefthook.exe" => "npm/lefthook-windows-x64/bin/lefthook.exe",
"#{DIST}/no_self_update_windows_arm64/lefthook.exe" => "npm/lefthook-windows-arm64/bin/lefthook.exe",
"#{DIST}/no_self_update_windows_arm64_v8.0/lefthook.exe" => "npm/lefthook-windows-arm64/bin/lefthook.exe",
"#{DIST}/no_self_update_darwin_amd64_v1/lefthook" => "npm/lefthook-darwin-x64/bin/lefthook",
"#{DIST}/no_self_update_darwin_arm64/lefthook" => "npm/lefthook-darwin-arm64/bin/lefthook",
"#{DIST}/no_self_update_darwin_arm64_v8.0/lefthook" => "npm/lefthook-darwin-arm64/bin/lefthook",
}.each do |(source, dest)|
mkdir_p(File.dirname(dest))
cp(source, dest, verbose: true)
end

{
"#{DIST}/no_self_update_linux_amd64_v1/lefthook" => "npm-bundled/bin/lefthook-linux-x64/lefthook",
"#{DIST}/no_self_update_linux_arm64/lefthook" => "npm-bundled/bin/lefthook-linux-arm64/lefthook",
"#{DIST}/no_self_update_freebsd_amd64_v1/lefthook" => "npm-bundled/bin/lefthook-freebsd-x64/lefthook",
"#{DIST}/no_self_update_freebsd_arm64/lefthook" => "npm-bundled/bin/lefthook-freebsd-arm64/lefthook",
"#{DIST}/no_self_update_openbsd_amd64_v1/lefthook" => "npm-bundled/bin/lefthook-openbsd-x64/lefthook",
"#{DIST}/no_self_update_openbsd_arm64/lefthook" => "npm-bundled/bin/lefthook-openbsd-arm64/lefthook",
"#{DIST}/no_self_update_windows_amd64_v1/lefthook.exe" => "npm-bundled/bin/lefthook-windows-x64/lefthook.exe",
"#{DIST}/no_self_update_windows_arm64/lefthook.exe" => "npm-bundled/bin/lefthook-windows-arm64/lefthook.exe",
"#{DIST}/no_self_update_darwin_amd64_v1/lefthook" => "npm-bundled/bin/lefthook-darwin-x64/lefthook",
"#{DIST}/no_self_update_darwin_arm64/lefthook" => "npm-bundled/bin/lefthook-darwin-arm64/lefthook",
"#{DIST}/no_self_update_linux_amd64_v1/lefthook" => "npm-bundled/bin/lefthook-linux-x64/lefthook",
"#{DIST}/no_self_update_linux_arm64_v8.0/lefthook" => "npm-bundled/bin/lefthook-linux-arm64/lefthook",
"#{DIST}/no_self_update_freebsd_amd64_v1/lefthook" => "npm-bundled/bin/lefthook-freebsd-x64/lefthook",
"#{DIST}/no_self_update_freebsd_arm64_v8.0/lefthook" => "npm-bundled/bin/lefthook-freebsd-arm64/lefthook",
"#{DIST}/no_self_update_openbsd_amd64_v1/lefthook" => "npm-bundled/bin/lefthook-openbsd-x64/lefthook",
"#{DIST}/no_self_update_openbsd_arm64_v8.0/lefthook" => "npm-bundled/bin/lefthook-openbsd-arm64/lefthook",
"#{DIST}/no_self_update_windows_amd64_v1/lefthook.exe" => "npm-bundled/bin/lefthook-windows-x64/lefthook.exe",
"#{DIST}/no_self_update_windows_arm64_v8.0/lefthook.exe" => "npm-bundled/bin/lefthook-windows-arm64/lefthook.exe",
"#{DIST}/no_self_update_darwin_amd64_v1/lefthook" => "npm-bundled/bin/lefthook-darwin-x64/lefthook",
"#{DIST}/no_self_update_darwin_arm64_v8.0/lefthook" => "npm-bundled/bin/lefthook-darwin-arm64/lefthook",
}.each do |(source, dest)|
mkdir_p(File.dirname(dest))
cp(source, dest, verbose: true)
end

{
"#{DIST}/no_self_update_linux_amd64_v1/lefthook" => "rubygems/libexec/lefthook-linux-x64/lefthook",
"#{DIST}/no_self_update_linux_arm64/lefthook" => "rubygems/libexec/lefthook-linux-arm64/lefthook",
"#{DIST}/no_self_update_freebsd_amd64_v1/lefthook" => "rubygems/libexec/lefthook-freebsd-x64/lefthook",
"#{DIST}/no_self_update_freebsd_arm64/lefthook" => "rubygems/libexec/lefthook-freebsd-arm64/lefthook",
"#{DIST}/no_self_update_openbsd_amd64_v1/lefthook" => "rubygems/libexec/lefthook-openbsd-x64/lefthook",
"#{DIST}/no_self_update_openbsd_arm64/lefthook" => "rubygems/libexec/lefthook-openbsd-arm64/lefthook",
"#{DIST}/no_self_update_windows_amd64_v1/lefthook.exe" => "rubygems/libexec/lefthook-windows-x64/lefthook.exe",
"#{DIST}/no_self_update_windows_arm64/lefthook.exe" => "rubygems/libexec/lefthook-windows-arm64/lefthook.exe",
"#{DIST}/no_self_update_darwin_amd64_v1/lefthook" => "rubygems/libexec/lefthook-darwin-x64/lefthook",
"#{DIST}/no_self_update_darwin_arm64/lefthook" => "rubygems/libexec/lefthook-darwin-arm64/lefthook",
"#{DIST}/no_self_update_linux_amd64_v1/lefthook" => "rubygems/libexec/lefthook-linux-x64/lefthook",
"#{DIST}/no_self_update_linux_arm64_v8.0/lefthook" => "rubygems/libexec/lefthook-linux-arm64/lefthook",
"#{DIST}/no_self_update_freebsd_amd64_v1/lefthook" => "rubygems/libexec/lefthook-freebsd-x64/lefthook",
"#{DIST}/no_self_update_freebsd_arm64_v8.0/lefthook" => "rubygems/libexec/lefthook-freebsd-arm64/lefthook",
"#{DIST}/no_self_update_openbsd_amd64_v1/lefthook" => "rubygems/libexec/lefthook-openbsd-x64/lefthook",
"#{DIST}/no_self_update_openbsd_arm64_v8.0/lefthook" => "rubygems/libexec/lefthook-openbsd-arm64/lefthook",
"#{DIST}/no_self_update_windows_amd64_v1/lefthook.exe" => "rubygems/libexec/lefthook-windows-x64/lefthook.exe",
"#{DIST}/no_self_update_windows_arm64_v8.0/lefthook.exe" => "rubygems/libexec/lefthook-windows-arm64/lefthook.exe",
"#{DIST}/no_self_update_darwin_amd64_v1/lefthook" => "rubygems/libexec/lefthook-darwin-x64/lefthook",
"#{DIST}/no_self_update_darwin_arm64_v8.0/lefthook" => "rubygems/libexec/lefthook-darwin-arm64/lefthook",
}.each do |(source, dest)|
mkdir_p(File.dirname(dest))
cp(source, dest, verbose: true)
end

{
"#{DIST}/no_self_update_linux_amd64_v1/lefthook" => "pypi/lefthook/bin/lefthook-linux-x86_64/lefthook",
"#{DIST}/no_self_update_linux_arm64/lefthook" => "pypi/lefthook/bin/lefthook-linux-arm64/lefthook",
"#{DIST}/no_self_update_freebsd_amd64_v1/lefthook" => "pypi/lefthook/bin/lefthook-freebsd-x86_64/lefthook",
"#{DIST}/no_self_update_freebsd_arm64/lefthook" => "pypi/lefthook/bin/lefthook-freebsd-arm64/lefthook",
"#{DIST}/no_self_update_openbsd_amd64_v1/lefthook" => "pypi/lefthook/bin/lefthook-openbsd-x86_64/lefthook",
"#{DIST}/no_self_update_openbsd_arm64/lefthook" => "pypi/lefthook/bin/lefthook-openbsd-arm64/lefthook",
"#{DIST}/no_self_update_windows_amd64_v1/lefthook.exe" => "pypi/lefthook/bin/lefthook-windows-x86_64/lefthook.exe",
"#{DIST}/no_self_update_windows_arm64/lefthook.exe" => "pypi/lefthook/bin/lefthook-windows-arm64/lefthook.exe",
"#{DIST}/no_self_update_darwin_amd64_v1/lefthook" => "pypi/lefthook/bin/lefthook-darwin-x86_64/lefthook",
"#{DIST}/no_self_update_darwin_arm64/lefthook" => "pypi/lefthook/bin/lefthook-darwin-arm64/lefthook",
"#{DIST}/no_self_update_linux_amd64_v1/lefthook" => "pypi/lefthook/bin/lefthook-linux-x86_64/lefthook",
"#{DIST}/no_self_update_linux_arm64_v8.0/lefthook" => "pypi/lefthook/bin/lefthook-linux-arm64/lefthook",
"#{DIST}/no_self_update_freebsd_amd64_v1/lefthook" => "pypi/lefthook/bin/lefthook-freebsd-x86_64/lefthook",
"#{DIST}/no_self_update_freebsd_arm64_v8.0/lefthook" => "pypi/lefthook/bin/lefthook-freebsd-arm64/lefthook",
"#{DIST}/no_self_update_openbsd_amd64_v1/lefthook" => "pypi/lefthook/bin/lefthook-openbsd-x86_64/lefthook",
"#{DIST}/no_self_update_openbsd_arm64_v8.0/lefthook" => "pypi/lefthook/bin/lefthook-openbsd-arm64/lefthook",
"#{DIST}/no_self_update_windows_amd64_v1/lefthook.exe" => "pypi/lefthook/bin/lefthook-windows-x86_64/lefthook.exe",
"#{DIST}/no_self_update_windows_arm64_v8.0/lefthook.exe" => "pypi/lefthook/bin/lefthook-windows-arm64/lefthook.exe",
"#{DIST}/no_self_update_darwin_amd64_v1/lefthook" => "pypi/lefthook/bin/lefthook-darwin-x86_64/lefthook",
"#{DIST}/no_self_update_darwin_arm64_v8.0/lefthook" => "pypi/lefthook/bin/lefthook-darwin-arm64/lefthook",
}.each do |(source, dest)|
mkdir_p(File.dirname(dest))
cp(source, dest, verbose: true)
Expand Down

0 comments on commit 5a60d0b

Please sign in to comment.