Cleans up publishing/building
This commit is contained in:
parent
2347533b9c
commit
e5d25559e9
20 changed files with 62 additions and 137 deletions
|
|
@ -2323,20 +2323,11 @@ namespace Server
|
|||
AcquireCompactInfo().m_Weight = weight;
|
||||
}
|
||||
|
||||
if (GetSaveFlag(flags, SaveFlag.Map))
|
||||
m_Map = reader.ReadMap();
|
||||
else
|
||||
m_Map = Map.Internal;
|
||||
m_Map = GetSaveFlag(flags, SaveFlag.Map) ? reader.ReadMap() : Map.Internal;
|
||||
|
||||
if (GetSaveFlag(flags, SaveFlag.Visible))
|
||||
SetFlag(ImplFlag.Visible, reader.ReadBool());
|
||||
else
|
||||
SetFlag(ImplFlag.Visible, true);
|
||||
SetFlag(ImplFlag.Visible, !GetSaveFlag(flags, SaveFlag.Visible) || reader.ReadBool());
|
||||
|
||||
if (GetSaveFlag(flags, SaveFlag.Movable))
|
||||
SetFlag(ImplFlag.Movable, reader.ReadBool());
|
||||
else
|
||||
SetFlag(ImplFlag.Movable, true);
|
||||
SetFlag(ImplFlag.Movable, !GetSaveFlag(flags, SaveFlag.Movable) || reader.ReadBool());
|
||||
|
||||
if (GetSaveFlag(flags, SaveFlag.Stackable))
|
||||
SetFlag(ImplFlag.Stackable, reader.ReadBool());
|
||||
|
|
@ -3614,7 +3605,7 @@ namespace Server
|
|||
}
|
||||
|
||||
[Flags]
|
||||
private enum SaveFlag
|
||||
private enum SaveFlag : uint
|
||||
{
|
||||
None = 0x00000000,
|
||||
Direction = 0x00000001,
|
||||
|
|
|
|||
14
README.md
14
README.md
|
|
@ -21,13 +21,8 @@ ModernUO [
|
||||
|
||||
#### Cleaning
|
||||
- `dotnet clean`
|
||||
|
||||
#### Publishing
|
||||
- Linux: `./Tools/publish-linux.sh` or `Tools/publish-linux.cmd`
|
||||
- OSX: `./Tools/publish-osx.sh` or `Tools/publish-osx.cmd`
|
||||
- Windows `./Tools/publish-windows.sh` or `Tools/publish-windows.cmd`
|
||||
`Tools/publish.sh <linux|osx|win> [Release|Debug]`
|
||||
|
||||
## Deploying / Running Server
|
||||
- Follow the [publish](https://github.com/modernuo/ModernUO#publishing-a-build) instructions
|
||||
|
|
@ -35,10 +30,6 @@ ModernUO [
|
||||
- Zlib
|
||||
- Linux: `apt get zlib` or equiv for that distribution
|
||||
- OSX: `brew install zlib`
|
||||
- Windows: Included during publishing
|
||||
- Optional: compile and install [Intel DRNG](https://github.com/modernuo/libdrng)
|
||||
|
||||
#### Windows
|
||||
|
|
@ -47,6 +38,9 @@ ModernUO [ ELSE (
|
||||
SET c = "-c %~2"
|
||||
)
|
||||
|
||||
IF "%~1" != "" (
|
||||
SET o = " -r %~1-x64"
|
||||
)
|
||||
|
||||
dotnet publish %c%%o% --self-contained=false
|
||||
1
Tools/publish.sh
Executable file
1
Tools/publish.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
Tools/publish.cmd "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue