Skip to content

Commit

Permalink
download x64 for older versions of blast on mac os x
Browse files Browse the repository at this point in the history
  • Loading branch information
DenKoren committed Oct 8, 2024
1 parent 062b8e7 commit 60001fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "Blast software package for Platforma Backend",
"scripts": {
"build": "true",
"pkg:build": "rm -rf dld && ./scripts/build.sh 2.10.0 && ./scripts/build.sh 2.11.0 && ./scripts/build.sh 2.12.0 && ./scripts/build.sh 2.13.0 && ./scripts/build.sh 2.14.0 && ./scripts/build.sh 2.14.1 && ./scripts/build.sh 2.15.0 && ./scripts/build.sh 2.16.0",
"pkg:build": "rm -rf dld && ./scripts/build.sh 2.10.0 && ./scripts/build.sh 2.11.0 && ./scripts/build.sh 2.12.0 && ./scripts/build.sh 2.13.0 && ./scripts/build.sh 2.14.0 && ./scripts/build.sh 2.14.1 && ./scripts/build.sh 2.15.0",

"publish:packages": "./scripts/publish.sh 2.10.0 && ./scripts/publish.sh 2.11.0 && ./scripts/publish.sh 2.12.0 && ./scripts/publish.sh 2.13.0 && ./scripts/publish.sh 2.14.0 && ./scripts/publish.sh 2.14.1 && ./scripts/publish.sh 2.15.0 && ./scripts/publish.sh 2.16.0",
"publish:packages": "./scripts/publish.sh 2.10.0 && ./scripts/publish.sh 2.11.0 && ./scripts/publish.sh 2.12.0 && ./scripts/publish.sh 2.13.0 && ./scripts/publish.sh 2.14.0 && ./scripts/publish.sh 2.14.1 && ./scripts/publish.sh 2.15.0",
"publish:descriptors": "pl-pkg publish descriptors",
"release": "npm run pkg:build && npm run publish:packages && npm run publish:descriptors"
},
Expand Down
8 changes: 7 additions & 1 deletion scripts/2.x/pkg-download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,17 @@ function download() {
local _suffix=""

local _os="${os}"
local _arch="${arch}"

if [ "${os}" == "windows" ]; then
_os="win64"
fi
if [ "${os}" == "macosx" ]; then
# for older versions of blast, download x64 instead of aarch64 (no aarch64 was built before 2.16.0)
_arch="x64"
fi

local _url="${base_url}/${version}/ncbi-blast-${version}+-${arch}-${_os}.${_ext}"
local _url="${base_url}/${version}/ncbi-blast-${version}+-${_arch}-${_os}.${_ext}"

local _show_progress=("--show-progress")
if [ "${CI:-}" = "true" ]; then
Expand Down

0 comments on commit 60001fe

Please sign in to comment.