arkane-systems / RunInGenie

Quickly run a wsl command from a Windows prompt.
MIT License
33 stars 6 forks source link

Add containerized build for Linux-based development #1

Closed gbraad closed 3 years ago

gbraad commented 3 years ago

This uses a Fedora-based container image to build the application

It defaults to Podman:

$ make containerized

or to use Docker

$ CONTAINER_RUNTIME=docker make containerized

The binaries are copied to the ./bin folder as expected from a regular build

gbraad commented 3 years ago

Screenshot of this working: image Note: binaries can be invoked locally, but have also been tested on the actual host.

gbraad commented 3 years ago

I wondered why it wasn't published as a single file as the csproj explicitly specifies this...

$ cp ./bin/Release/net5.0/win-x64/publish/\$.exe /mnt/c/Users/gbraad/.local/bin/\$.exe

... because I was using the wrong file; the unpublished one. Here you can see it works:

image

cerebrate commented 3 years ago

Looks great, thanks!