1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/penpot_ynh.git synced 2024-09-03 19:56:56 +02:00

Gulp commands have changed

This commit is contained in:
tituspijean 2024-04-16 18:13:19 +02:00
parent d3bab7e6d1
commit 2ce2cd4053
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 10 additions and 8 deletions

View file

@ -68,9 +68,10 @@ pushd $install_dir/build/frontend
# ynh_exec_warn_less
ynh_exec_warn_less ynh_exec_as $app env PATH=$PATH JAVA_HOME=$JAVA_HOME clojure -J-Xms100M -J-Xmx800M -J-XX:+UseSerialGC -M:dev:shadow-cljs release main --config-merge "{:release-version \"${current_hash}\"}"
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp build
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp dist:clean
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp dist:copy
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp build:assets
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp build:styles
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp clean:dist
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp build:copy
ynh_replace_string --match_string="%version%" --replace_string="$version" --target_file="$install_dir/build/frontend/target/dist/index.html"
ynh_replace_string --match_string="%buildDate%" --replace_string="$build_date" --target_file="$install_dir/build/frontend/target/dist/index.html"
@ -199,4 +200,4 @@ ynh_systemd_action --service_name=$app-exporter --action="start" --log_path="/va
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Installation of $app completed" --last
ynh_script_progression --message="Installation of $app completed" --last

View file

@ -68,9 +68,10 @@ then
# ynh_exec_warn_less
ynh_exec_warn_less ynh_exec_as $app env PATH=$PATH JAVA_HOME=$JAVA_HOME clojure -J-Xms100M -J-Xmx800M -J-XX:+UseSerialGC -M:dev:shadow-cljs release main --config-merge "{:release-version \"${current_hash}\"}"
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp build
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp dist:clean
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp dist:copy
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp build:assets
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp build:styles
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp clean:dist
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp build:copy
ynh_replace_string --match_string="%version%" --replace_string="$version" --target_file="$install_dir/build/frontend/target/dist/index.html"
ynh_replace_string --match_string="%buildDate%" --replace_string="$build_date" --target_file="$install_dir/build/frontend/target/dist/index.html"
@ -195,4 +196,4 @@ ynh_systemd_action --service_name=$app-exporter --action="start" --log_path="/va
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Upgrade of $app completed" --last
ynh_script_progression --message="Upgrade of $app completed" --last