Skip to content

Commit

Permalink
v0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
buty4649 committed Dec 2, 2019
1 parent 6c26069 commit a309810
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,23 @@ FROM ubuntu:latest

RUN sed -i -e 's,archive.ubuntu.com,ja.archive.ubuntu.com,g' /etc/apt/sources.list
RUN apt-get update && \
apt-get install -y git cmake libfreetype6-dev libfontconfig1-dev xclip curl && \
apt-get install -y git cmake libfreetype6-dev libfontconfig1-dev curl python3 libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev && \
apt-get clean all && \
curl https://sh.rustup.rs -sSf | sh /dev/stdin -y
ENV PATH /root/.cargo/bin:$PATH
RUN rustup override set stable && \
rustup update stable && \
cargo install cargo-deb

ENV VERSION v0.3.2
#ENV VERSION v0.4.0
ENV COMMIT_ID b115b9038566d6ce0ed56f4a50c428c98e04b51a

RUN git clone --depth 1 --branch $VERSION https://github.com/jwilm/alacritty.git
RUN mkdir alacritty && cd alacritty && \
git init && \
git remote add origin https://github.com/jwilm/alacritty.git && \
git fetch origin $COMMIT_ID && \
git reset --hard FETCH_HEAD
WORKDIR alacritty
RUN sed -i \
-e 's!^\(version = ".\..\..\)"$!\1+vte"!g' \
-e 's!^vte = .*$!vte = { git = "https://github.com/amosbird/vte.git", branch= "patch-1" }!g' \
-e '/^debug =/d' Cargo.toml && \
cargo build --release && cargo deb
RUN sed -i -e 's!^\(version = ".\..\..\)"$!\1+vte"!g' alacritty/Cargo.toml && \
echo 'vte = { git = "https://github.com/buty4649/vte.git", branch= "more-osc-buffer" }' >> Cargo.toml && \
cargo build --release && cargo deb -p alacritty

0 comments on commit a309810

Please sign in to comment.