This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ffcdee
commit bd33036
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ build/ | |
*.3dsx | ||
*.elf | ||
*.smdh | ||
win-build/ | ||
ccleste-win.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 .. |