Skip to content

Commit 43d5d65

Browse files
committed
feat: add support for darwin on arm64
1 parent e40ee14 commit 43d5d65

File tree

2 files changed

+110
-1
lines changed

2 files changed

+110
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ deps:
1414

1515
bash:
1616
# Don't run if you don't have to. Adds several megs to repo with every commit.
17-
rm -rf $(BASH_DIR) && mkdir -p $(BASH_DIR)/linux-arm $(BASH_DIR)/linux-arm64 $(BASH_DIR)/linux-amd64 $(BASH_DIR)/osx-amd64
17+
rm -rf $(BASH_DIR) && mkdir -p $(BASH_DIR)/linux-arm $(BASH_DIR)/linux-arm64 $(BASH_DIR)/linux-amd64 $(BASH_DIR)/osx-arm64 $(BASH_DIR)/osx-amd64
1818

1919
curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-linux-aarch64 \
2020
> $(BASH_DIR)/linux-arm64/bash
@@ -25,6 +25,9 @@ bash:
2525
curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-linux-x86_64 \
2626
> $(BASH_DIR)/linux-amd64/bash
2727

28+
curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-macos-aarch64 \
29+
> $(BASH_DIR)/osx-arm64/bash
30+
2831
curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-macos-x86_64 \
2932
> $(BASH_DIR)/osx-amd64/bash
3033

@@ -33,6 +36,7 @@ bash:
3336
go-bindata -tags=linux,arm -o=bash_linux_arm.go -prefix=$(BASH_DIR)/linux-arm -pkg=basher $(BASH_DIR)/linux-arm
3437
go-bindata -tags=linux,arm64 -o=bash_linux_arm64.go -prefix=$(BASH_DIR)/linux-arm64 -pkg=basher $(BASH_DIR)/linux-arm64
3538
go-bindata -tags=linux,amd64 -o=bash_linux_amd64.go -prefix=$(BASH_DIR)/linux-amd64 -pkg=basher $(BASH_DIR)/linux-amd64
39+
go-bindata -tags=darwin,amd64 -o=bash_darwin_arm64.go -prefix=$(BASH_DIR)/osx-amd64 -pkg=basher $(BASH_DIR)/osx-amd64
3640
go-bindata -tags=darwin,amd64 -o=bash_darwin_amd64.go -prefix=$(BASH_DIR)/osx-amd64 -pkg=basher $(BASH_DIR)/osx-amd64
3741

3842
circleci:

bash_darwin_arm64.go

Lines changed: 105 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)