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

from commit

This commit is contained in:
ericgaspar 2021-07-28 12:12:25 +02:00
parent a17e9ce169
commit 4e1b6bbc40
5 changed files with 10 additions and 1 deletions

View file

View file

@ -6,7 +6,7 @@
"en": "Alternative front-end to YouTube",
"fr": "Front-end alternatif à YouTube"
},
"version": "0.20.1~ynh11",
"version": "28.07.21~ynh1",
"url": "https://invidio.us/",
"upstream": {
"license": "GPL-3.0-only",

View file

@ -4,6 +4,8 @@
# COMMON VARIABLES
#=================================================
version_commit=5c76cdaad9da2330311e78fc4e451c40e88a9598
# dependencies used by the app
pkg_dependencies="apt-transport-https libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev postgresql librsvg2-bin libsqlite3-dev zlib1g-dev libevent-dev pkg-config libpcre3-dev"

View file

@ -101,6 +101,10 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from GitHub
git clone https://github.com/iv-org/invidious "$final_path" --quiet
pushd "$final_path"
git reset --hard --quiet $version_commit
popd
for i in $final_path/config/sql/*.sql ; do
ynh_replace_string --match_string="kemal" --replace_string=$db_user --target_file="$i" ;
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < "$i" ;

View file

@ -104,7 +104,10 @@ then
#git clone https://github.com/iv-org/invidious "$final_path" --quiet
pushd $final_path
git fetch
git checkout master
git pull
git reset --hard --quiet $version_commit
shards update && shards install
crystal build $final_path/src/invidious.cr --release
popd