1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/terraforming-mars_ynh.git synced 2024-09-03 20:36:05 +02:00
This commit is contained in:
Thomas 2023-10-28 22:21:18 +02:00 committed by GitHub
parent 17e0950644
commit 8f0f765c04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 6 deletions

View file

@ -43,10 +43,10 @@ ram.runtime = "50M"
[resources]
[resources.sources]
[resources.sources.main]
url = "https://github.com/terraforming-mars/terraforming-mars/archive/686fa15abaa69dccfe4d8a9e91bf077978b7ae20.zip"
sha256 = "5e29130fb680ba79b667ad2c41445b975993d45354b0e6ae294fe302214290a2"
autoupdate.strategy = "latest_github_commit"
#[resources.sources.main]
#url = "https://github.com/terraforming-mars/terraforming-mars/archive/686fa15abaa69dccfe4d8a9e91bf077978b7ae20.zip"
# sha256 = "5e29130fb680ba79b667ad2c41445b975993d45354b0e6ae294fe302214290a2"
# autoupdate.strategy = "latest_github_commit"
[resources.system_user]

View file

@ -28,7 +28,7 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_script_progression --message="Setting up source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
#ynh_setup_source --dest_dir="$install_dir"
chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir"
@ -49,7 +49,10 @@ ynh_add_nginx_config
# BUILD APP
#=================================================
pushd $install_dir
cd $install_dir
git clone https://github.com/terraforming-mars/terraforming-mars.git
pushd $install_dir/terraforming-mars
ynh_use_nodejs
ynh_script_progression --message="npm install... This can be very long, be patient !" --weight=18