From 7a9d62a6fee194dab4ddadc1e655928cde19cd65 Mon Sep 17 00:00:00 2001 From: Gredin67 Date: Tue, 6 Jul 2021 16:25:50 +0200 Subject: [PATCH 1/5] define GOCACHE for ARM64 --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 2c16730..8546c9b 100755 --- a/scripts/install +++ b/scripts/install @@ -125,8 +125,8 @@ fi ynh_install_extra_app_dependencies --repo="http://http.debian.net/debian buster-backports main" --package="golang-go" -#export GOPATH="$final_path" -#export GOCACHE="$GOPATH"/.cache/go-build +export GOPATH="$final_path" +export GOCACHE="$GOPATH"/.cache/go-build export PATH=$PATH:$GO_PATH env_path=$PATH From c82c1172c3ff67970efab9bc334e2ee51ee08475 Mon Sep 17 00:00:00 2001 From: Gredin67 Date: Fri, 9 Jul 2021 00:51:04 +0200 Subject: [PATCH 2/5] upgrade with GOCACHE --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index fd8ff46..eb56c2f 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -133,8 +133,8 @@ ynh_install_extra_app_dependencies --repo="http://http.debian.net/debian buster- # Migration from 1.6.0 ynh_secure_remove --file="$final_path"/asmux.go src_path="$final_path"_src -#export GOPATH=$src_path -#export GOCACHE="$GOPATH"/.cache/go-build +export GOPATH=$src_path +export GOCACHE="$GOPATH"/.cache/go-build # Remove a directory securely ynh_secure_remove --file="$src_path" #export PATH=$PATH:$GO_PATH From a2e94914069bd06b15758cd7f5fdb557953fccb1 Mon Sep 17 00:00:00 2001 From: Gredin67 Date: Fri, 9 Jul 2021 00:53:52 +0200 Subject: [PATCH 3/5] /src --- scripts/install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 8546c9b..946a3cd 100755 --- a/scripts/install +++ b/scripts/install @@ -125,7 +125,9 @@ fi ynh_install_extra_app_dependencies --repo="http://http.debian.net/debian buster-backports main" --package="golang-go" -export GOPATH="$final_path" +src_path="$final_path"/src +mkdir -p $src_path +export GOPATH="$src_path" export GOCACHE="$GOPATH"/.cache/go-build export PATH=$PATH:$GO_PATH From 0ce9d12b9eb8d44bcb4d022ce8d124d7dfafd88e Mon Sep 17 00:00:00 2001 From: Gredin67 Date: Fri, 9 Jul 2021 00:55:04 +0200 Subject: [PATCH 4/5] Update upgrade --- scripts/upgrade | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index eb56c2f..840e0ba 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -133,13 +133,16 @@ ynh_install_extra_app_dependencies --repo="http://http.debian.net/debian buster- # Migration from 1.6.0 ynh_secure_remove --file="$final_path"/asmux.go src_path="$final_path"_src -export GOPATH=$src_path -export GOCACHE="$GOPATH"/.cache/go-build # Remove a directory securely ynh_secure_remove --file="$src_path" #export PATH=$PATH:$GO_PATH #env_path=$PATH +src_path="$final_path"/src +mkdir -p $src_path +export GOPATH="$src_path" +export GOCACHE="$GOPATH"/.cache/go-build + #================================================= # BUILD GO #================================================= From bd1d260dc9eebcdf633fe33c5e17020a6932cdb9 Mon Sep 17 00:00:00 2001 From: Gredin67 Date: Sat, 10 Jul 2021 07:59:27 +0200 Subject: [PATCH 5/5] Update manifest.json --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 2de3fed..7a9beef 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "A WhatsApp puppeting bridge for Matrix/Synapse.", "fr": "Passerelle WhatsApp pour Matrix/Synapse." }, - "version": "0.1.7~ynh2", + "version": "0.1.7~ynh3", "url": "https://github.com/tulir/mautrix-whatsapp", "license": "AGPL-3.0-or-later", "maintainer": {