-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
1 changed file
with
18 additions
and
2 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 |
---|---|---|
@@ -1,2 +1,18 @@ | ||
clang main.c -Ofast -lSDL2 -lm -o borg0 | ||
i686-w64-mingw32-gcc -std=c17 main.c -ISDL2/include -LSDL2/lib -Ofast -Wall -lmingw32 -lSDL2main -lSDL2 -o borg0.exe | ||
mkdir release | ||
rm release/borg0 | ||
rm release/borg0.exe | ||
rm release/borg0.AppImage | ||
rm release/borg0.deb | ||
rm release/borg0_win.zip | ||
clang main.c -Ofast -lSDL2 -lm -o release/borg0 | ||
i686-w64-mingw32-gcc -std=c17 main.c -ISDL2/include -LSDL2/lib -Ofast -Wall -lmingw32 -lSDL2main -lSDL2 -o release/borg0.exe | ||
strip --strip-unneeded release/borg0 | ||
strip --strip-unneeded release/borg0.exe | ||
upx --lzma --best release/borg0 | ||
upx --lzma --best release/borg0.exe | ||
cp release/borg0 borg0.AppDir/usr/bin/borg0 | ||
./appimagetool-x86_64.AppImage borg0.AppDir release/borg0.AppImage | ||
cp release/borg0 deb/usr/bin/borg0 | ||
dpkg-deb --build deb release/borg0.deb | ||
cd release | ||
zip borg0_win.zip SDL2.dll borg0.exe |