update dockerfile
This commit is contained in:
parent
45827f5124
commit
d725f2cd16
2 changed files with 3 additions and 22 deletions
11
Dockerfile
11
Dockerfile
|
@ -1,16 +1,5 @@
|
|||
FROM ekidd/rust-musl-builder
|
||||
|
||||
RUN sudo apt-get update -y && sudo apt-get install -y \
|
||||
cmake \
|
||||
libgles2-mesa-dev \
|
||||
libglew-dev \
|
||||
libglfw3-dev \
|
||||
libglm-dev \
|
||||
libgtk-3-dev
|
||||
|
||||
RUN git clone https://github.com/naelstrof/slop.git
|
||||
RUN (cd slop; cmake -DCMAKE_INSTALL_PREFIX="/usr" ./ && make && sudo make install)
|
||||
|
||||
COPY . ./
|
||||
RUN sudo chown -R rust:rust .
|
||||
|
||||
|
|
14
README.md
14
README.md
|
@ -3,18 +3,10 @@ screenshot
|
|||
|
||||
Screenshot-capturing utility.
|
||||
|
||||
Bindings for `slop` have been generated by `bindgen`.
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
You need `slop` (select operation, not the ruby one) installed in order to build this.
|
||||
|
||||
Make sure you have cargo installed. Then run
|
||||
|
||||
```
|
||||
cargo install --git https://github.com/iptq/screenshot
|
||||
```
|
||||
Check out the releases page.
|
||||
|
||||
Example Integration
|
||||
-------------------
|
||||
|
@ -22,7 +14,7 @@ Example Integration
|
|||
```bash
|
||||
#!/bin/bash
|
||||
SCREENSHOT=$HOME/.cargo/bin/screenshot
|
||||
$SCREENSHOT $1 --clip --output "$HOME/Screenshots/Screenshot_%Y%m%d-%H:%M:%S.png"
|
||||
$SCREENSHOT $1 --clipboard --output "$HOME/Screenshots/Screenshot_%Y%m%d-%H:%M:%S.png"
|
||||
```
|
||||
|
||||
Building from Source
|
||||
|
@ -41,4 +33,4 @@ Contact
|
|||
|
||||
Author: Michael Zhang
|
||||
|
||||
License: GNU GPL v3
|
||||
License: MIT
|
||||
|
|
Loading…
Reference in a new issue