Skip to content

Commit

Permalink
Fix Apple Silicon builds by including correct jq binary
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-pennyworth committed Feb 10, 2024
1 parent 9bb30d1 commit f0ea85c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ __pycache__
alfred-dict-server
dist
build
jq
wfbuild
AlfredExtraPane.app
BetterDict
Expand Down
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ Subsequent searches should be snappy
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>0.2.1</string>
<string>0.2.2</string>
<key>webaddress</key>
<string>https://github.com/mr-pennyworth/alfred-better-dictionaries</string>
</dict>
Expand Down
Binary file removed jq
Binary file not shown.
17 changes: 13 additions & 4 deletions mkapps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,24 @@ set -o xtrace
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"
MS_INTEL="$MEILISEARCH_RELEASE_URL/download/v1.6.1/meilisearch-macos-amd64"
MS_APPLE="$MEILISEARCH_RELEASE_URL/download/v1.6.1/meilisearch-macos-apple-silicon"

JQ_RELEASE_URL="https://github.com/jqlang/jq/releases"
JQ_INTEL="$JQ_RELEASE_URL/download/jq-1.7.1/jq-macos-amd64"
JQ_APPLE="$JQ_RELEASE_URL/download/jq-1.7.1/jq-macos-arm64"

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

chmod +x alfred-dict-server
chmod +x jq


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

0 comments on commit f0ea85c

Please sign in to comment.