Skip to content

Commit

Permalink
Feat: upgrade cod4x to 20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Aug 9, 2021
1 parent 8dfdfaa commit a2bc623
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@ RUN dpkg --add-architecture i386 && \
apt-get -qq update && \
apt-get -qq install -y nasm:i386 build-essential gcc-multilib g++-multilib paxctl wget
WORKDIR /cod4
ARG COD4X_VERSION=20.0
ARG COD4X_VERSION=20.1
RUN wget -qO- https://github.com/callofduty4x/CoD4x_Server/archive/${COD4X_VERSION}.tar.gz | \
tar -xz --strip-components=1 && \
sed -i 's/LINUX_LFLAGS=/LINUX_LFLAGS=-static /' makefile && \
make

FROM --platform=${BUILDPLATFORM} alpine:${ALPINE_VERSION} AS downloader
WORKDIR /tmp
ARG COD4X_VERSION=20.0
ARG COD4X_VERSION=20.1
RUN apk add --update --no-cache -q --progress unzip && \
wget -qO cod4x_server-linux.zip https://cod4x.me/downloads/cod4x_server-linux_${COD4X_VERSION}.zip && \
unzip -q cod4x_server-linux.zip -d . && \
rm cod4x_server-linux.zip && \
apk del unzip && \
dirname="cod4x_server-linux_${COD4X_VERSION}" && \
dirname="cod4x_server-linux_20.0" && \
mv \
${dirname}/cod4x-linux-server/main/xbase_00.iwd \
${dirname}/cod4x-linux-server/main/jcod4x_00.iwd \
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Call of duty 4 dedicated server in a 24MB Docker image
## Requirements

- COD4 Client game
- COD4 running on version 1.7 have to [update to 1.8-20.0](#update-your-game)
- COD4 running on version 1.7 have to [update to 1.8-20.1](#update-your-game)
- Original COD4 **main** and **zone** files required (from the client installation directory)

## Features
Expand Down Expand Up @@ -106,10 +106,10 @@ By default, the container runs with an HTTP file server for mods and usermaps on
## Update your game
1. Make sure you updated your game to version 1.7 first (see [this](https://cod4x.me/index.php?/forums/topic/12-how-to-install-cod4x/))
1. Download the [COD4x client ZIP file](https://cod4x.me/downloads/cod4x_client_20_0.zip)
1. Using Winrar / 7Zip / Winzip, extract **cod4x_client_20_0.zip** to your COD4 game directory
1. Go in the extracted directory *cod4-client-manualinstall_20.0* and double click on **install.cmd**
1. When launching the multiplayer game, you should see at the bottom right `20.0`
1. Download the [COD4x client ZIP file](https://cod4x.me/downloads/cod4x_client_20_1.zip)
1. Using Winrar / 7Zip / Winzip, extract **cod4x_client_20_1.zip** to your COD4 game directory
1. Go in the extracted directory *cod4-client-manualinstall_20.1* and double click on **install.cmd**
1. When launching the multiplayer game, you should see at the bottom right `20.1`
## Testing
Expand Down
6 changes: 3 additions & 3 deletions steam.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@ RUN dpkg --add-architecture i386 && \
apt-get -qq update && \
apt-get -qq install -y nasm:i386 build-essential gcc-multilib g++-multilib paxctl wget
WORKDIR /cod4
ARG COD4X_VERSION=20.0
ARG COD4X_VERSION=20.1
RUN wget -qO- https://github.com/callofduty4x/CoD4x_Server/archive/${COD4X_VERSION}.tar.gz | \
tar -xz --strip-components=1 && \
make

FROM --platform=${BUILDPLATFORM} alpine:${ALPINE_VERSION} AS downloader
WORKDIR /tmp
ARG COD4X_VERSION=20.0
ARG COD4X_VERSION=20.1
RUN apk add --update --no-cache -q --progress unzip && \
wget -qO cod4x_server-linux.zip https://cod4x.me/downloads/cod4x_server-linux_${COD4X_VERSION}.zip && \
unzip -q cod4x_server-linux.zip -d . && \
rm cod4x_server-linux.zip && \
apk del unzip && \
dirname="cod4x_server-linux_${COD4X_VERSION}" && \
dirname="cod4x_server-linux_20.0" && \
mv \
${dirname}/cod4x-linux-server/main/xbase_00.iwd \
${dirname}/cod4x-linux-server/main/jcod4x_00.iwd \
Expand Down

0 comments on commit a2bc623

Please sign in to comment.