Skip to content

Commit

Permalink
Merge pull request #1848 from mrpalide/fix/add-missing-skywire-comman…
Browse files Browse the repository at this point in the history
…d-to-macinstaller-postscript

fix missing `skywire` command in MacOS
  • Loading branch information
mrpalide authored Jun 29, 2024
2 parents e1726a8 + 0310b57 commit 9775399
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mac_installer/create_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions scripts/mac_installer/install_scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9775399

Please sign in to comment.