-
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.
Add windows cross-compilation + artifact build script
- Loading branch information
Showing
9 changed files
with
64 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 +1 @@ | ||
src/frontend/SDL2/*.inc linguist-vendored | ||
src/frontend/SDL2/*.inc linguist-generated=true |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ fs.log | |
fs.hiscore | ||
replay/* | ||
build | ||
artifacts |
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,55 @@ | ||
#!/bin/bash | ||
|
||
# Dependencies: | ||
# - jq | ||
# - meson | ||
# - ninja | ||
# - xorriso | ||
# - zip | ||
# - mingw32-x86_64 toolchain | ||
# - i686-elf-gcc | ||
# - nasm | ||
# - xorriso | ||
# - mtools | ||
|
||
VERSION=$(mesonintrospect --projectinfo build | jq -r .version) | ||
|
||
rm -rf artifacts | ||
mkdir -p artifacts | ||
|
||
# Linux Releases | ||
rm -rf build | ||
LGT_V=faststack-$VERSION-unknown-linux-glibc | ||
mkdir -p artifacts/$LGT_V | ||
mkdir -p artifacts/$LGT_V/replay | ||
meson build -Dfrontend=terminal | ||
ninja -C build | ||
cp build/faststack artifacts/$LGT_V/faststack-terminal | ||
rm -rf build | ||
meson build -Dfrontend=sdl | ||
ninja -C build | ||
cp build/faststack artifacts/$LGT_V/faststack-sdl2 | ||
cp examples/fs.ini artifacts/$LGT_V | ||
cd artifacts && tar -czvf $LGT_V.tar.gz $LGT_V && cd .. | ||
rm -rf artifacts/$LGT_V | ||
|
||
# Windows Releases | ||
rm -rf build | ||
WG_V=faststack-$VERSION-x86_64-windows-gnu | ||
mkdir -p artifacts/$WG_V | ||
mkdir -p artifacts/$WG_V/replay | ||
meson build -Dfrontend=sdl --cross-file=meson_cross.txt | ||
ninja -C build | ||
cp build/faststack artifacts/$WG_V | ||
cp examples/fs.ini artifacts/$WG_V | ||
cp dlls/libfreetype-6.dll dlls/SDL2.dll dlls/SDL2_ttf.dll dlls/zlib1.dll artifacts/$WG_V | ||
cd artifacts && zip -9 -r $WG_V.zip $WG_V && cd .. | ||
rm -rf artifacts/$WG_V | ||
|
||
# Iso Releases | ||
make -C src/frontend/kernel iso | ||
cp src/frontend/kernel/stackos.iso artifacts/stackos-$VERSION-x86.iso | ||
|
||
# Source Code Releases | ||
ninja -C build dist | ||
cp build/meson-dist/*.tar.xz artifacts |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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