1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/photoprism_ynh.git synced 2024-09-03 19:56:41 +02:00
This commit is contained in:
Limezy 2022-06-04 01:39:05 +07:00
parent d71e49639d
commit a9983e9478
2 changed files with 4 additions and 4 deletions

View file

@ -7,6 +7,8 @@
NODEJS_VERSION=14
GO_VERSION="1.17"
pkg_dependencies="npm"
#=================================================
# PERSONAL HELPERS
#=================================================

View file

@ -76,7 +76,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port
#=================================================
ynh_script_progression --message="Installing dependencies..." --time --weight=1
#ynh_install_app_dependencies $pkg_dependencies
ynh_install_app_dependencies $pkg_dependencies
# Install nodejs
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION 2>&1
@ -135,10 +135,8 @@ pushd "$final_path"
export GOCACHE="$final_path/go/.cache"
export GOBIN=$GOPATH/bin
# Setup nodejs and npm
ynh_use_nodejs
ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install 2>&1
# Build server from source
ynh_exec_as root env $ynh_node_load_PATH make all install DESTDIR=$final_path/build 2>&1
make all install DESTDIR=$final_path/build 2>&1
ynh_secure_remove --file="$final_path/go"
popd