1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dex_ynh.git synced 2024-09-03 18:26:22 +02:00

Update install

This commit is contained in:
Limezy 2022-03-23 18:03:27 +07:00
parent 7f650ad42d
commit d9b3f4ea94

View file

@ -117,7 +117,13 @@ ynh_exec_warn_less ynh_install_go --go_version=$GO_VERSION
pushd "$final_path" pushd "$final_path"
# Build the sources # Build the sources
ynh_use_go ynh_use_go
$ynh_go_load_path make build PROJ=dex
ORG_PATH=github.com/dexidp
REPO_PATH=$(ORG_PATH)/$(PROJ)
VERSION ?= $(shell ./scripts/git-version)
LD_FLAGS="-w -X main.version=$(VERSION)"
mkdir bin
$ynh_go install -v -ldflags $(LD_FLAGS) $(REPO_PATH)/cmd/dex
popd popd
ynh_remove_go ynh_remove_go