Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Improve build scripts and readme (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
DEATHB4DEFEAT authored Jan 30, 2023
2 parents 0e22057 + c730aef commit 8d955d3
Show file tree
Hide file tree
Showing 11 changed files with 76 additions and 40 deletions.
29 changes: 21 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Parkstation

## Links

[Discord](https://discord.gg/49KeKwXc8g) | [Steam](https://store.steampowered.com/app/1255460/Space_Station_14/) | [Standalone Download](https://spacestation14.io/about/nightlies/)
Expand All @@ -8,21 +10,32 @@ We are happy to accept contributions from anybody. Get in Discord if you want to

## Building

Refer to [the space wizards guide](https://docs.spacestation14.io/getting-started/dev-setup) for general information about setting up a dev environment but keep in mind that Parkstation is a distant fork of space wizards' SS14 and not everything applies. We provide some scripts for making the job easier.

### Build dependencies

> - Git
> - .NET SDK 7.0 or higher
> - python 3.7 or higher

### Windows

> 1. Clone this repository.
> 2. Run `RUN_THIS.py` to init submodules and download the engine, or run `git submodule update --init --recursive` in a terminal.
> 3. Run the `scripts/bat/run1build.bat`
> 4. Run the `scripts/bat/run2config.bat`
> 5. Run both the `scripts/bat/run3server.bat` and `scripts/bat/run4client.bat`
> 6. Connect to the localhost and play.
> 3. Run the `Scripts/bat/run1buildDebug.bat`
> 4. Run the `Scripts/bat/run2configDev.bat` if you need other configurations run other config scripts.
> 5. Run both the `Scripts/bat/run3server.bat` and `Scripts/bat/run4client.bat`
> 6. Connect to localhost and play.
### Linux

> 1. Clone this repository.
> 2. Run `RUN_THIS.py` to init submodules and download the engine, or run `git submodule update --init --recursive` in a terminal.
> 3. Run the `scripts/sh/run1build.sh`
> 4. Run the `scripts/sh/run2config.sh`
> 5. Run both the `scripts/sh/run3server.bat` and `scripts/sh/run4client.sh`
> 6. Connect to the localhost and play.
> 3. Run the `Scripts/sh/run1buildDebug.sh`
> 4. Run the `Scripts/sh/run2configDev.sh` if you need other configurations run other config scripts.
> 5. Run both the `Scripts/sh/run3server.bat` and `scripts/sh/run4client.sh`
> 6. Connect to localhost and play.
## License

Expand Down
6 changes: 1 addition & 5 deletions Scripts/bat/run1buildDebug.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
@echo off
cd ../../
if exist sloth.txt (
call dotnet build -c Debug
) else (
exit
)
call dotnet build -c Debug
pause
6 changes: 1 addition & 5 deletions Scripts/bat/run1buildRelease.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
@echo off
cd ../../
if exist sloth.txt (
call dotnet build -c Release
) else (
exit
)
call dotnet build -c Release
pause
15 changes: 8 additions & 7 deletions Scripts/sh/run1buildDebug.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
cd ../../
if [ -e sloth.txt ]
then
dotnet build -c Debug
else
exit
#!/bin/env sh

# make sure running from root
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
fi
pause
cd ../..

dotnet build -c Debug
17 changes: 10 additions & 7 deletions Scripts/sh/run1buildRelease.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
cd ../../
if [ -e sloth.txt ]
then
dotnet build -c Release
else
exit
#!/bin/env sh

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
fi
pause

# make sure running from root
cd ../..

dotnet build -c Release
7 changes: 7 additions & 0 deletions Scripts/sh/run2configDev.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
#!/bin/env sh

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
fi

cp runconfigdev.toml ../../bin/Content.Server/server_config.toml
7 changes: 7 additions & 0 deletions Scripts/sh/run2configMap.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
#!/bin/env sh

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
fi

cp runconfigmap.toml ../../bin/Content.Server/server_config.toml
7 changes: 7 additions & 0 deletions Scripts/sh/run2configServer.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
#!/bin/env sh

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
fi

cp runconfigserver.toml ../../bin/Content.Server/server_config.toml
7 changes: 7 additions & 0 deletions Scripts/sh/run3server.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
#!/bin/env sh

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
fi

cd ../../bin/Content.Server
./Content.Server
7 changes: 7 additions & 0 deletions Scripts/sh/run4client.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
#!/bin/env sh

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
fi

cd ../../bin/Content.Client
./Content.Client
8 changes: 0 additions & 8 deletions sloth.txt

This file was deleted.

0 comments on commit 8d955d3

Please sign in to comment.