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

improving go

This commit is contained in:
yalh76 2022-04-03 13:31:33 +02:00
parent 4087db3870
commit f07a5b1fdc
2 changed files with 4 additions and 2 deletions

View file

@ -118,11 +118,12 @@ pushd "$final_path"
# Setup go exe and environnement
ynh_use_go
export GOPATH="$final_path/go"
export GOCACHE="$final_path/.cache"
export GOCACHE="$final_path/go/.cache"
# Build server from source
make build 2>&1
# Setup a nice Yunohost logo
cp /usr/share/yunohost/admin/img/logo.08bab97e.png web/themes/light/logo.png
ynh_secure_remove --file="$final_path/go"
popd
ynh_remove_go

View file

@ -100,11 +100,12 @@ pushd "$final_path"
# Setup go exe and environnement
ynh_use_go
export GOPATH="$final_path/go"
export GOCACHE="$final_path/.cache"
export GOCACHE="$final_path/go/.cache"
# Build server from source
make build 2>&1
# Setup a nice Yunohost logo
cp /usr/share/yunohost/admin/img/logo.08bab97e.png web/themes/light/logo.png
ynh_secure_remove --file="$final_path/go"
popd
ynh_remove_go