-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7bfce4f
commit 229ef44
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|
@@ -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() { | ||
|
@@ -84,7 +88,6 @@ install_remote_plugins() { | |
go install "${ldflags[@]}" "$plugin" | ||
done | ||
|
||
build_standard_capabilities | ||
} | ||
|
||
# binary build post hook | ||
|