Skip to content

Commit

Permalink
fix: macos setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Asuka109 committed Jan 28, 2025
1 parent 5142133 commit 31198da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ build-harperjs:
just build-wasm web

# Removes a duplicate copy of the WASM binary if Vite is left to its devices.
sed -i 's/new URL(.*)/new URL()/g' "{{justfile_directory()}}/harper-wasm/pkg/harper_wasm.js"
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' 's/new URL(.*)/new URL()/g' "{{justfile_directory()}}/harper-wasm/pkg/harper_wasm.js"
else
sed -i 's/new URL(.*)/new URL()/g' "{{justfile_directory()}}/harper-wasm/pkg/harper_wasm.js"
fi

cd "{{justfile_directory()}}/packages/harper.js"
yarn install -f
Expand Down

0 comments on commit 31198da

Please sign in to comment.