Browse Source

Cross compilation to windows

master
Gitea 3 years ago
parent
commit
11d21e6e2b
  1. 1
      .gitignore
  2. 5
      Makefile

1
.gitignore vendored

@ -1,2 +1,3 @@
pdf_to_img pdf_to_img
pdf_to_img.exe
output_images/ output_images/

5
Makefile

@ -1,2 +1,5 @@
all: all:
cd src/ && go build && mv pdf_to_img .. cd src/ && go build && mv pdf_to_img ..
windows:
cd src/ && CC=/usr/bin/x86_64-w64-mingw32-gcc GOOS=windows CGO_ENABLED=1 GOARCH=amd64 go build -tags=static && mv pdf_to_img.exe ..
Loading…
Cancel
Save