update sbinit scripts
This commit is contained in:
parent
79cd235939
commit
a1bcfe5f35
22
scripts/ci/linux/build.sh
Normal file
22
scripts/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/ci/linux/run-client.sh
Normal file
5
scripts/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/ci/linux/run-server.sh
Normal file
22
scripts/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
|
9
scripts/ci/linux/sbinit.config
Normal file
9
scripts/ci/linux/sbinit.config
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"assetDirectories" : [
|
||||||
|
"./data/",
|
||||||
|
"../assets/",
|
||||||
|
"../mods/"
|
||||||
|
],
|
||||||
|
|
||||||
|
"storageDirectory" : "../storage/"
|
||||||
|
}
|
8
scripts/ci/linux/test.sh
Normal file
8
scripts/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/ci/macos/Starbound.app/Contents/Info.plist
Normal file
27
scripts/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>
|
BIN
scripts/ci/macos/Starbound.app/Contents/Resources/starbound.icns
Normal file
BIN
scripts/ci/macos/Starbound.app/Contents/Resources/starbound.icns
Normal file
Binary file not shown.
25
scripts/ci/macos/build.sh
Normal file
25
scripts/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/ci/macos/run-server.sh
Normal file
11
scripts/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
|
9
scripts/ci/macos/sbinit.config
Normal file
9
scripts/ci/macos/sbinit.config
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"assetDirectories" : [
|
||||||
|
"./data/",
|
||||||
|
"../assets/",
|
||||||
|
"../mods/"
|
||||||
|
],
|
||||||
|
|
||||||
|
"storageDirectory" : "../storage/"
|
||||||
|
}
|
9
scripts/ci/macos/test.sh
Normal file
9
scripts/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
|
||||||
|
|
32
scripts/ci/windows/build.bat
Normal file
32
scripts/ci/windows/build.bat
Normal 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
|
9
scripts/ci/windows/sbinit.config
Normal file
9
scripts/ci/windows/sbinit.config
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"assetDirectories" : [
|
||||||
|
".\\data\\",
|
||||||
|
"..\\assets\\",
|
||||||
|
"..\\mods\\"
|
||||||
|
],
|
||||||
|
|
||||||
|
"storageDirectory" : "..\\storage\\"
|
||||||
|
}
|
8
scripts/ci/windows/test.bat
Normal file
8
scripts/ci/windows/test.bat
Normal 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
|
Loading…
Reference in New Issue
Block a user