1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gotosocial_ynh.git synced 2024-09-03 19:16:06 +02:00

use 'armhf' instead of 'armv6/7' (#147)

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
Co-authored-by: rosbeef andino <romain.raynaud@3cmr.fr>
This commit is contained in:
OniriCorpe 2024-06-14 23:15:59 +02:00 committed by GitHub
parent db2ca40fec
commit 5701ab4342
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 3 additions and 35 deletions

View file

@ -105,17 +105,14 @@ i386.url = "https://github.com/superseriousbusiness/gotosocial/releases/download
i386.sha256 = "7c5158f010b752a559aa3446bf28920bb8d9542109ba94c2a33cf907b3058504"
amd64.url = "https://github.com/superseriousbusiness/gotosocial/releases/download/v0.15.0/gotosocial_0.15.0_linux_amd64.tar.gz"
amd64.sha256 = "7819586a54869b2bfa2b27fbb2746f97e7eaa06f19fd154c7f2ad34aea3188d3"
armv6.url = "https://github.com/superseriousbusiness/gotosocial/releases/download/v0.15.0/gotosocial_0.15.0_linux_armv6.tar.gz"
armv6.sha256 = "dadce2162d336b61b84da7ca137a5bc8c613f2f982dcb3f68a50112ca582b117"
armv7.url = "https://github.com/superseriousbusiness/gotosocial/releases/download/v0.15.0/gotosocial_0.15.0_linux_armv7.tar.gz"
armv7.sha256 = "50bb887000f98030c0fa1aab60cd11ceaa986e3debd315ddb5a8dfdee2b502d2"
armhf.url = "https://github.com/superseriousbusiness/gotosocial/releases/download/v0.15.0/gotosocial_0.15.0_linux_armv7.tar.gz"
armhf.sha256 = "50bb887000f98030c0fa1aab60cd11ceaa986e3debd315ddb5a8dfdee2b502d2"
arm64.url = "https://github.com/superseriousbusiness/gotosocial/releases/download/v0.15.0/gotosocial_0.15.0_linux_arm64.tar.gz"
arm64.sha256 = "6c9f49da974bdad6d40a269e43cbfd8a62f6d8b3c8497d35b1c2a41128b523c0"
autoupdate.asset.i386 = "gotosocial_.*linux_386.tar.gz$"
autoupdate.asset.amd64 = "gotosocial_.*linux_amd64.tar.gz$"
autoupdate.asset.armv6 = "gotosocial_.*linux_armv6.tar.gz$"
autoupdate.asset.armv7 = "gotosocial_.*linux_armv7.tar.gz$"
autoupdate.asset.armhf = "gotosocial_.*linux_armv7.tar.gz$"
autoupdate.asset.arm64 = "gotosocial_.*linux_arm64.tar.gz$"
autoupdate.strategy = "latest_github_release"

View file

@ -8,26 +8,6 @@
# PERSONAL HELPERS
#=================================================
# custom function to detect armv6 and armv7
# ($YNH_ARCH returns armhf for both...)
detect_arch(){
local architecture
if uname -m | grep -q -E "arm64|aarch64" ; then
architecture="arm64"
elif uname -m | grep -q "64" ; then
architecture="amd64"
elif uname -m | grep -q "86" ; then
architecture="i386"
elif uname -m | grep -q "armv6" ; then
architecture="armv6"
elif uname -m | grep -q "armv7" ; then
architecture="armv7"
else
ynh_die --message="The script can't identify a valid architecture. Please report this error."
fi
echo $architecture
}
# custom function to change bash bool 0/1 to false/true
convert_bool(){
(("$1")) && echo "true" || echo "false"

View file

@ -157,9 +157,6 @@ ynh_script_progression --message="Setting up source files..." --weight=1
### downloaded from an upstream source, like a git repository.
### `ynh_setup_source` use the file conf/app.src
# detect_arch comes from _common.sh / personnal helpers
architecture=$(detect_arch)
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"

View file

@ -67,9 +67,6 @@ ynh_psql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name"
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=1
# detect_arch comes from _common.sh / personnal helpers
architecture="$(detect_arch)"
# compare if the system arch is different from the binary arch
# if so, download the correct binary
if [ "$architecture" != "$(file "$install_dir"/gotosocial | cut -d ',' -f 2 | tr -d ' ')" ]

View file

@ -288,9 +288,6 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..."
# detect_arch comes from _common.sh / personnal helpers
architecture=$(detect_arch)
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="config.yaml"
fi