1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kiwiirc_ynh.git synced 2024-09-03 19:35:59 +02:00
This commit is contained in:
ericgaspar 2022-03-06 13:08:16 +01:00
parent d12bd510c5
commit 5de767f769
7 changed files with 26 additions and 10 deletions

7
conf/amd64.src Normal file
View file

@ -0,0 +1,7 @@
SOURCE_URL=https://github.com/kiwiirc/kiwiirc/releases/download/v1.6.1/kiwiirc-server_v1.6.1-1_linux_amd64.deb
SOURCE_SUM=de6bb7363523ebfaa61c853c6a64e73c5a3b0df204c757aaaaf3ca79ba7e12d1
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=deb
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=kiwiirc.deb
SOURCE_EXTRACT=false

View file

@ -1,7 +0,0 @@
SOURCE_URL=https://kiwiirc.com/downloads/kiwiirc_20.05.24.1-1_amd64.deb
SOURCE_SUM=c99504c6de678fd91aed357ff0dada16a8df9e932970ed85767b516a9f87df52
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=deb
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=kiwiirc.deb
SOURCE_EXTRACT=false

7
conf/arm64.src Normal file
View file

@ -0,0 +1,7 @@
SOURCE_URL=https://github.com/kiwiirc/kiwiirc/releases/download/v1.6.1/kiwiirc-server_v1.6.1-1_linux_arm64.deb
SOURCE_SUM=4a2ffd2dc53404a0f875333af10c6c24514532e0ffee95104551d8d3f4e2b2b0
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=deb
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=kiwiirc.deb
SOURCE_EXTRACT=false

7
conf/armhf.src Normal file
View file

@ -0,0 +1,7 @@
SOURCE_URL=https://github.com/kiwiirc/kiwiirc/releases/download/v1.6.1/kiwiirc-server_v1.6.1-1_linux_armhf.deb
SOURCE_SUM=94b8e670e10c481dba46aadbdbfd7e9d92ce9c08dbe113e171327e5ba1b8791a
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=deb
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=kiwiirc.deb
SOURCE_EXTRACT=false

View file

@ -6,7 +6,7 @@
"en": "Versatile web based messenger using IRC",
"fr": "Messagerie Web polyvalente utilisant IRC"
},
"version": "20.05.24.1~ynh1",
"version": "1.6.1~ynh1",
"url": "https://github.com/kiwiirc/kiwiirc",
"upstream": {
"license": "AGPL-3.0-only",

View file

@ -22,6 +22,7 @@ ynh_abort_if_errors
domain=$YNH_APP_ARG_DOMAIN
path_url="/"
architecture=$YNH_ARCH
app=$YNH_APP_INSTANCE_NAME
@ -56,7 +57,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port
ynh_script_progression --message="Setting up source files..." --weight=2
tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir --source_id=app
ynh_setup_source --dest_dir=$tempdir --source_id="$architecture"
ynh_exec_warn_less dpkg -i $tempdir/kiwiirc.deb
#=================================================

View file

@ -19,6 +19,7 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path)
port=$(ynh_app_setting_get --app=$app --key=port)
architecture=$YNH_ARCH
#=================================================
# CHECK VERSION
@ -47,7 +48,7 @@ ynh_abort_if_errors
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir --source_id=app
ynh_setup_source --dest_dir=$tempdir --source_id="$architecture"
ynh_exec_warn_less dpkg -i $tempdir/kiwiirc.deb
fi