diff --git a/.goreleaser.yml b/.goreleaser.yml index 743254c1..8722d1e2 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -15,6 +15,7 @@ builds: - darwin - windows - freebsd + - openbsd goarch: - amd64 - arm64 @@ -26,6 +27,8 @@ builds: goarch: 386 - goos: freebsd goarch: 386 + - goos: openbsd + goarch: 386 flags: - -trimpath ldflags: @@ -40,6 +43,7 @@ builds: - darwin - windows - freebsd + - openbsd goarch: - amd64 - arm64 @@ -51,6 +55,8 @@ builds: goarch: 386 - goos: freebsd goarch: 386 + - goos: openbsd + goarch: 386 flags: - -trimpath ldflags: diff --git a/packaging/npm/lefthook-openbsd-arm64/package.json b/packaging/npm/lefthook-openbsd-arm64/package.json new file mode 100644 index 00000000..b68849f9 --- /dev/null +++ b/packaging/npm/lefthook-openbsd-arm64/package.json @@ -0,0 +1,22 @@ +{ + "name": "lefthook-openbsd-arm64", + "version": "1.7.12", + "description": "The OpenBSD ARM 64-bit binary for lefthook, git hooks manager.", + "preferUnplugged": false, + "repository": { + "type": "git", + "url": "git+https://github.com/evilmartians/lefthook.git" + }, + "license": "MIT", + "bugs": { + "url": "https://github.com/evilmartians/lefthook/issues", + "email": "lefthook@evilmartians.com" + }, + "homepage": "https://github.com/evilmartians/lefthook#readme", + "os": [ + "openbsd" + ], + "cpu": [ + "arm64" + ] +} diff --git a/packaging/npm/lefthook-openbsd-x64/package.json b/packaging/npm/lefthook-openbsd-x64/package.json new file mode 100644 index 00000000..0f390a88 --- /dev/null +++ b/packaging/npm/lefthook-openbsd-x64/package.json @@ -0,0 +1,22 @@ +{ + "name": "lefthook-openbsd-x64", + "version": "1.7.12", + "description": "The OpenBSD 64-bit binary for lefthook, git hooks manager.", + "preferUnplugged": false, + "repository": { + "type": "git", + "url": "git+https://github.com/evilmartians/lefthook.git" + }, + "license": "MIT", + "bugs": { + "url": "https://github.com/evilmartians/lefthook/issues", + "email": "lefthook@evilmartians.com" + }, + "homepage": "https://github.com/evilmartians/lefthook#readme", + "os": [ + "openbsd" + ], + "cpu": [ + "x64" + ] +} diff --git a/packaging/pack.rb b/packaging/pack.rb index 00372988..9c2904f8 100755 --- a/packaging/pack.rb +++ b/packaging/pack.rb @@ -58,6 +58,8 @@ def put_binaries "#{DIST}/no_self_update_linux_arm64/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_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_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_darwin_amd64_v1/lefthook" => "npm/lefthook-darwin-x64/bin/lefthook", @@ -72,6 +74,8 @@ def put_binaries "#{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", @@ -86,6 +90,8 @@ def put_binaries "#{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", diff --git a/packaging/rubygems/bin/lefthook b/packaging/rubygems/bin/lefthook index 77d6f808..a3bf99e0 100755 --- a/packaging/rubygems/bin/lefthook +++ b/packaging/rubygems/bin/lefthook @@ -20,6 +20,7 @@ os = when "mingw32" then "windows" # Windows with MINGW64 reports RUBY_PLATFORM as "x64-mingw32" when "mingw" then "windows" when "freebsd" then "freebsd" + when "openbsd" then "openbsd" else raise "Unknown OS: #{platform.os}" end