diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index 35286e7..fbe5666 100755 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -69,6 +69,9 @@ case $asset_url in *"linux-arm64.tar.gz") src="arm64" ;; + *"linux-armv7l.tar.gz") + src="armhf" + ;; *) src="" ;; diff --git a/conf/armhf.src b/conf/armhf.src new file mode 100644 index 0000000..7087f34 --- /dev/null +++ b/conf/armhf.src @@ -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 diff --git a/scripts/install b/scripts/install index 02bb885..93abf43 100755 --- a/scripts/install +++ b/scripts/install @@ -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 #=================================================