L1nkZ / rpatchur

A customizable, cross-platform patcher for Ragnarok Online clients.
https://l1nkz.github.io/rpatchur/
Apache License 2.0
50 stars 34 forks source link

Docker build process #12

Closed Kokotewa closed 3 years ago

Kokotewa commented 3 years ago

Simplified the build process with Docker containers. This has a number of benefits, notably:

Example usage

koko@swarm1:~/rpatchur$ docker run -it -v /home/koko/rpatchur:/rpatchur rpatchur
    Updating crates.io index
  Downloaded miow v0.2.1
  Downloaded pkg-config v0.3.19
  Downloaded ppv-lite86 v0.2.10
...
  Downloaded 154 crates (13.3 MB) in 2.94s (largest was `winapi-x86_64-pc-windows-gnu` at 2.9 MB)
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.48
...
   Compiling hyper-tls v0.4.3
   Compiling reqwest v0.10.8
    Finished release [optimized] target(s) in 5m 59s

koko@swarm1:~/rpatchur$ ls target/x86_64-pc-windows-gnu/release/rpatchur.exe
target/x86_64-pc-windows-gnu/release/rpatchur.exe
Kokotewa commented 3 years ago

It is notable that due to a limitation in mxre/winres, cross platform linux build for Windows will fail to have the Runtime icon.

L1nkZ commented 3 years ago

Thanks for your contribution. I took the liberty of fixing the Dockerfile and also updated the main README.md to mention the presence of your Dockerfile.

It is notable that due to a limitation in mxre/winres, cross platform linux build for Windows will fail to have the Runtime icon.

Right, I added a note about that.

I'll merge.