From 7f5bca565fada1ec29b36e40f5c301d5dac88d12 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 29 Mar 2021 19:26:36 +0200 Subject: [PATCH] Fix --- conf/app.src | 0 scripts/_common.sh | 2 +- scripts/install | 8 +++++--- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 conf/app.src diff --git a/conf/app.src b/conf/app.src new file mode 100644 index 0000000..e69de29 diff --git a/scripts/_common.sh b/scripts/_common.sh index 8f6e28d..4aeb6e7 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,7 @@ #================================================= # dependencies used by the app -pkg_dependencies="crystal apt-transport-https libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev postgresql librsvg2-bin libsqlite3-dev zlib1g-dev" +pkg_dependencies="apt-transport-https libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev postgresql librsvg2-bin libsqlite3-dev zlib1g-dev" #crystal #================================================= # PERSONAL HELPERS diff --git a/scripts/install b/scripts/install index 6d5ab21..fe9bc56 100644 --- a/scripts/install +++ b/scripts/install @@ -66,8 +66,10 @@ ynh_app_setting_set --app=$app --key=port --value=$port #================================================= ynh_script_progression --message="Installing dependencies..." --weight=9 -ynh_exec_warn_less apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 -ynh_install_extra_repo --repo="deb https://dl.bintray.com/crystal/deb all stable" --append +# ynh_exec_warn_less apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 +# ynh_install_extra_repo --repo="deb https://dl.bintray.com/crystal/deb all stable" --append + +curl -fsSL https://crystal-lang.org/install.sh | bash -s -- --crystal=0.35 ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies @@ -122,7 +124,7 @@ ynh_script_progression --message="Building Invidious.. (this will take some time pushd "$final_path" || ynh_die shards update && shards install - crystal build $final_path/src/invidious.cr --release --ignore-crystal-version + crystal build $final_path/src/invidious.cr --release popd || ynh_die #=================================================