mirror of
https://github.com/ivanizag/izapple2.git
synced 2025-01-04 18:30:39 +00:00
Fix docker build
This commit is contained in:
parent
b061b12ad8
commit
ce0ea6c68f
@ -3,25 +3,25 @@ cd /tmp
|
|||||||
git clone https://github.com/ivanizag/izapple2
|
git clone https://github.com/ivanizag/izapple2
|
||||||
|
|
||||||
# Build izapple2console for Linux
|
# Build izapple2console for Linux
|
||||||
cd /tmp/apple2/izapple2console
|
cd /tmp/izapple2/izapple2console
|
||||||
go build .
|
go build .
|
||||||
chown --reference /build izapple2console
|
chown --reference /build izapple2console
|
||||||
cp izapple2console /build
|
cp izapple2console /build
|
||||||
|
|
||||||
# Build izapple2console.exe for Windows
|
# Build izapple2console.exe for Windows
|
||||||
cd /tmp/apple2/izapple2console
|
cd /tmp/izapple2/izapple2console
|
||||||
env CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows CGO_LDFLAGS="-L/usr/x86_64-w64-mingw32/lib" CGO_FLAGS="-I/usr/x86_64-w64-mingw32/include -D_REENTRANT" go build -o izapple2console.exe .
|
env CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows CGO_LDFLAGS="-L/usr/x86_64-w64-mingw32/lib" CGO_FLAGS="-I/usr/x86_64-w64-mingw32/include -D_REENTRANT" go build -o izapple2console.exe .
|
||||||
chown --reference /build izapple2console.exe
|
chown --reference /build izapple2console.exe
|
||||||
cp izapple2console.exe /build
|
cp izapple2console.exe /build
|
||||||
|
|
||||||
# Build izapple2sdl for Linux
|
# Build izapple2sdl for Linux
|
||||||
cd /tmp/apple2/izapple2sdl
|
cd /tmp/izapple2/izapple2sdl
|
||||||
go build .
|
go build .
|
||||||
chown --reference /build izapple2sdl
|
chown --reference /build izapple2sdl
|
||||||
cp izapple2sdl /build
|
cp izapple2sdl /build
|
||||||
|
|
||||||
# Build izapple2sdl.exe for Windows
|
# Build izapple2sdl.exe for Windows
|
||||||
cd /tmp/apple2/izapple2sdl
|
cd /tmp/izapple2/izapple2sdl
|
||||||
env CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows CGO_LDFLAGS="-L/usr/x86_64-w64-mingw32/lib -lSDL2" CGO_FLAGS="-I/usr/x86_64-w64-mingw32/include -D_REENTRANT" go build -o izapple2sdl.exe .
|
env CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows CGO_LDFLAGS="-L/usr/x86_64-w64-mingw32/lib -lSDL2" CGO_FLAGS="-I/usr/x86_64-w64-mingw32/include -D_REENTRANT" go build -o izapple2sdl.exe .
|
||||||
chown --reference /build izapple2sdl.exe
|
chown --reference /build izapple2sdl.exe
|
||||||
cp izapple2sdl.exe /build
|
cp izapple2sdl.exe /build
|
||||||
|
Loading…
Reference in New Issue
Block a user