v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
98
scripts/gitlab-ci/assemble.sh
Normal file
98
scripts/gitlab-ci/assemble.sh
Normal file
|
@ -0,0 +1,98 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
mkdir client_distribution
|
||||
mkdir client_distribution/assets
|
||||
mkdir client_distribution/tiled
|
||||
|
||||
./linux_binaries/asset_packer -c scripts/packing.config assets/packed client_distribution/assets/packed.pak
|
||||
cp -r assets/user client_distribution/assets/
|
||||
|
||||
cp -r tiled/packed client_distribution/tiled/
|
||||
|
||||
cp -r doc client_distribution/doc
|
||||
|
||||
mkdir client_distribution/mods
|
||||
touch client_distribution/mods/mods_go_here
|
||||
|
||||
mkdir client_distribution/win64
|
||||
cp -r \
|
||||
windows64_binaries/starbound.exe \
|
||||
windows64_binaries/starbound.pdb \
|
||||
windows64_binaries/starbound_server.exe \
|
||||
windows64_binaries/mod_uploader.exe \
|
||||
windows64_binaries/*.dll \
|
||||
windows64_binaries/iconengines \
|
||||
windows64_binaries/imageformats \
|
||||
windows64_binaries/platforms \
|
||||
windows64_binaries/translations \
|
||||
scripts/gitlab-ci/windows64/sbinit.config \
|
||||
client_distribution/win64/
|
||||
|
||||
mkdir client_distribution/win32
|
||||
cp \
|
||||
windows32_binaries/starbound.exe \
|
||||
windows32_binaries/starbound.pdb \
|
||||
windows32_binaries/starbound_server.exe \
|
||||
windows32_binaries/asset_packer.exe \
|
||||
windows32_binaries/asset_unpacker.exe \
|
||||
windows32_binaries/dump_versioned_json.exe \
|
||||
windows32_binaries/make_versioned_json.exe \
|
||||
windows32_binaries/planet_mapgen.exe \
|
||||
windows32_binaries/*.dll \
|
||||
scripts/gitlab-ci/windows32/sbinit.config \
|
||||
client_distribution/win32/
|
||||
|
||||
mkdir client_distribution/osx
|
||||
cp -LR scripts/gitlab-ci/macos/Starbound.app client_distribution/osx/
|
||||
mkdir client_distribution/osx/Starbound.app/Contents/MacOS
|
||||
cp macos_binaries/starbound client_distribution/osx/Starbound.app/Contents/MacOS/
|
||||
cp macos_binaries/*.dylib client_distribution/osx/Starbound.app/Contents/MacOS/
|
||||
cp \
|
||||
macos_binaries/starbound_server \
|
||||
macos_binaries/asset_packer \
|
||||
macos_binaries/asset_unpacker \
|
||||
macos_binaries/dump_versioned_json \
|
||||
macos_binaries/make_versioned_json \
|
||||
macos_binaries/planet_mapgen \
|
||||
scripts/gitlab-ci/macos/sbinit.config \
|
||||
scripts/gitlab-ci/macos/run-server.sh \
|
||||
client_distribution/osx/
|
||||
|
||||
mkdir client_distribution/linux
|
||||
cp \
|
||||
linux_binaries/starbound \
|
||||
linux_binaries/starbound_server \
|
||||
linux_binaries/asset_packer \
|
||||
linux_binaries/asset_unpacker \
|
||||
linux_binaries/dump_versioned_json \
|
||||
linux_binaries/make_versioned_json \
|
||||
linux_binaries/planet_mapgen \
|
||||
linux_binaries/*.so \
|
||||
scripts/gitlab-ci/linux/sbinit.config \
|
||||
scripts/gitlab-ci/linux/run-client.sh \
|
||||
scripts/gitlab-ci/linux/run-server.sh \
|
||||
client_distribution/linux/
|
||||
|
||||
mkdir server_distribution
|
||||
mkdir server_distribution/assets
|
||||
|
||||
mkdir server_distribution/mods
|
||||
touch server_distribution/mods/mods_go_here
|
||||
|
||||
./linux_binaries/asset_packer -c scripts/packing.config -s assets/packed server_distribution/assets/packed.pak
|
||||
|
||||
mkdir server_distribution/win64
|
||||
mkdir server_distribution/linux
|
||||
|
||||
cp \
|
||||
linux_binaries/starbound_server \
|
||||
linux_binaries/*.so \
|
||||
scripts/gitlab-ci/linux/run-server.sh \
|
||||
scripts/gitlab-ci/linux/sbinit.config \
|
||||
server_distribution/linux/
|
||||
|
||||
cp \
|
||||
windows64_binaries/starbound_server.exe \
|
||||
windows64_binaries/*.dll \
|
||||
scripts/gitlab-ci/windows64/sbinit.config \
|
||||
server_distribution/win64/
|
180
scripts/gitlab-ci/deploy_stable_steam.sh
Normal file
180
scripts/gitlab-ci/deploy_stable_steam.sh
Normal file
|
@ -0,0 +1,180 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
cat > depot_client_main.vdf << EOF
|
||||
"DepotBuildConfig"
|
||||
{
|
||||
"DepotID" "211821"
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "assets/*"
|
||||
"DepotPath" "assets/"
|
||||
"recursive" "1"
|
||||
}
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "doc/*"
|
||||
"DepotPath" "doc/"
|
||||
"recursive" "1"
|
||||
}
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "mods/*"
|
||||
"DepotPath" "mods/"
|
||||
"recursive" "1"
|
||||
}
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "tiled/*"
|
||||
"DepotPath" "tiled/"
|
||||
"recursive" "1"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > depot_client_win32.vdf << EOF
|
||||
"DepotBuildConfig"
|
||||
{
|
||||
"DepotID" "211822"
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "win32/*"
|
||||
"DepotPath" "win32/"
|
||||
"recursive" "1"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > depot_client_win64.vdf << EOF
|
||||
"DepotBuildConfig"
|
||||
{
|
||||
"DepotID" "211823"
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "win64/*"
|
||||
"DepotPath" "win64/"
|
||||
"recursive" "1"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > depot_client_macos.vdf << EOF
|
||||
"DepotBuildConfig"
|
||||
{
|
||||
"DepotID" "211824"
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "osx/*"
|
||||
"DepotPath" "osx/"
|
||||
"recursive" "1"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > depot_client_linux.vdf << EOF
|
||||
"DepotBuildConfig"
|
||||
{
|
||||
"DepotID" "211825"
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "linux/*"
|
||||
"DepotPath" "linux/"
|
||||
"recursive" "1"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > app_build_client.vdf << EOF
|
||||
"appbuild"
|
||||
{
|
||||
"appid" "211820"
|
||||
"desc" "$CI_BUILD_REF"
|
||||
"buildoutput" "steambuild_output"
|
||||
"contentroot" "client_distribution"
|
||||
"setlive" "staging"
|
||||
"preview" "0"
|
||||
"local" ""
|
||||
|
||||
"depots"
|
||||
{
|
||||
"211821" "depot_client_main.vdf"
|
||||
"211822" "depot_client_win32.vdf"
|
||||
"211823" "depot_client_win64.vdf"
|
||||
"211824" "depot_client_macos.vdf"
|
||||
"211825" "depot_client_linux.vdf"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
$STEAM_CONTENTBUILDER_CMD +login "$STEAM_ACCOUNT" "$STEAM_PASSWORD" +run_app_build "`pwd`/app_build_client.vdf" +quit
|
||||
|
||||
cat > depot_server_main.vdf << EOF
|
||||
"DepotBuildConfig"
|
||||
{
|
||||
"DepotID" "533831"
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "assets/*"
|
||||
"DepotPath" "assets/"
|
||||
"recursive" "1"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > depot_server_win64.vdf << EOF
|
||||
"DepotBuildConfig"
|
||||
{
|
||||
"DepotID" "533832"
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "win64/*"
|
||||
"DepotPath" "win64/"
|
||||
"recursive" "1"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > depot_server_linux.vdf << EOF
|
||||
"DepotBuildConfig"
|
||||
{
|
||||
"DepotID" "533833"
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "linux/*"
|
||||
"DepotPath" "linux/"
|
||||
"recursive" "1"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > app_build_server.vdf << EOF
|
||||
"appbuild"
|
||||
{
|
||||
"appid" "533830"
|
||||
"desc" "$CI_BUILD_REF"
|
||||
"buildoutput" "steambuild_output"
|
||||
"contentroot" "server_distribution"
|
||||
"setlive" "staging"
|
||||
"preview" "0"
|
||||
"local" ""
|
||||
|
||||
"depots"
|
||||
{
|
||||
"533831" "depot_server_main.vdf"
|
||||
"533832" "depot_server_win64.vdf"
|
||||
"533833" "depot_server_linux.vdf"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
$STEAM_CONTENTBUILDER_CMD +login "$STEAM_ACCOUNT" "$STEAM_PASSWORD" +run_app_build "`pwd`/app_build_server.vdf" +quit
|
180
scripts/gitlab-ci/deploy_unstable_steam.sh
Normal file
180
scripts/gitlab-ci/deploy_unstable_steam.sh
Normal file
|
@ -0,0 +1,180 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
cat > depot_client_main.vdf << EOF
|
||||
"DepotBuildConfig"
|
||||
{
|
||||
"DepotID" "367541"
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "assets/*"
|
||||
"DepotPath" "assets/"
|
||||
"recursive" "1"
|
||||
}
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "doc/*"
|
||||
"DepotPath" "doc/"
|
||||
"recursive" "1"
|
||||
}
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "mods/*"
|
||||
"DepotPath" "mods/"
|
||||
"recursive" "1"
|
||||
}
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "tiled/*"
|
||||
"DepotPath" "tiled/"
|
||||
"recursive" "1"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > depot_client_win32.vdf << EOF
|
||||
"DepotBuildConfig"
|
||||
{
|
||||
"DepotID" "367542"
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "win32/*"
|
||||
"DepotPath" "win32/"
|
||||
"recursive" "1"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > depot_client_win64.vdf << EOF
|
||||
"DepotBuildConfig"
|
||||
{
|
||||
"DepotID" "367543"
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "win64/*"
|
||||
"DepotPath" "win64/"
|
||||
"recursive" "1"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > depot_client_macos.vdf << EOF
|
||||
"DepotBuildConfig"
|
||||
{
|
||||
"DepotID" "367544"
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "osx/*"
|
||||
"DepotPath" "osx/"
|
||||
"recursive" "1"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > depot_client_linux.vdf << EOF
|
||||
"DepotBuildConfig"
|
||||
{
|
||||
"DepotID" "367545"
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "linux/*"
|
||||
"DepotPath" "linux/"
|
||||
"recursive" "1"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > app_build_client.vdf << EOF
|
||||
"appbuild"
|
||||
{
|
||||
"appid" "367540"
|
||||
"desc" "$CI_BUILD_REF"
|
||||
"buildoutput" "steambuild_output"
|
||||
"contentroot" "client_distribution"
|
||||
"setlive" "staging"
|
||||
"preview" "0"
|
||||
"local" ""
|
||||
|
||||
"depots"
|
||||
{
|
||||
"367541" "depot_client_main.vdf"
|
||||
"367542" "depot_client_win32.vdf"
|
||||
"367543" "depot_client_win64.vdf"
|
||||
"367544" "depot_client_macos.vdf"
|
||||
"367545" "depot_client_linux.vdf"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
$STEAM_CONTENTBUILDER_CMD +login "$STEAM_ACCOUNT" "$STEAM_PASSWORD" +run_app_build "`pwd`/app_build_client.vdf" +quit
|
||||
|
||||
cat > depot_server_main.vdf << EOF
|
||||
"DepotBuildConfig"
|
||||
{
|
||||
"DepotID" "532331"
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "assets/*"
|
||||
"DepotPath" "assets/"
|
||||
"recursive" "1"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > depot_server_win64.vdf << EOF
|
||||
"DepotBuildConfig"
|
||||
{
|
||||
"DepotID" "532332"
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "win64/*"
|
||||
"DepotPath" "win64/"
|
||||
"recursive" "1"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > depot_server_linux.vdf << EOF
|
||||
"DepotBuildConfig"
|
||||
{
|
||||
"DepotID" "532333"
|
||||
|
||||
"FileMapping"
|
||||
{
|
||||
"LocalPath" "linux/*"
|
||||
"DepotPath" "linux/"
|
||||
"recursive" "1"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > app_build_server.vdf << EOF
|
||||
"appbuild"
|
||||
{
|
||||
"appid" "532330"
|
||||
"desc" "$CI_BUILD_REF"
|
||||
"buildoutput" "steambuild_output"
|
||||
"contentroot" "server_distribution"
|
||||
"setlive" "staging"
|
||||
"preview" "0"
|
||||
"local" ""
|
||||
|
||||
"depots"
|
||||
{
|
||||
"532331" "depot_server_main.vdf"
|
||||
"532332" "depot_server_win64.vdf"
|
||||
"532333" "depot_server_linux.vdf"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
$STEAM_CONTENTBUILDER_CMD +login "$STEAM_ACCOUNT" "$STEAM_PASSWORD" +run_app_build "`pwd`/app_build_server.vdf" +quit
|
22
scripts/gitlab-ci/linux/build.sh
Normal file
22
scripts/gitlab-ci/linux/build.sh
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
rm -f CMakeCache.txt
|
||||
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DSTAR_ENABLE_STATIC_LIBGCC_LIBSTDCXX=ON \
|
||||
-DSTAR_USE_JEMALLOC=ON \
|
||||
-DSTAR_ENABLE_STEAM_INTEGRATION=ON \
|
||||
-DCMAKE_INCLUDE_PATH=../lib/linux/include \
|
||||
-DCMAKE_LIBRARY_PATH=../lib/linux \
|
||||
../source
|
||||
|
||||
make -j2
|
||||
|
||||
cd ..
|
||||
|
||||
mv dist linux_binaries
|
||||
cp lib/linux/*.so linux_binaries/
|
5
scripts/gitlab-ci/linux/run-client.sh
Normal file
5
scripts/gitlab-ci/linux/run-client.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd "`dirname \"$0\"`"
|
||||
|
||||
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./" ./starbound "$@"
|
22
scripts/gitlab-ci/linux/run-server.sh
Normal file
22
scripts/gitlab-ci/linux/run-server.sh
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd "`dirname \"$0\"`"
|
||||
|
||||
terms="
|
||||
x-terminal-emulator
|
||||
konsole
|
||||
gnome-terminal.wrapper
|
||||
xfce4-terminal.wrapper
|
||||
koi8rxterm
|
||||
lxterm
|
||||
uxterm
|
||||
xterm"
|
||||
|
||||
for term in $terms; do
|
||||
$term -e ./starbound_server $@
|
||||
if [ $? -eq 0 ]; then
|
||||
exit 0;
|
||||
fi
|
||||
done
|
||||
|
||||
exit 1
|
8
scripts/gitlab-ci/linux/sbinit.config
Normal file
8
scripts/gitlab-ci/linux/sbinit.config
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"assetDirectories" : [
|
||||
"../assets/",
|
||||
"../mods/"
|
||||
],
|
||||
|
||||
"storageDirectory" : "../storage/"
|
||||
}
|
8
scripts/gitlab-ci/linux/test.sh
Normal file
8
scripts/gitlab-ci/linux/test.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
cd linux_binaries
|
||||
|
||||
cp ../scripts/linux/sbinit.config .
|
||||
|
||||
./core_tests
|
||||
./game_tests
|
27
scripts/gitlab-ci/macos/Starbound.app/Contents/Info.plist
Normal file
27
scripts/gitlab-ci/macos/Starbound.app/Contents/Info.plist
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>Starbound</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>starbound</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.chucklefish</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>starbound</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>starbound</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>LSEnvironment</key>
|
||||
<dict>
|
||||
<key>MinimumSystemVersion</key>
|
||||
<string>10.9.0</string>
|
||||
</dict>
|
||||
<key>SDL_FILESYSTEM_BASE_DIR_TYPE</key>
|
||||
<string>parent</string>
|
||||
</dict>
|
||||
</plist>
|
Binary file not shown.
25
scripts/gitlab-ci/macos/build.sh
Normal file
25
scripts/gitlab-ci/macos/build.sh
Normal file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
rm -f CMakeCache.txt
|
||||
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DSTAR_ENABLE_STATIC_LIBGCC_LIBSTDCXX=ON \
|
||||
-DSTAR_USE_JEMALLOC=OFF \
|
||||
-DSTAR_ENABLE_STEAM_INTEGRATION=ON \
|
||||
-DSTAR_ENABLE_DISCORD_INTEGRATION=ON \
|
||||
-DCMAKE_INCLUDE_PATH=../lib/osx/include \
|
||||
-DCMAKE_LIBRARY_PATH=../lib/osx \
|
||||
-DCMAKE_OSX_SYSROOT=/ \
|
||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
|
||||
../source
|
||||
|
||||
make -j2
|
||||
|
||||
cd ..
|
||||
|
||||
mv dist macos_binaries
|
||||
cp lib/osx/*.dylib macos_binaries/
|
11
scripts/gitlab-ci/macos/run-server.sh
Normal file
11
scripts/gitlab-ci/macos/run-server.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
cd "`dirname \"$0\"`"
|
||||
|
||||
osascript <<END
|
||||
|
||||
tell application "Terminal"
|
||||
do script "cd \"`pwd`\";./starbound_server $@;exit"
|
||||
end tell
|
||||
|
||||
END
|
8
scripts/gitlab-ci/macos/sbinit.config
Normal file
8
scripts/gitlab-ci/macos/sbinit.config
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"assetDirectories" : [
|
||||
"../assets/",
|
||||
"../mods/"
|
||||
],
|
||||
|
||||
"storageDirectory" : "../storage/"
|
||||
}
|
9
scripts/gitlab-ci/macos/test.sh
Normal file
9
scripts/gitlab-ci/macos/test.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
cd macos_binaries
|
||||
|
||||
cp ../scripts/osx/sbinit.config .
|
||||
|
||||
./core_tests
|
||||
./game_tests
|
||||
|
43
scripts/gitlab-ci/repack_steamfree.sh
Normal file
43
scripts/gitlab-ci/repack_steamfree.sh
Normal file
|
@ -0,0 +1,43 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
mkdir client_win32_win64
|
||||
cp -r \
|
||||
client_distribution/assets \
|
||||
client_distribution/doc \
|
||||
client_distribution/mods \
|
||||
client_distribution/tiled \
|
||||
client_distribution/win32 \
|
||||
client_distribution/win64 \
|
||||
client_win32_win64
|
||||
|
||||
mkdir client_linux
|
||||
cp -r \
|
||||
client_distribution/assets \
|
||||
client_distribution/doc \
|
||||
client_distribution/mods \
|
||||
client_distribution/tiled \
|
||||
client_distribution/linux \
|
||||
client_linux
|
||||
|
||||
mkdir client_macos
|
||||
cp -r \
|
||||
client_distribution/assets \
|
||||
client_distribution/doc \
|
||||
client_distribution/mods \
|
||||
client_distribution/tiled \
|
||||
client_distribution/osx \
|
||||
client_macos
|
||||
|
||||
mkdir server_win64
|
||||
cp -r \
|
||||
server_distribution/assets \
|
||||
server_distribution/mods \
|
||||
server_distribution/win64 \
|
||||
server_win64
|
||||
|
||||
mkdir server_linux
|
||||
cp -r \
|
||||
server_distribution/assets \
|
||||
server_distribution/mods \
|
||||
server_distribution/linux \
|
||||
server_linux
|
25
scripts/gitlab-ci/windows32/build.bat
Normal file
25
scripts/gitlab-ci/windows32/build.bat
Normal file
|
@ -0,0 +1,25 @@
|
|||
set CMAKE_PREFIX_PATH="C:\Program Files\CMake"
|
||||
set PATH=%PATH%;%CMAKE_PREFIX_PATH%\bin;%QT_PREFIX_PATH%\bin
|
||||
|
||||
mkdir build
|
||||
cd build || exit /b 1
|
||||
|
||||
del /f CMakeCache.txt
|
||||
|
||||
cmake.exe ^
|
||||
-G"Visual Studio 14" ^
|
||||
-T"v140_xp" ^
|
||||
-DSTAR_ENABLE_STATIC_MSVC_RUNTIME=ON ^
|
||||
-DSTAR_ENABLE_STEAM_INTEGRATION=ON ^
|
||||
-DSTAR_ENABLE_DISCORD_INTEGRATION=ON ^
|
||||
-DCMAKE_INCLUDE_PATH="..\lib\windows32\include" ^
|
||||
-DCMAKE_LIBRARY_PATH="..\lib\windows32" ^
|
||||
..\source || exit /b 1
|
||||
|
||||
cmake.exe --build . --config RelWithDebInfo || exit /b 1
|
||||
|
||||
cd ..
|
||||
|
||||
move dist windows32_binaries || exit /b 1
|
||||
|
||||
copy lib\windows32\*.dll windows32_binaries\ || exit /b 1
|
14
scripts/gitlab-ci/windows32/sbinit.config
Normal file
14
scripts/gitlab-ci/windows32/sbinit.config
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"assetDirectories" : [
|
||||
"..\\assets\\",
|
||||
"..\\mods\\"
|
||||
],
|
||||
|
||||
"storageDirectory" : "..\\storage\\",
|
||||
|
||||
"defaultConfiguration" : {
|
||||
"gameServerBind" : "*",
|
||||
"queryServerBind" : "*",
|
||||
"rconServerBind" : "*"
|
||||
}
|
||||
}
|
8
scripts/gitlab-ci/windows32/test.bat
Normal file
8
scripts/gitlab-ci/windows32/test.bat
Normal file
|
@ -0,0 +1,8 @@
|
|||
cd windows32_binaries
|
||||
|
||||
set PATH="%PATH%;..\lib\windows32"
|
||||
|
||||
copy ..\scripts\windows\sbinit.config .
|
||||
|
||||
.\core_tests || exit /b 1
|
||||
.\game_tests || exit /b 1
|
30
scripts/gitlab-ci/windows64/build.bat
Normal file
30
scripts/gitlab-ci/windows64/build.bat
Normal file
|
@ -0,0 +1,30 @@
|
|||
set QT_PREFIX_PATH="C:\Qt\5.7\msvc2015_64"
|
||||
set CMAKE_PREFIX_PATH="C:\Program Files\CMake"
|
||||
set PATH=%PATH%;%CMAKE_PREFIX_PATH%\bin;%QT_PREFIX_PATH%\bin
|
||||
|
||||
mkdir build
|
||||
cd build || exit /b 1
|
||||
|
||||
del /f CMakeCache.txt
|
||||
|
||||
cmake.exe ^
|
||||
-G"Visual Studio 14 Win64" ^
|
||||
-T"v140" ^
|
||||
-DCMAKE_PREFIX_PATH=%QT_PREFIX_PATH% ^
|
||||
-DSTAR_USE_JEMALLOC=OFF ^
|
||||
-DSTAR_ENABLE_STEAM_INTEGRATION=ON ^
|
||||
-DSTAR_ENABLE_DISCORD_INTEGRATION=ON ^
|
||||
-DSTAR_BUILD_QT_TOOLS=ON ^
|
||||
-DCMAKE_INCLUDE_PATH="..\lib\windows64\include" ^
|
||||
-DCMAKE_LIBRARY_PATH="..\lib\windows64" ^
|
||||
..\source || exit /b 1
|
||||
|
||||
cmake.exe --build . --config RelWithDebInfo || exit /b 1
|
||||
|
||||
cd ..
|
||||
|
||||
move dist windows64_binaries || exit /b 1
|
||||
|
||||
windeployqt.exe windows64_binaries\mod_uploader.exe || exit /b 1
|
||||
|
||||
copy lib\windows64\*.dll windows64_binaries\ || exit /b 1
|
14
scripts/gitlab-ci/windows64/sbinit.config
Normal file
14
scripts/gitlab-ci/windows64/sbinit.config
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"assetDirectories" : [
|
||||
"..\\assets\\",
|
||||
"..\\mods\\"
|
||||
],
|
||||
|
||||
"storageDirectory" : "..\\storage\\",
|
||||
|
||||
"defaultConfiguration" : {
|
||||
"gameServerBind" : "*",
|
||||
"queryServerBind" : "*",
|
||||
"rconServerBind" : "*"
|
||||
}
|
||||
}
|
8
scripts/gitlab-ci/windows64/test.bat
Normal file
8
scripts/gitlab-ci/windows64/test.bat
Normal file
|
@ -0,0 +1,8 @@
|
|||
cd windows64_binaries
|
||||
|
||||
set PATH="%PATH%;..\lib\windows64"
|
||||
|
||||
copy ..\scripts\windows\sbinit.config .
|
||||
|
||||
.\core_tests || exit /b 1
|
||||
.\game_tests || exit /b 1
|
Loading…
Add table
Add a link
Reference in a new issue