From 5530939f184aff360907ddac73acbd694761714d Mon Sep 17 00:00:00 2001 From: Mohammed Date: Sat, 29 Jun 2024 05:47:44 +0000 Subject: [PATCH 1/2] add missing skywire command to postinstall script on mac installer process --- scripts/mac_installer/install_scripts/postinstall | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/mac_installer/install_scripts/postinstall b/scripts/mac_installer/install_scripts/postinstall index af5e2406f..eb3eca8ba 100755 --- a/scripts/mac_installer/install_scripts/postinstall +++ b/scripts/mac_installer/install_scripts/postinstall @@ -55,3 +55,6 @@ if [[ ! -d /usr/local/bin ]]; then mkdir /usr/local/bin fi +if [[ ! -L /usr/local/bin/skywire ]]; then + ln -s /Applications/Skywire.app/Contents/MacOS/skywire /usr/local/bin/skywire +fi From 0310b57517ee88b253b9cc9b2b686eba2a97e71e Mon Sep 17 00:00:00 2001 From: Mohammed Date: Sat, 29 Jun 2024 09:26:18 +0330 Subject: [PATCH 2/2] improve create_installer.sh script of mac installer --- scripts/mac_installer/create_installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mac_installer/create_installer.sh b/scripts/mac_installer/create_installer.sh index b35fd93fe..bf594f4bd 100755 --- a/scripts/mac_installer/create_installer.sh +++ b/scripts/mac_installer/create_installer.sh @@ -48,7 +48,7 @@ function build_installer() { fi # fetch skywire binaries from last release - download_url=$(eval curl https://api.github.com/repos/skycoin/skywire/releases | jq '.[0].assets[] | select(.name|match("darwin-'${go_arch}'.tar.gz")) | .browser_download_url') + download_url=$(eval curl --url https://api.github.com/repos/skycoin/skywire/releases --header 'authorization: Bearer $GITHUB_TOKEN' | jq '.[0].assets[] | select(.name|match("darwin-'${go_arch}'.tar.gz")) | .browser_download_url') wget ${download_url:1:$((${#download_url} - 2))} -O - | tar -xz if [ -d ${installer_build_dir}/binaries/Skywire.app ]; then