mirror of
https://github.com/YunoHost-Apps/dendrite_ynh.git
synced 2024-09-03 18:25:58 +02:00
Replace all final_path with install_dir
This commit is contained in:
parent
baaa536a2b
commit
59e6fda902
2 changed files with 10 additions and 10 deletions
|
@ -75,11 +75,11 @@ ynh_exec_warn_less ynh_install_go --go_version=$GO_VERSION
|
|||
pushd "$install_dir/build"
|
||||
# Build the sources
|
||||
ynh_use_go
|
||||
export GOPATH="$final_path/build/go"
|
||||
export GOCACHE="$final_path/build/.cache"
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$final_path/bin/" ./cmd/dendrite > /dev/null 2>&1
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$final_path/bin/" ./cmd/create-account > /dev/null 2>&1
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$final_path/bin/" ./cmd/generate-keys > /dev/null 2>&1
|
||||
export GOPATH="$install_dir/build/go"
|
||||
export GOCACHE="$install_dir/build/.cache"
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$install_dir/bin/" ./cmd/dendrite > /dev/null 2>&1
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$install_dir/bin/" ./cmd/create-account > /dev/null 2>&1
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$install_dir/bin/" ./cmd/generate-keys > /dev/null 2>&1
|
||||
popd
|
||||
|
||||
ynh_secure_remove --file="$install_dir/build"
|
||||
|
|
|
@ -96,11 +96,11 @@ then
|
|||
pushd "$install_dir/build"
|
||||
# Build the sources
|
||||
ynh_use_go
|
||||
export GOPATH="$final_path/build/go"
|
||||
export GOCACHE="$final_path/build/.cache"
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$final_path/bin/" ./cmd/dendrite > /dev/null 2>&1
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$final_path/bin/" ./cmd/create-account > /dev/null 2>&1
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$final_path/bin/" ./cmd/generate-keys > /dev/null 2>&1
|
||||
export GOPATH="$install_dir/build/go"
|
||||
export GOCACHE="$install_dir/build/.cache"
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$install_dir/bin/" ./cmd/dendrite > /dev/null 2>&1
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$install_dir/bin/" ./cmd/create-account > /dev/null 2>&1
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$install_dir/bin/" ./cmd/generate-keys > /dev/null 2>&1
|
||||
popd
|
||||
|
||||
#REMOVEME? ynh_secure_remove --file="$install_dir/build"
|
||||
|
|
Loading…
Add table
Reference in a new issue