Skip to content

Commit

Permalink
npx
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkaseman committed Dec 17, 2024
1 parent 7bfce4f commit 229ef44
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tools/bin/goreleaser_utils
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ before_hook() {
install_local_plugins
install_remote_plugins
mkdir -p "$lib_path/plugins"
build_standard_capabilities

# Retrieve GOPATH
GOPATH=$(go env GOPATH)
Expand Down Expand Up @@ -72,9 +73,12 @@ get_remote_plugin_paths() {
}

build_standard_capabilities() {
cd ./capabilities
npx [email protected] init
./nx run-many -t build
# binaries get put into /bin under /bin/amd64 and /bin/arm64
cp "./bin/$(go env GOARCH)"/* "$lib_path/plugins"
# binaries get put into /bin under /bin/amd64/ and /bin/arm64/
cp "./bin/$(go env GOARCH)"/* "../$lib_path/plugins"
cd ../
}

install_remote_plugins() {
Expand All @@ -84,7 +88,6 @@ install_remote_plugins() {
go install "${ldflags[@]}" "$plugin"
done

build_standard_capabilities
}

# binary build post hook
Expand Down

0 comments on commit 229ef44

Please sign in to comment.