Skip to content

Commit d9de2b3

Browse files
committed
fix: package for darwin arm64.
1 parent f74a2b0 commit d9de2b3

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

package.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,15 @@ do
4141
if [[ ${goos} != "windows" ]]
4242
then
4343
if [[ ${goos} = "darwin" ]] && [[ ${goarch} = "arm64" ]]; then
44-
continue
44+
echo "Warning: Skipping fs-repo-migrations for darwin/arm64"
45+
else
46+
URL="https://github.com/TRON-US/btfs-distributions/raw/master/fs-repo-migrations/${VERSION}/fs-repo-migrations_${VERSION}_${goos}-${goarch}.tar.gz"
47+
wget -q "$URL"
48+
tar -xzf fs-repo-migrations_${VERSION}_${goos}-${goarch}.tar.gz
49+
mv fs-repo-migrations/fs-repo-migrations ../btfs-binary-releases/${goos}/${goarch}/fs-repo-migrations-${goos}-${goarch}
50+
rm -f fs-repo-migrations_${VERSION}_${goos}-${goarch}.tar.gz
51+
rm -rf fs-repo-migrations
4552
fi
46-
URL="https://github.com/TRON-US/btfs-distributions/raw/master/fs-repo-migrations/${VERSION}/fs-repo-migrations_${VERSION}_${goos}-${goarch}.tar.gz"
47-
wget -q "$URL"
48-
tar -xzf fs-repo-migrations_${VERSION}_${goos}-${goarch}.tar.gz
49-
mv fs-repo-migrations/fs-repo-migrations ../btfs-binary-releases/${goos}/${goarch}/fs-repo-migrations-${goos}-${goarch}
50-
rm -f fs-repo-migrations_${VERSION}_${goos}-${goarch}.tar.gz
51-
rm -rf fs-repo-migrations
5253
else
5354
URL="https://github.com/TRON-US/btfs-distributions/raw/master/fs-repo-migrations/${VERSION}/fs-repo-migrations_${VERSION}_${goos}-${goarch}.zip"
5455
wget -q "$URL"

0 commit comments

Comments
 (0)