1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/code-server_ynh.git synced 2024-09-03 18:16:28 +02:00

Fix for armhf

This commit is contained in:
Tagadda 2022-02-20 21:28:27 +00:00
parent f580be0c71
commit a4687bf5b6
3 changed files with 16 additions and 0 deletions

View file

@ -69,6 +69,9 @@ case $asset_url in
*"linux-arm64.tar.gz")
src="arm64"
;;
*"linux-armv7l.tar.gz")
src="armhf"
;;
*)
src=""
;;

7
conf/armhf.src Normal file
View file

@ -0,0 +1,7 @@
SOURCE_URL=https://github.com/coder/code-server/releases/download/v4.0.2/code-server-4.0.2-linux-armv7l.tar.gz
SOURCE_SUM=33446f85d0f8c7cf07ff35c0f4c9d8e067ca293f174e8ba51ae2ad16441242f2
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=
SOURCE_EXTRACT=true

View file

@ -40,6 +40,12 @@ test ! -e "$final_path" || ynh_die --message="This path already contains a folde
# Register (book) web path
ynh_webpath_register --app=$app --domain=$domain --path_url="/"
# Check machine architecture (in particular, we don't support 32bit machines)
if [ $YNH_ARCH == "i386" ] || [ $YNH_ARCH == "armel" ]
then
ynh_die --message="Sorry, but this app can only be installed on a x86 or ARM, 64 bits machine :("
fi
#=================================================
# STORE SETTINGS FROM MANIFEST
#=================================================