socketsupply / socket

A cross-platform runtime for Web developers to build desktop & mobile apps for any OS using any frontend library.
https://socketsupply.co/guides
Other
1.6k stars 75 forks source link

cli: only replace file ext, not path #982

Closed chrisfarms closed 2 months ago

chrisfarms commented 2 months ago

what

fix replace calls in cli to only match the extension at end of file paths

why

currently if you have a ".c", ".cc", ".m" in any directory names in your project working directory, then you are unable to compile an extension as all the ".c" etc will get replaced while the compile flags are being generated.

example:

"/src/github.com/chrisfarms/my-socket-app/extensions/something.c"

becomes

"/src/github.oom/chrisfarms/my-socket-app/extensions/something.o"

note

⚠️ this PR is against next