Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon32767 committed Jun 1, 2020
1 parent 3ffcdee commit bd33036
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ build/
*.3dsx
*.elf
*.smdh
win-build/
ccleste-win.zip
26 changes: 26 additions & 0 deletions winbuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh

WSYSROOT=/usr/i686-w64-mingw32/sys-root/mingw/

C () {
echo ">>" $@

if $@; then :; else
echo Stop.
exit 127
fi
}
C mkdir -p win-build
C cd win-build
C zig cc -target i386-windows-gnu -I $WSYSROOT/include/ -I $WSYSROOT/include/SDL/ \
-L $WSYSROOT/lib/ -lSDLmain -lSDL -lSDL_mixer ../sdl12main.c ../celeste.c -occleste.exe
C rm -r zig-cache
C cp $WSYSROOT/bin/libgcc_s_*.dll .
C cp $WSYSROOT/bin/libogg*.dll .
C cp $WSYSROOT/bin/libwinpthread*.dll .
C cp $WSYSROOT/bin/libvorbis*.dll .
C cp $WSYSROOT/bin/SDL.dll .
C cp $WSYSROOT/bin/SDL_mixer.dll .
C cp -r ../data/ .
C zip -9r ccleste-win.zip .
C mv ccleste-win.zip ..

0 comments on commit bd33036

Please sign in to comment.