diff --git a/README.md b/README.md index 67a1ce1..46c195f 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If User Mode is configured Multiple users, the app be used by multiple users #### Supported architectures * x86-64b - [![Build Status](https://ci-apps.yunohost.org/ci/logs/writefreely%20%28Community%29.svg)](https://ci-apps.yunohost.org/ci/apps/writefreely/) -* ARMv8-A - **Not supported** [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/writefreely%20%28Community%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/writefreely/) +* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/writefreely%20%28Community%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/writefreely/) * Jessie x86-64b - [![Build Status](https://ci-stretch.nohost.me/ci/logs/writefreely%20%28Community%29.svg)](https://ci-stretch.nohost.me/ci/apps/writefreely/) ## Limitations diff --git a/check_process b/check_process index 63e9c04..7585451 100644 --- a/check_process +++ b/check_process @@ -39,8 +39,8 @@ Level 9=0 Level 10=0 ;;; Options -Email= -Notification=none +Email=yalh@yahoo.com +Notification=yes #;;; Upgrade options # ; commit=CommitHash # name=Name and date of the commit. diff --git a/conf/arm.src b/conf/arm.src new file mode 100644 index 0000000..f230dbf --- /dev/null +++ b/conf/arm.src @@ -0,0 +1,6 @@ +SOURCE_URL=https://github.com/YunoHost-Apps/writefreely_ynh/releases/download/v0.8.1/writefreely_0.8.1_linux_arm64.tar.gz +SOURCE_SUM=6d79707d68ffba331e6c490c881b8767c1f6d75785b84a1fe7669b3915db02e3 +SOURCE_SUM_PRG=sha256sum +SOURCE_FORMAT=tar.gz +SOURCE_IN_SUBDIR=false +SOURCE_FILENAME= diff --git a/conf/app.src b/conf/x86-64.src similarity index 100% rename from conf/app.src rename to conf/x86-64.src diff --git a/pull_request_template.md b/pull_request_template.md new file mode 100644 index 0000000..b24579e --- /dev/null +++ b/pull_request_template.md @@ -0,0 +1,23 @@ +## Problem +- *Description of why you made this PR* + +## Solution +- *And how do you fix that problem* + +## PR Status +- [ ] Code finished. +- [ ] Tested with Package_check. +- [ ] Fix or enhancement tested. +- [ ] Upgrade from last version tested. +- [ ] Can be reviewed and tested. + +## Validation +--- +- [ ] **Code review** +- [ ] **Approval (LGTM)** +*Code review and approval have to be from a member of @YunoHost/apps group* +- **CI succeeded** : +[![Build Status](https://ci-apps-hq.yunohost.org/jenkins/job/writefreely_ynh%20-BRANCH-/badge/icon)](https://ci-apps-hq.yunohost.org/jenkins/job/writefreely_ynh%20-BRANCH-/) +*Please replace '-BRANCH-' in this link by the name of the branch used.* +*If the PR is from a forked repository. Please provide public results from package_check.* +When the PR is marked as ready to merge, you have to wait for 3 days before really merging it. diff --git a/scripts/_common.sh b/scripts/_common.sh index b905339..eea5970 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -1,5 +1,12 @@ #!/bin/bash +#================================================= +# COMMON VARIABLES +#================================================= + +# dependencies used by the app +#pkg_dependencies="deb1 deb2" + #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/backup b/scripts/backup index 6736fec..a259dff 100755 --- a/scripts/backup +++ b/scripts/backup @@ -8,19 +8,9 @@ source ../settings/scripts/detect_arch source ../settings/scripts/_common.sh -source ../settings/scripts/detect_arch source ../settings/scripts/ynh_systemd_action source /usr/share/yunohost/helpers -#================================================= -# MANAGE APPLICATION NOT COMPATIBLE WITH ARM -#================================================= - -if [ $architecture = "arm" ] -then - ynh_die "WriteFreely not available on Arm" -fi - #================================================= # MANAGE SCRIPT FAILURE #================================================= diff --git a/scripts/change_url b/scripts/change_url index a65cba6..be9cfcf 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -6,19 +6,9 @@ # IMPORT GENERIC HELPERS #================================================= -source detect_arch source _common.sh source /usr/share/yunohost/helpers -#================================================= -# MANAGE APPLICATION NOT COMPATIBLE WITH ARM -#================================================= - -if [ $architecture = "arm" ] -then - ynh_die "WriteFreely not available on Arm" -fi - #================================================= # RETRIEVE ARGUMENTS #================================================= diff --git a/scripts/detect_arch b/scripts/detect_arch index 4e258d9..d82d3ca 100644 --- a/scripts/detect_arch +++ b/scripts/detect_arch @@ -1,11 +1,13 @@ #!/bin/bash -if [ -n "$(uname -m | grep 64)" ]; then +if [ -n "$(uname -m | grep x86_64)" ]; then architecture="x86-64" elif [ -n "$(uname -m | grep 86)" ]; then architecture="i386" elif [ -n "$(uname -m | grep arm)" ]; then architecture="arm" +elif [ -n "$(uname -m | grep aarch64)" ]; then + architecture="arm" else ynh_die "Unable to detect your achitecture, please open a bug describing \ your hardware and the result of the command \"uname -m\"." 1 diff --git a/scripts/install b/scripts/install index 218d123..ed24472 100755 --- a/scripts/install +++ b/scripts/install @@ -12,15 +12,6 @@ source detect_arch source ynh_systemd_action source /usr/share/yunohost/helpers -#================================================= -# MANAGE APPLICATION NOT COMPATIBLE WITH ARM -#================================================= - -if [ $architecture = "arm" ] -then - ynh_die "WriteFreely not available on Arm" -fi - #================================================= # MANAGE SCRIPT FAILURE #================================================= @@ -153,7 +144,7 @@ ynh_print_info "Setting up source files ..." ynh_app_setting_set $app final_path $final_path # Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source "$final_path" +ynh_setup_source "$final_path" $architecture #================================================= # NGINX CONFIGURATION diff --git a/scripts/remove b/scripts/remove index 048c44c..0b0eba9 100755 --- a/scripts/remove +++ b/scripts/remove @@ -6,20 +6,10 @@ # IMPORT GENERIC HELPERS #================================================= -source detect_arch source _common.sh source ynh_systemd_action source /usr/share/yunohost/helpers -#================================================= -# MANAGE APPLICATION NOT COMPATIBLE WITH ARM -#================================================= - -if [ $architecture = "arm" ] -then - ynh_die "WriteFreely not available on Arm" -fi - #================================================= # LOAD SETTINGS #================================================= diff --git a/scripts/restore b/scripts/restore index c7871bf..eec167e 100755 --- a/scripts/restore +++ b/scripts/restore @@ -8,19 +8,9 @@ source ../settings/scripts/detect_arch source ../settings/scripts/_common.sh -source ../settings/scripts/detect_arch source ../settings/scripts/ynh_systemd_action source /usr/share/yunohost/helpers -#================================================= -# MANAGE APPLICATION NOT COMPATIBLE WITH ARM -#================================================= - -if [ $architecture = "arm" ] -then - ynh_die "WriteFreely not available on Arm" -fi - #================================================= # MANAGE SCRIPT FAILURE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index f3564ff..3e5af57 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -13,15 +13,6 @@ source ynh_systemd_action source ynh_check_app_version_changed source /usr/share/yunohost/helpers -#================================================= -# MANAGE APPLICATION NOT COMPATIBLE WITH ARM -#================================================= - -if [ $architecture = "arm" ] -then - ynh_die "WriteFreely not available on Arm" -fi - #================================================= # LOAD SETTINGS #================================================= @@ -117,7 +108,7 @@ ynh_print_info "Upgrading source files..." # Download, check integrity, uncompress and patch the source from app.src if [ "$upgrade_type" == "UPGRADE_APP" ] then - ynh_setup_source "$final_path" + ynh_setup_source "$final_path" $architecture fi #=================================================