Windows: update
This commit is contained in:
parent
73680423f5
commit
8d4be71810
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -221,12 +221,15 @@ jobs:
|
||||
run:
|
||||
shell: msys2 {0}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: msys2/setup-msys2@v2
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
msystem: MINGW64
|
||||
update: true
|
||||
install: mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-autotools git zip
|
||||
install: mingw-w64-x86_64-clang mingw-w64-x86_64-cmake mingw-w64-x86_64-autotools mingw-w64-x86_64-tcl git zip
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
@ -243,7 +246,6 @@ jobs:
|
||||
cp -r ./builtin MultiCraft/
|
||||
cp -r ./client MultiCraft/
|
||||
cp -r ./fonts MultiCraft/
|
||||
cp -r ./games MultiCraft/
|
||||
cp -r ./locale MultiCraft/
|
||||
cp -r ./textures MultiCraft/
|
||||
zip -r MultiCraft.zip MultiCraft
|
||||
@ -322,5 +324,5 @@ jobs:
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: msvc-${{ matrix.config.arch }}-${{ matrix.type }}
|
||||
name: MultiCraft-msvc-${{ matrix.config.arch }}-${{ matrix.type }}
|
||||
path: .\Package\
|
||||
|
@ -6,7 +6,7 @@ SDL2_VERSION=2.26.5
|
||||
|
||||
if [ ! -d SDL2-src ]; then
|
||||
wget https://github.com/libsdl-org/SDL/archive/release-$SDL2_VERSION.tar.gz
|
||||
tar -xzvf release-$SDL2_VERSION.tar.gz
|
||||
tar -xzf release-$SDL2_VERSION.tar.gz
|
||||
mv SDL-release-$SDL2_VERSION sdl2-src
|
||||
rm release-$SDL2_VERSION.tar.gz
|
||||
fi
|
||||
@ -22,7 +22,7 @@ cmake .. \
|
||||
-DSDL_SHARED=0 \
|
||||
-DSDL_STATIC=1
|
||||
|
||||
cmake --build . -j$NPROC
|
||||
cmake --build . -j${NPROC}
|
||||
|
||||
# update `include` folder
|
||||
rm -rf ../../sdl2/include
|
||||
|
@ -1,12 +1,12 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
FREETYPE_VERSION=2.13.0
|
||||
FREETYPE_VERSION=2.13.1
|
||||
|
||||
. ./sdk.sh
|
||||
|
||||
if [ ! -d freetype-src ]; then
|
||||
wget https://download.savannah.gnu.org/releases/freetype/freetype-$FREETYPE_VERSION.tar.gz
|
||||
tar -xzvf freetype-$FREETYPE_VERSION.tar.gz
|
||||
wget https://download-mirror.savannah.gnu.org/releases/freetype/freetype-$FREETYPE_VERSION.tar.gz
|
||||
tar -xzf freetype-$FREETYPE_VERSION.tar.gz
|
||||
mv freetype-$FREETYPE_VERSION freetype-src
|
||||
rm freetype-$FREETYPE_VERSION.tar.gz
|
||||
mkdir freetype-src/build
|
||||
@ -23,7 +23,7 @@ cmake .. \
|
||||
-DFT_DISABLE_BROTLI=TRUE \
|
||||
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS"
|
||||
|
||||
cmake --build . -j$NPROC
|
||||
cmake --build . -j${NPROC}
|
||||
|
||||
# update `include` folder
|
||||
rm -rf ../../freetype/include
|
||||
|
@ -1,11 +1,11 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
. ./sdk.sh
|
||||
GETTEXT_VERSION=0.21.1
|
||||
GETTEXT_VERSION=0.22
|
||||
|
||||
if [ ! -d gettext-src ]; then
|
||||
wget https://ftp.gnu.org/pub/gnu/gettext/gettext-$GETTEXT_VERSION.tar.gz
|
||||
tar -xzvf gettext-$GETTEXT_VERSION.tar.gz
|
||||
tar -xzf gettext-$GETTEXT_VERSION.tar.gz
|
||||
mv gettext-$GETTEXT_VERSION gettext-src
|
||||
rm gettext-$GETTEXT_VERSION.tar.gz
|
||||
fi
|
||||
@ -15,7 +15,7 @@ cd gettext-src/gettext-runtime
|
||||
./configure CFLAGS="$CFLAGS" CPPFLAGS="$CXXFLAGS" \
|
||||
--disable-shared --enable-static --disable-libasprintf
|
||||
|
||||
make -j$NPROC
|
||||
make -j${NPROC}
|
||||
|
||||
# update `include` folder
|
||||
rm -rf ../../gettext/include
|
||||
|
@ -18,7 +18,7 @@ CPPFLAGS="$CPPFLAGS \
|
||||
-I$DEPS_ROOT/libjpeg/include \
|
||||
-I$DEPS_ROOT/libpng/include" \
|
||||
CXXFLAGS="$CXXFLAGS -std=gnu++17" \
|
||||
make staticlib_win32 -j$NPROC NDEBUG=1
|
||||
make staticlib_win32 -j${NPROC} NDEBUG=1
|
||||
|
||||
# update `include` folder
|
||||
rm -rf ../../../irrlicht/include
|
||||
|
@ -1,13 +1,13 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
. ./sdk.sh
|
||||
CURL_VERSION=8.1.1
|
||||
CURL_VERSION=8.2.1
|
||||
|
||||
export DEPS_ROOT=$(pwd)
|
||||
|
||||
if [ ! -d libcurl-src ]; then
|
||||
wget https://curl.haxx.se/download/curl-$CURL_VERSION.tar.gz
|
||||
tar -xzvf curl-$CURL_VERSION.tar.gz
|
||||
tar -xzf curl-$CURL_VERSION.tar.gz
|
||||
mv curl-$CURL_VERSION libcurl-src
|
||||
rm curl-$CURL_VERSION.tar.gz
|
||||
fi
|
||||
@ -27,7 +27,7 @@ cd libcurl-src
|
||||
--without-zstd --without-brotli --without-nghttp2 --without-libidn2 \
|
||||
--without-libpsl
|
||||
|
||||
make -j$NPROC
|
||||
make -j${NPROC}
|
||||
|
||||
# update `include` folder
|
||||
rm -rf ../libcurl/include
|
||||
|
@ -1,11 +1,11 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
. ./sdk.sh
|
||||
JPEG_VERSION=2.1.5.1
|
||||
JPEG_VERSION=3.0.0
|
||||
|
||||
if [ ! -d libjpeg-src ]; then
|
||||
wget https://download.sourceforge.net/libjpeg-turbo/libjpeg-turbo-$JPEG_VERSION.tar.gz
|
||||
tar -xzvf libjpeg-turbo-$JPEG_VERSION.tar.gz
|
||||
tar -xzf libjpeg-turbo-$JPEG_VERSION.tar.gz
|
||||
mv libjpeg-turbo-$JPEG_VERSION libjpeg-src
|
||||
rm libjpeg-turbo-$JPEG_VERSION.tar.gz
|
||||
mkdir libjpeg-src/build
|
||||
@ -18,7 +18,7 @@ cmake .. \
|
||||
-DENABLE_SHARED=OFF \
|
||||
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS"
|
||||
|
||||
cmake --build . -j$NPROC
|
||||
cmake --build . -j${NPROC}
|
||||
|
||||
# update `include` folder
|
||||
rm -rf ../../libjpeg/include
|
||||
|
@ -15,7 +15,7 @@ cmake .. \
|
||||
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS="$CXXFLAGS -fPIC"
|
||||
|
||||
cmake --build . -j$NPROC
|
||||
cmake --build . -j${NPROC}
|
||||
|
||||
# update `include` folder
|
||||
rm -rf ../../libogg/include
|
||||
|
@ -1,13 +1,13 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
. ./sdk.sh
|
||||
PNG_VERSION=1.6.39
|
||||
PNG_VERSION=1.6.40
|
||||
|
||||
export DEPS_ROOT=$(pwd)
|
||||
|
||||
if [ ! -d libpng-src ]; then
|
||||
wget https://download.sourceforge.net/libpng/libpng-$PNG_VERSION.tar.gz
|
||||
tar -xzvf libpng-$PNG_VERSION.tar.gz
|
||||
tar -xzf libpng-$PNG_VERSION.tar.gz
|
||||
mv libpng-$PNG_VERSION libpng-src
|
||||
rm libpng-$PNG_VERSION.tar.gz
|
||||
mkdir libpng-src/build
|
||||
@ -24,7 +24,7 @@ cmake .. \
|
||||
-DZLIB_INCLUDE_DIRS="$DEPS_ROOT/zlib/include" \
|
||||
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS"
|
||||
|
||||
cmake --build . -j$NPROC
|
||||
cmake --build . -j${NPROC}
|
||||
|
||||
# update `include` folder
|
||||
rm -rf ../../libpng/include
|
||||
|
@ -6,14 +6,14 @@ LUAJIT_VERSION=2.1
|
||||
|
||||
if [ ! -d luajit-src ]; then
|
||||
wget https://github.com/LuaJIT/LuaJIT/archive/v$LUAJIT_VERSION.tar.gz
|
||||
tar -xzvf v$LUAJIT_VERSION.tar.gz
|
||||
tar -xzf v$LUAJIT_VERSION.tar.gz
|
||||
mv LuaJIT-$LUAJIT_VERSION luajit-src
|
||||
rm v$LUAJIT_VERSION.tar.gz
|
||||
fi
|
||||
|
||||
cd luajit-src
|
||||
|
||||
make amalg -j$NPROC BUILDMODE=static
|
||||
make amalg -j${NPROC} BUILDMODE=static
|
||||
|
||||
# update `include` folder
|
||||
rm -rf ../luajit/include
|
||||
|
@ -20,7 +20,7 @@ cmake .. \
|
||||
-DCMAKE_C_FLAGS="$CFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS="$CXXFLAGS -fPIC"
|
||||
|
||||
cmake --build . -j$NPROC
|
||||
cmake --build . -j${NPROC}
|
||||
|
||||
# update `include` folder
|
||||
rm -rf ../../openal/include
|
||||
|
@ -1,6 +1,9 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
export CC=clang
|
||||
export CXX=clang++
|
||||
|
||||
export CFLAGS="-fvisibility=hidden -fexceptions -O3"
|
||||
export CXXFLAGS="$CFLAGS -frtti -O3"
|
||||
|
||||
export NPROC=`nproc`
|
||||
export NPROC=$(( $(nproc) + 1 ))
|
||||
|
@ -6,7 +6,7 @@ SQLITE_VERSION=3.42.0
|
||||
|
||||
if [ ! -d sqlite-src ]; then
|
||||
wget https://www.sqlite.org/src/tarball/sqlite.tar.gz?r=version-$SQLITE_VERSION
|
||||
tar -xzvf sqlite.tar.gz?r=version-$SQLITE_VERSION
|
||||
tar -xzf sqlite.tar.gz?r=version-$SQLITE_VERSION
|
||||
mv sqlite sqlite-src
|
||||
rm sqlite.tar.gz?r=version-$SQLITE_VERSION
|
||||
mkdir sqlite-src/build
|
||||
@ -18,7 +18,7 @@ cd sqlite-src/build
|
||||
--enable-shared \
|
||||
--enable-static
|
||||
|
||||
make -j$NPROC
|
||||
make -j${NPROC}
|
||||
|
||||
# update `include` folder
|
||||
rm -rf ../../sqlite/include
|
||||
|
@ -17,7 +17,7 @@ cmake .. \
|
||||
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS="$CXXFLAGS -fPIC"
|
||||
|
||||
cmake --build . -j$NPROC
|
||||
cmake --build . -j${NPROC}
|
||||
|
||||
# update `include` folder
|
||||
rm -rf ../../libvorbis/include
|
||||
|
@ -6,7 +6,7 @@ ZLIB_VERSION=1.2.13
|
||||
|
||||
if [ ! -d zlib-src ]; then
|
||||
wget https://github.com/madler/zlib/archive/v$ZLIB_VERSION.tar.gz
|
||||
tar -xzvf v$ZLIB_VERSION.tar.gz
|
||||
tar -xzf v$ZLIB_VERSION.tar.gz
|
||||
mv zlib-$ZLIB_VERSION zlib-src
|
||||
rm v$ZLIB_VERSION.tar.gz
|
||||
fi
|
||||
@ -19,7 +19,7 @@ cmake .. \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_C_FLAGS="$CFLAGS"
|
||||
|
||||
cmake --build . -j$NPROC
|
||||
cmake --build . -j${NPROC}
|
||||
|
||||
# update `include` folder
|
||||
rm -rf ../../zlib/include
|
||||
|
Loading…
x
Reference in New Issue
Block a user