Skip to content

Commit e27a218

Browse files
committed
fix: darwin for arm64.
1 parent d59c125 commit e27a218

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

package.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ for goos in ${os[@]}
2626
do
2727
for goarch in ${arch[@]}
2828
do
29-
if [[ ( ${goos} = "windows" && ( ${goarch} = "arm64" || ${goarch} = "arm" ) ) || ( ${goos} = "darwin" && ${goarch} = "arm" ) ]]; then continue; fi
29+
if [[ ( ${goos} = "windows" && ( ${goarch} = "arm64" || ${goarch} = "arm" ) ) || ( ${goos} = "darwin" && ( ${goarch} = "arm" || ${goarch} = "386" ) )]]; then continue; fi
3030
echo "=============>OS: [${goos}] ARCH: [${goarch}] automatic compiler begin."
3131
ext=""
3232
if [[ ${goos} = "windows" ]]; then
@@ -40,6 +40,9 @@ do
4040
mv update-${goos}-${goarch}${ext} ../btfs-binary-releases/${goos}/${goarch}/update-${goos}-${goarch}${ext}
4141
if [[ ${goos} != "windows" ]]
4242
then
43+
if [[ ${goos} = "darwin" ]] && [[ ${goarch} = "arm64" ]]; then
44+
continue
45+
fi
4346
URL="https://github.com/TRON-US/btfs-distributions/raw/master/fs-repo-migrations/${VERSION}/fs-repo-migrations_${VERSION}_${goos}-${goarch}.tar.gz"
4447
wget -q "$URL"
4548
tar -xzf fs-repo-migrations_${VERSION}_${goos}-${goarch}.tar.gz
@@ -62,4 +65,4 @@ do
6265
done
6366
done
6467

65-
echo "Automatic update script success!"
68+
echo "Automatic update script success!"

0 commit comments

Comments
 (0)