Skip to content

Commit

Permalink
Download meilisearch binaries while building
Browse files Browse the repository at this point in the history
GitHub has disabled git LFS as it has exceeded the quota.
Thus, checking in the binaries is no longer an option.
  • Loading branch information
mr-pennyworth committed Feb 10, 2024
1 parent cfb0ac3 commit b30b4c3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

3 changes: 0 additions & 3 deletions meilisearch-arm64

This file was deleted.

3 changes: 0 additions & 3 deletions meilisearch-x86_64

This file was deleted.

15 changes: 12 additions & 3 deletions mkapps.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
#!/usr/bin/env bash
set -o xtrace

# Pick the correct meilisearch binary for the arch
git lfs pull
cp "meilisearch-$(uname -m)" alfred-dict-server
ARCH=$(uname -m)

MEILISEARCH_RELEASE_URL="https://github.com/meilisearch/meilisearch/releases"
URL_INTEL="$MEILISEARCH_RELEASE_URL/download/v1.6.1/meilisearch-macos-amd64"
URL_APPLE_SILICON="$MEILISEARCH_RELEASE_URL/download/v1.6.1/meilisearch-macos-apple-silicon"

if [ "$ARCH" = "x86_64" ]; then
curl -L $URL_INTEL -o alfred-dict-server
else
curl -L $URL_APPLE_SILICON -o alfred-dict-server
fi


# Build the python scripts into a standalone binary
pip3 install -r pyapp/requirements.txt
Expand Down

0 comments on commit b30b4c3

Please sign in to comment.