Skip to content

Commit

Permalink
chore: fix postbuild script for apple
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain committed Sep 30, 2024
1 parent 65d1187 commit 2f31a0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/postbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ OUTPUT="src/napi.js"
{ cat scripts/JS_GEN_PREFIX; cat $OUTPUT; } > ${OUTPUT}.tmp
mv ${OUTPUT}.tmp $OUTPUT

sed -i "s/\.\/libp2p/..\/..\/libp2p/" $OUTPUT
sed -i "s/'libp2p/'..\/..\/libp2p/" $OUTPUT
sed -i "s/module\.exports\.\(.*\) = \(.*\)/export { \2 }/g" $OUTPUT
sed -i '' "s/\.\/libp2p/..\/..\/libp2p/" $OUTPUT
sed -i '' "s/'libp2p/'..\/..\/libp2p/" $OUTPUT
sed -i '' "s/module\.exports\.\(.*\) = \(.*\)/export { \2 }/g" $OUTPUT

0 comments on commit 2f31a0b

Please sign in to comment.