From fdb156f320ce290cc45ecd4c3647dfb58ed06540 Mon Sep 17 00:00:00 2001 From: -h Date: Sat, 25 May 2019 16:52:06 +0100 Subject: [PATCH] [enh] Include arm binaries Should fix #14 --- conf/arm.src | 6 ++++++ scripts/install | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 conf/arm.src diff --git a/conf/arm.src b/conf/arm.src new file mode 100644 index 0000000..d20f42e --- /dev/null +++ b/conf/arm.src @@ -0,0 +1,6 @@ +SOURCE_URL=https://github.com/syncthing/syncthing/releases/download/v1.1.3/syncthing-linux-arm-v1.1.3.tar.gz +SOURCE_SUM=3589C9F308973B7D7600FD4BBA69652DFA0F752A28D05280940537E8242C8CE3 +SOURCE_SUM_PRG=sha256sum +SOURCE_FORMAT=tar.gz +SOURCE_IN_SUBDIR=true +SOURCE_FILENAME= diff --git a/scripts/install b/scripts/install index 0a74227..4fedcf6 100644 --- a/scripts/install +++ b/scripts/install @@ -75,7 +75,11 @@ ynh_print_info --message="Setting up source files..." ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src +if [ -n "$(uname -m | grep arm)" ] ; then +ynh_setup_source --dest_dir="$final_path" --source_id="arm" +else ynh_setup_source --dest_dir="$final_path" +fi #================================================= # NGINX CONFIGURATION