adhocteam / pushup

Pushup is for making modern, page-oriented web apps in Go
https://pushup.adhoc.dev
MIT License
844 stars 30 forks source link

Get the thing to build on a windows command line #121

Closed RightFootConsulting closed 5 months ago

RightFootConsulting commented 9 months ago

So my first impression was WTH it only builds on Linux? But it turns out it was easy enough to address the fact that some of us are too cheap to buy MacOs computers for our company but not so cheap that we want to not have a widely adopted operating system with an inside track on hardware vendors. Also we don't want to develop with Docker slamming our CPU, plus those guys have gotten super money hungry lately so I don't use them anymore particularly when it's totally unnecessary.

Cross platform is the whole point of GO.

Then I realized that the scaffold files were not being copied out to new projects when run in windows. You need to use an OS specific path for the target file but you don't need to do that for the embedded FS, so I fixed that too.

Now I can run the build as follows on the windows command line:

go build .

then I can run the executable as

./pushup.exe ../my_project

And it works.

gedw99 commented 6 months ago

hey @paulsmith can you review this and commit it ? I can test on Windows arm64 from here...

@RightFootConsulting are you on on windows amd64 ?