add option to generate windows build on linux

This commit is contained in:
Anantha Kumaran 2022-08-07 11:56:42 +05:30
parent 3391d5af8f
commit 4a23646076
2 changed files with 4 additions and 0 deletions

View File

@ -18,3 +18,6 @@ lint:
./node_modules/.bin/eslint web/src --ext .js,.jsx,.ts,.tsx
./node_modules/.bin/tsc --project tsconfig.json --noEmit
test -z $$(gofmt -l .)
windows:
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc go build

View File

@ -14,6 +14,7 @@ in pkgs.mkShell {
pkgs.sqlite
pinned.nodejs-17_x
pkgs.mdbook
pkgs.pkgsCross.mingwW64.buildPackages.gcc
];
shellHook = ''