Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

Commit a8ff1a3

Browse files
minyakunga
minya
authored andcommitted
macOS and Linux install instructions (#36)
1 parent 5fba0db commit a8ff1a3

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,36 @@
99

1010
## Install
1111

12+
### Windows
1213
1. You should have git and Visual Studio or MSBuild Tools installed
1314
2. Download zip from https://github.com/skbkontur/cement/releases/latest
1415
3. Unzip and run `dotnet\install.cmd`
1516
4. Restart terminal
1617
5. Command `cm` shows you available commands in any directory
1718

19+
### macOS
20+
1. You should have git and mono (5 or above) installed
21+
2. Download zip from https://github.com/skbkontur/cement/releases/latest
22+
3. Unzip and run `./install.sh` from the dotnet directory
23+
4. Either add `~/bin/` to your `PATH` variable or run `alias cm='mono ~/bin/dotnet/cm.exe'`
24+
5. Run `cm` to see the list of commands
25+
26+
### Linux
27+
Here is a Dockerfile example of how to get Ubuntu image with cement installed
28+
```Dockerfile
29+
FROM ubuntu
30+
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
31+
RUN echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | tee /etc/apt/sources.list.d/mono-official.list
32+
RUN apt-get update
33+
RUN apt-get install -y mono-devel git wget
34+
RUN cd ~
35+
RUN git clone https://github.com/skbkontur/cement.git ~/cement
36+
RUN wget -O ~/cement/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
37+
RUN mkdir ~/bin
38+
RUN cd ~/cement && mono nuget.exe restore -OutputDir packages/ && msbuild /p:Configuration=Release
39+
RUN mono ~/bin/dotnet/cm.exe reinstall
40+
```
41+
1842
## Work with cement
1943

2044
Use `cm help` to view [all cement commands](README-commands.md#commands).

files-common/install.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
rm -rf ~/.cement
4+
rm -rf ~/bin/dotnet
5+
cp -R ../dotnet ~/bin/dotnet
6+
mono cm.exe reinstall

0 commit comments

Comments
 (0)