Initial commit
This commit is contained in:
commit
553d041b91
|
@ -0,0 +1,3 @@
|
|||
[submodule "Cameo-mod"]
|
||||
path = Cameo-mod
|
||||
url = https://github.com/Zeruel87/Cameo-mod.git
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 094fcfdfabf65ef59e8d1e928267263d1e0ca666
|
|
@ -0,0 +1,20 @@
|
|||
FROM docker.io/mono:6.12.0
|
||||
|
||||
WORKDIR /workdir
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y apt-transport-https
|
||||
RUN apt-get install -y --allow-unauthenticated --no-install-recommends \
|
||||
ca-certificates zip file mono-devel libfreetype6 libopenal1 liblua5.1-0 libsdl2-2.0-0 \
|
||||
xdg-utils zenity wget make unzip python nsis imagemagick
|
||||
|
||||
RUN mkdir /dotnet
|
||||
WORKDIR /dotnet
|
||||
RUN wget https://download.visualstudio.microsoft.com/download/pr/ede8a287-3d61-4988-a356-32ff9129079e/bdb47b6b510ed0c4f0b132f7f4ad9d5a/dotnet-sdk-6.0.101-linux-x64.tar.gz -O /root/dotnet-sdk.tar.gz
|
||||
RUN tar xzf /root/dotnet-sdk.tar.gz
|
||||
|
||||
ENV PATH="${PATH}:/dotnet"
|
||||
ENV DOTNET_ROOT=/dotnet
|
||||
WORKDIR /workdir
|
||||
COPY build.sh /root/build.sh
|
||||
CMD /root/build.sh
|
|
@ -0,0 +1,41 @@
|
|||
This project is used to build Cameo using podman / docker.
|
||||
|
||||
It could be used to build any OpenRA mod which uses make and package-all.sh.
|
||||
|
||||
## Checking out the code
|
||||
|
||||
The actual Cameo source is a git submodule. If you are cloning this initially, use
|
||||
|
||||
```
|
||||
git clone --recurse-submodules https://gitea.burntworld.ca/kienan/cameo-build.git
|
||||
```
|
||||
|
||||
If you already have the source checked out:
|
||||
|
||||
```
|
||||
git submodule init
|
||||
```
|
||||
|
||||
### Updating the checked out Cameo mod code
|
||||
|
||||
```
|
||||
git submodule update
|
||||
```
|
||||
|
||||
## Building container image
|
||||
|
||||
```
|
||||
podman build -t cameo-build:latest
|
||||
```
|
||||
|
||||
## Building Cameo
|
||||
|
||||
```
|
||||
podman run -v $(pwd)/Cameo-mod:/workdir localhost/cameo-build:latest
|
||||
```
|
||||
|
||||
To build the release packages (exe, AppImage):
|
||||
|
||||
```
|
||||
podman run -v $(pwd)/Cameo-mod:/workdir -e RELEASE_VERSION=$(git --git-dir=Cameo-mod/.git --work-tree=Cameo-mod describe --tags) localhost/cameo-build:latest
|
||||
```
|
Loading…
Reference in New Issue