Updated Cross Compiling (markdown)

Hajime Hoshi 2017-02-26 02:52:16 +09:00
parent 863cfbeefe
commit 0f38bcd4f2

@ -1,14 +1,20 @@
You may not have a Windows machine handy.
But thanks to xgo, it is possible to cross-compile games made with ebiten!
But thanks to xgo, it is possible to cross-compile games made with Ebiten!
You will need xgo:
```go get github.com/karalabe/xgo```
```
go get github.com/karalabe/xgo
```
You will also need Docker:
https://www.docker.com/products/overview
Make sure docker is in your PATH.
Make sure your ebiten game is in your GOPATH and run this to cross-compile your game to windows:
```xgo --targets=windows/* /path/to/ebiten/game/in/gopath```
Make sure your Ebiten game is in your GOPATH and run this to cross-compile your game to Windows:
```
xgo --targets=windows/* /path/to/ebiten/game/in/gopath
```
NOTE: make sure you have a couple of GB's space as xgo will download what it needs to cross-compile the game.