mirror of
https://gitea.tendokyu.moe/Dniel97/segatools.git
synced 2024-11-14 08:07:37 +01:00
update docker build system
This commit is contained in:
parent
87ecd639a2
commit
9e78d7fbc3
52
Dockerfile
52
Dockerfile
@ -1,56 +1,12 @@
|
|||||||
FROM fedora:31
|
FROM fedora:36
|
||||||
|
|
||||||
LABEL description="Build environment for segatools"
|
LABEL description="Build environment for segatools"
|
||||||
|
|
||||||
RUN yum -y install meson
|
RUN dnf -y install meson ninja-build make zip clang mingw64-gcc.x86_64 mingw32-gcc.x86_64 git
|
||||||
RUN yum -y install ninja-build
|
|
||||||
RUN yum -y install make
|
|
||||||
RUN yum -y install zip
|
|
||||||
RUN yum -y install clang
|
|
||||||
RUN yum -y install mingw64-gcc.x86_64
|
|
||||||
RUN yum -y install mingw32-gcc.x86_64
|
|
||||||
RUN yum -y install git
|
|
||||||
|
|
||||||
RUN mkdir /segatools
|
RUN mkdir /segatools
|
||||||
WORKDIR /segatools
|
WORKDIR /segatools
|
||||||
|
|
||||||
COPY aimeio aimeio
|
VOLUME [ "/segatools" ]
|
||||||
COPY amex amex
|
|
||||||
COPY board board
|
|
||||||
COPY chunihook chunihook
|
|
||||||
COPY chuniio chuniio
|
|
||||||
COPY cxbhook cxbhook
|
|
||||||
COPY cxbio cxbio
|
|
||||||
COPY dist dist
|
|
||||||
COPY divahook divahook
|
|
||||||
COPY divaio divaio
|
|
||||||
COPY carolhook carolhook
|
|
||||||
COPY carolio carolio
|
|
||||||
COPY doc doc
|
|
||||||
COPY hooklib hooklib
|
|
||||||
COPY iccard iccard
|
|
||||||
COPY idzhook idzhook
|
|
||||||
COPY idzio idzio
|
|
||||||
COPY mercuryhook mercuryhook
|
|
||||||
COPY mercuryio mercuryio
|
|
||||||
COPY jvs jvs
|
|
||||||
COPY minihook minihook
|
|
||||||
COPY mu3hook mu3hook
|
|
||||||
COPY mu3io mu3io
|
|
||||||
COPY pki pki
|
|
||||||
COPY platform platform
|
|
||||||
COPY gfxhook gfxhook
|
|
||||||
COPY reg reg
|
|
||||||
COPY spike spike
|
|
||||||
COPY subprojects subprojects
|
|
||||||
COPY util util
|
|
||||||
COPY CHANGELOG.md CHANGELOG.md
|
|
||||||
COPY cross-mingw-32.txt cross-mingw-32.txt
|
|
||||||
COPY cross-mingw-64.txt cross-mingw-64.txt
|
|
||||||
COPY Makefile Makefile
|
|
||||||
COPY meson.build meson.build
|
|
||||||
COPY Package.mk Package.mk
|
|
||||||
COPY precompiled.h precompiled.h
|
|
||||||
COPY README.md README.md
|
|
||||||
|
|
||||||
RUN make dist
|
ENTRYPOINT [ "make", "dist" ]
|
||||||
|
@ -13,19 +13,13 @@ if ERRORLEVEL 1 (
|
|||||||
goto failure
|
goto failure
|
||||||
)
|
)
|
||||||
|
|
||||||
docker create --name %CONTAINER_NAME% %IMAGE_NAME%
|
docker run -it --rm -v %~dp0:/segatools --name %CONTAINER_NAME% %IMAGE_NAME%
|
||||||
|
|
||||||
if ERRORLEVEL 1 (
|
if ERRORLEVEL 1 (
|
||||||
goto failure
|
goto failure
|
||||||
)
|
)
|
||||||
|
|
||||||
rd /s /q "!BUILD_OUTPUT_PATH!"
|
docker image rm -f %IMAGE_NAME%
|
||||||
mkdir "!BUILD_OUTPUT_PATH!"
|
|
||||||
|
|
||||||
docker cp %CONTAINER_NAME%:/segatools/build/zip %BUILD_OUTPUT_PATH%
|
|
||||||
|
|
||||||
docker rm -f %CONTAINER_NAME% > nul
|
|
||||||
docker image rm -f %IMAGE_NAME% > nul
|
|
||||||
|
|
||||||
goto success
|
goto success
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user