Skip to content

Commit cf9b2d9

Browse files
committed
2 parents f022279 + 31f5db0 commit cf9b2d9

File tree

472 files changed

+60534
-21308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

472 files changed

+60534
-21308
lines changed

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ seeds/
44
models/
55
tmp/
66
map-rando-videos/
7-
map-rando-videos-pgdump/
7+
map-rando-videos-pgdump/
8+
asar/CMakeCache.txt

.github/workflows/rust_checks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: actions/checkout@v4
26+
with:
27+
submodules: 'true'
2628
- uses: dtolnay/rust-toolchain@stable
2729
- run: cargo fmt --check
2830
- run: cargo check --all

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ patches/mosaic
2222
**/out.perf-folded
2323
compressed_data/
2424
map-rando-videos/
25-
map-rando-videos-pgdump/
25+
map-rando-videos-pgdump/
26+
stats/

.gitmodules

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@
1111
branch = expanded
1212
[submodule "Mosaic"]
1313
path = Mosaic
14-
url = https://github.com/amoebaOfDoom/Mosaic
14+
url = https://github.com/blkerby/Mosaic
15+
[submodule "asar"]
16+
path = asar
17+
url = https://github.com/RPGHacker/asar.git
18+
[submodule "rust/lznint"]
19+
path = rust/lznint
20+
url = https://github.com/blkerby/lznint.git

CHANGELOG.html

Lines changed: 0 additions & 341 deletions
This file was deleted.

Dockerfile

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.79.0-bullseye AS build
1+
FROM rust:1.84.0-bullseye AS build
22

33
RUN apt-get update && apt-get install -y zstd
44

@@ -21,14 +21,17 @@ COPY rust/maprando-logic/Cargo.toml /rust/maprando-logic/Cargo.toml
2121
COPY rust/maprando/src/bin/dummy.rs /rust/maprando-logic/src/bin/dummy-logic.rs
2222
COPY rust/maprando-wasm/Cargo.toml /rust/maprando-wasm/Cargo.toml
2323
COPY rust/maprando/src/bin/dummy.rs /rust/maprando-wasm/src/bin/dummy-wasm.rs
24+
COPY rust/lznint/Cargo.toml /rust/lznint/Cargo.toml
25+
COPY rust/maprando/src/bin/dummy.rs /rust/lznint/src/bin/dummy-lznint.rs
26+
2427
RUN mkdir -p /rust/maprando-wasm/src && touch /rust/maprando-wasm/src/lib.rs
2528
RUN cargo build --release
2629
RUN rm /rust/src/*.rs
2730

2831
# Download the map datasets and Mosaic patches
2932
WORKDIR /
3033
COPY /scripts /scripts
31-
COPY /MOSAIC_COMMIT_ID /MOSAIC_COMMIT_ID
34+
COPY /MOSAIC_BUILD_ID /MOSAIC_BUILD_ID
3235
RUN bash /scripts/download_data.sh
3336

3437
# Now copy over the source code and build the real binary
@@ -39,8 +42,19 @@ RUN wasm-pack build --target="web" --release
3942
WORKDIR /rust
4043
RUN cargo build --release --bin maprando-web
4144

45+
# Test the correctness of the IPS patches
46+
FROM debian:bullseye AS ips-test
47+
RUN apt-get update && apt-get install -y g++ cmake python3
48+
COPY asar /asar
49+
WORKDIR /asar
50+
RUN cmake src && make
51+
WORKDIR /
52+
COPY scripts /scripts
53+
COPY patches /patches
54+
RUN python3 scripts/build_ips.py --assembler-path=/asar/asar/bin/asar --verify
55+
4256
# Now restart with a slim base image and just copy over the binary and data needed at runtime.
43-
FROM debian:buster-slim
57+
FROM debian:bullseye-slim
4458
RUN apt-get update && apt-get install -y \
4559
libssl1.1 \
4660
&& rm -rf /var/lib/apt/lists/*

MOSAIC_BUILD_ID

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
93f0be00-baa0-4ff9-a1c1-42eb3cb2ab40

MOSAIC_COMMIT_ID

Lines changed: 0 additions & 1 deletion
This file was deleted.

Mosaic

Submodule Mosaic updated 1894 files

0 commit comments

Comments
 (0)