Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Apr 15, 2024
1 parent e0d5b38 commit e3b4781
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"label": "Build ReDeathmatch Image",
"type": "docker-build",
"dockerBuild": {
"context": "${workspaceFolder}/.vscode/",
"context": "${workspaceFolder}/",
"tag": "redeathmatch:${input:mod}",
"buildArgs": {
"MOD": "${input:mod}"
Expand Down
25 changes: 20 additions & 5 deletions .vscode/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,26 @@ RUN releaseLink=$(GetGithubReleaseUrl "s1lentq/reapi" "latest") \
&& curl -sSL ${releaseLink} | bsdtar -xf - --exclude='*.dll' --exclude='*.pdb' addons/

# Inltall ReDeathmatch
ARG ReDeathmatch_Version="latest"
RUN if [ "${#ReDeathmatch_Version}" -gt 0 ]; then \
releaseLink=$(GetGithubReleaseUrl "ReDeathmatch/ReDeathmatch_AMXX" ${ReDeathmatch_Version}) \
&& curl -sSL ${releaseLink} | bsdtar -xf - --strip-components=1 cstrike/ ;\
fi
# ARG ReDeathmatch_Version="latest"
# RUN if [ "${#ReDeathmatch_Version}" -gt 0 ]; then \
# releaseLink=$(GetGithubReleaseUrl "ReDeathmatch/ReDeathmatch_AMXX" ${ReDeathmatch_Version}) \
# && curl -sSL ${releaseLink} | bsdtar -xf - --strip-components=1 cstrike/ ;\
# fi

COPY cstrike .

WORKDIR /root/hlds/cstrike/addons/amxmodx/scripting/

SHELL ["/bin/bash", "-c"]
RUN compile() { \
sourcefile=$1 \
amxxfile="$(echo $sourcefile | sed -e 's/\.sma$/.amxx/')" \
output_path="../plugins/$amxxfile" \
# mkdir -p $(dirname $output_path) \
echo -n "Compiling $sourcefile ... "; \
} \
&& export -f compile \
&& ls -la && find * -type f -name "*.sma" -exec bash -c 'compile "$0"' {} \;

ARG YaPB_URL="https://github.com/yapb/yapb/releases/download/4.4.957/yapb-4.4.957-linux.tar.xz"
RUN curl -sSL ${YaPB_URL} | bsdtar -xf - addons/ \
Expand Down

0 comments on commit e3b4781

Please sign in to comment.