mirror of
https://github.com/YunoHost-Apps/photoprism_ynh.git
synced 2024-09-03 19:56:41 +02:00
Add npm
This commit is contained in:
parent
d71e49639d
commit
a9983e9478
2 changed files with 4 additions and 4 deletions
|
@ -7,6 +7,8 @@
|
||||||
NODEJS_VERSION=14
|
NODEJS_VERSION=14
|
||||||
GO_VERSION="1.17"
|
GO_VERSION="1.17"
|
||||||
|
|
||||||
|
pkg_dependencies="npm"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -76,7 +76,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing dependencies..." --time --weight=1
|
ynh_script_progression --message="Installing dependencies..." --time --weight=1
|
||||||
|
|
||||||
#ynh_install_app_dependencies $pkg_dependencies
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
# Install nodejs
|
# Install nodejs
|
||||||
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION 2>&1
|
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION 2>&1
|
||||||
|
@ -135,10 +135,8 @@ pushd "$final_path"
|
||||||
export GOCACHE="$final_path/go/.cache"
|
export GOCACHE="$final_path/go/.cache"
|
||||||
export GOBIN=$GOPATH/bin
|
export GOBIN=$GOPATH/bin
|
||||||
# Setup nodejs and npm
|
# 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
|
# 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"
|
ynh_secure_remove --file="$final_path/go"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue