update sbinit scripts

This commit is contained in:
Kae 2024-03-07 13:56:23 +11:00
parent 79cd235939
commit a1bcfe5f35
30 changed files with 196 additions and 0 deletions

22
scripts/ci/linux/build.sh Normal file
View 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/

View File

@ -0,0 +1,5 @@
#!/bin/sh
cd "`dirname \"$0\"`"
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./" ./starbound "$@"

View 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

View File

@ -0,0 +1,9 @@
{
"assetDirectories" : [
"./data/",
"../assets/",
"../mods/"
],
"storageDirectory" : "../storage/"
}

8
scripts/ci/linux/test.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/sh -e
cd linux_binaries
cp ../scripts/linux/sbinit.config .
./core_tests
./game_tests

View 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>

25
scripts/ci/macos/build.sh Normal file
View 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/

View 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

View File

@ -0,0 +1,9 @@
{
"assetDirectories" : [
"./data/",
"../assets/",
"../mods/"
],
"storageDirectory" : "../storage/"
}

9
scripts/ci/macos/test.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh -e
cd macos_binaries
cp ../scripts/osx/sbinit.config .
./core_tests
./game_tests

View File

@ -0,0 +1,32 @@
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 17 2022" ^
-T"v143" ^
-DCMAKE_PREFIX_PATH=%QT_PREFIX_PATH% ^
-DSTAR_USE_JEMALLOC=OFF ^
-DSTAR_ENABLE_STEAM_INTEGRATION=ON ^
-DSTAR_ENABLE_DISCORD_INTEGRATION=ON ^
-DSTAR_BUILD_QT_TOOLS=OFF ^
-DCMAKE_INCLUDE_PATH="..\lib\windows\include" ^
-DCMAKE_LIBRARY_PATH="..\lib\windows" ^
..\source || exit /b 1
cmake.exe --build . --config RelWithDebInfo || exit /b 1
cd ..
move dist windows_binaries || exit /b 1
if exist windows_binaries\mod_uploader.exe (
windeployqt.exe windows_binaries\mod_uploader.exe || exit /b 1
)
copy lib\windows\*.dll windows_binaries\ || exit /b 1

View File

@ -0,0 +1,9 @@
{
"assetDirectories" : [
".\\data\\",
"..\\assets\\",
"..\\mods\\"
],
"storageDirectory" : "..\\storage\\"
}

View File

@ -0,0 +1,8 @@
cd windows_binaries
set PATH="%PATH%;..\lib\windows"
copy ..\scripts\windows\sbinit.config .
.\core_tests || exit /b 1
.\game_tests || exit /b 1