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:
parent
f580be0c71
commit
a4687bf5b6
3 changed files with 16 additions and 0 deletions
3
.github/workflows/updater.sh
vendored
3
.github/workflows/updater.sh
vendored
|
@ -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
7
conf/armhf.src
Normal 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
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue