Skip to content

Commit

Permalink
chore: Add FreeBSD OS to packages (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Nov 23, 2022
1 parent 18c0df3 commit 845436c
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## master (unreleased)

- chore: Add FreeBSD OS to packages ([PR #377](https://github.com/evilmartians/lefthook/pull/377) by @mrexox)
- feature: Skip based on branch name and allow global skip rules ([PR #376](https://github.com/evilmartians/lefthook/pull/376) by @mrexox)
- fix: Omit LFS output unless it is required ([PR #373](https://github.com/evilmartians/lefthook/pull/373) by @mrexox)

Expand Down
4 changes: 4 additions & 0 deletions packaging/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ DIST_DIR := ../dist

LINUX_AMD64_BIN=$(DIST_DIR)/lefthook_linux_amd64_v1/lefthook
LINUX_ARM64_BIN=$(DIST_DIR)/lefthook_linux_arm64/lefthook
FREEBSD_AMD64_BIN=$(DIST_DIR)/lefthook_freebsd_amd64_v1/lefthook
FREEBSD_ARM64_BIN=$(DIST_DIR)/lefthook_freebsd_arm64/lefthook
WINDOWS_AMD64_BIN=$(DIST_DIR)/lefthook_windows_amd64_v1/lefthook.exe
WINDOWS_ARM64_BIN=$(DIST_DIR)/lefthook_windows_arm64/lefthook.exe
DARWIN_AMD64_BIN=$(DIST_DIR)/lefthook_darwin_amd64_v1/lefthook
Expand All @@ -29,6 +31,8 @@ set-version:
put-binaries:
install -D $(LINUX_AMD64_BIN) npm/lefthook-linux-x64/bin/lefthook
install -D $(LINUX_ARM64_BIN) npm/lefthook-linux-arm64/bin/lefthook
install -D $(FREEBSD_AMD64_BIN) npm/lefthook-freebsd-x64/bin/lefthook
install -D $(FREEBSD_ARM64_BIN) npm/lefthook-freebsd-arm64/bin/lefthook
install -D $(WINDOWS_AMD64_BIN) npm/lefthook-windows-x64/bin/lefthook.exe
install -D $(WINDOWS_ARM64_BIN) npm/lefthook-windows-arm64/bin/lefthook.exe
install -D $(DARWIN_AMD64_BIN) npm/lefthook-darwin-x64/bin/lefthook
Expand Down
19 changes: 19 additions & 0 deletions packaging/npm/lefthook-freebsd-arm64/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "lefthook-freebsd-arm64",
"version": "1.2.1",
"description": "The FreeBSD ARM 64-bit binary for lefthook, git hooks manager.",
"preferUnplugged": false,
"repository": "https://github.com/evilmartians/lefthook",
"license": "MIT",
"bugs": {
"url": "https://github.com/evilmartians/lefthook/issues",
"email": "lefthook@evilmartians.com"
},
"homepage": "https://github.com/evilmartians/lefthook#readme",
"os": [
"freebsd"
],
"cpu": [
"arm64"
]
}
19 changes: 19 additions & 0 deletions packaging/npm/lefthook-freebsd-x64/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "lefthook-freebsd-x64",
"version": "1.2.1",
"description": "The FreeBSD 64-bit binary for lefthook, git hooks manager.",
"preferUnplugged": false,
"repository": "https://github.com/evilmartians/lefthook",
"license": "MIT",
"bugs": {
"url": "https://github.com/evilmartians/lefthook/issues",
"email": "lefthook@evilmartians.com"
},
"homepage": "https://github.com/evilmartians/lefthook#readme",
"os": [
"freebsd"
],
"cpu": [
"x64"
]
}
2 changes: 2 additions & 0 deletions packaging/npm/lefthook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"lefthook-darwin-x64": "1.2.1",
"lefthook-linux-arm64": "1.2.1",
"lefthook-linux-x64": "1.2.1",
"lefthook-freebsd-arm64": "1.2.1",
"lefthook-freebsd-x64": "1.2.1",
"lefthook-windows-arm64": "1.2.1",
"lefthook-windows-x64": "1.2.1"
},
Expand Down
1 change: 1 addition & 0 deletions packaging/rubygems/bin/lefthook
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ os =
when "windows" then "windows"
when "mingw32" then "windows" # Windows with MINGW64 reports RUBY_PLATFORM as "x64-mingw32"
when "mingw" then "windows"
when "freebsd" then "freebsd"
else raise "Unknown OS: #{platform.os}"
end

Expand Down

0 comments on commit 845436c

Please sign in to comment.