Skip to content

Commit 9649fc0

Browse files
committed
Initial Commit
0 parents  commit 9649fc0

7 files changed

Lines changed: 603 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: SpacemanDMM
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
build-windows:
11+
runs-on: windows-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
submodules: recursive
16+
- name: "Apply Paradise Patches"
17+
run: |
18+
git config --global user.email "action@github.com"
19+
git config --global user.name "CI User"
20+
./apply_patches.sh
21+
shell: bash
22+
- name: Check (all features)
23+
uses: actions-rs/cargo@v1
24+
with:
25+
toolchain: stable
26+
command: check
27+
args: --manifest-path SpacemanDMM-Para/Cargo.toml --target x86_64-pc-windows-msvc
28+
- name: Build (release)
29+
uses: actions-rs/cargo@v1
30+
with:
31+
toolchain: stable
32+
command: build
33+
args: --manifest-path SpacemanDMM-Para/Cargo.toml --target x86_64-pc-windows-msvc --release
34+
- uses: actions/upload-artifact@v4
35+
with:
36+
name: dmm-tools-para.exe
37+
path: SpacemanDMM-Para/target/x86_64-pc-windows-msvc/release/dmm-tools.exe
38+
build-linux:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v2
42+
with:
43+
submodules: recursive
44+
- name: "Apply Paradise Patches"
45+
run: |
46+
git config --global user.email "action@github.com"
47+
git config --global user.name "CI User"
48+
./apply_patches.sh
49+
- name: Check (all features)
50+
uses: actions-rs/cargo@v1
51+
with:
52+
toolchain: stable
53+
command: check
54+
args: --manifest-path SpacemanDMM-Para/Cargo.toml --target x86_64-unknown-linux-gnu
55+
- name: Build (Debug) (all features)
56+
uses: actions-rs/cargo@v1
57+
with:
58+
toolchain: stable
59+
command: build
60+
args: --manifest-path SpacemanDMM-Para/Cargo.toml --target x86_64-unknown-linux-gnu
61+
- name: Run tests (all features)
62+
uses: actions-rs/cargo@v1
63+
with:
64+
toolchain: stable
65+
command: test
66+
args: --manifest-path SpacemanDMM-Para/Cargo.toml --target x86_64-unknown-linux-gnu
67+
- name: Build (release)
68+
uses: actions-rs/cargo@v1
69+
with:
70+
toolchain: stable
71+
command: build
72+
args: --manifest-path SpacemanDMM-Para/Cargo.toml --target x86-unknown-linux-gnu --release
73+
- uses: actions/upload-artifact@v4
74+
with:
75+
name: dmm-tools-para
76+
path: SpacemanDMM-Para/target/x86_64-unknown-linux-gnu/release/dmm-tools

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SpacemanDMM-Para
2+
SpacemanDMM-Raw

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "SpacemanDMM-Raw"]
2+
path = SpacemanDMM-Raw
3+
url = https://github.com/Spacemaniac/SpacemanDMM.git

README.MD

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# ParadiseSS13 SpacemanDMM
2+
3+
This repository holds ParadiseSS13 modifications of [SpacemanDMM](https://github.com/Spacemaniac/SpacemanDMM).
4+
5+
This works by keeping a folder of Paradise patches to be applied, and applies it to a specific version tag of SpacemanDMM. This reduces our need for major reworks to code, as we can just use patches to achieve what we need without cluttering the main tree.
6+
7+
## License
8+
9+
The license for SpacemanDMM itself can be found on the main repo. Code for the Paradise modifications falls under the same license.
10+
11+
## How to (Compiling)
12+
13+
1. You **must** have a copy of `Git Bash` or some other bash emulator on windows, and a git identity set up. This will not work otherwise.
14+
2. Run the `apply_patches.sh` file to autocreate a clone of `SpacemanDMM`, and apply the patches to it.
15+
3. Cd into `SpacemanDMM-Para` and build as normal.
16+
17+
## How to (Developing)
18+
19+
1. You **must** have a copy of `Git Bash` or some other bash emulator on windows, and a git identity setup. This will not work otherwise.
20+
2. Run the `apply_patches.sh` file to autocreate a clone of `SpacemanDMM`, and apply the patches to it.
21+
3. Open the folder called `SpacemanDMM-Para` inside an IDE of your choice. Make your edits in here.
22+
4. Save your edits as a single commit inside `SpacemanDMM-Para`. Do not push changes. **Do not modify `SpacemanDMM-Raw`**.
23+
5. Run the `rebuild_patches.sh` script to convert your commit into a patch that will be saved in the `paradise-sdmm-patches` directory.
24+
25+
## Credits
26+
27+
- Spacemaniac for the original SDMM code.
28+
- SpigotMC for the patching logic.

0 commit comments

Comments
 (0)