1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-25 14:05:41 -05:00

Document distro support for precompiled binaries

This fixes #2273.
This commit is contained in:
Christian Duerr 2019-04-09 20:59:46 +00:00 committed by GitHub
parent 56fea343ff
commit 2b12b16678
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,12 +29,12 @@ elif [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$ARCH" != "i386" ]; then
# x86_64 # x86_64
docker run -v "$(pwd):/source" undeadleech/alacritty-ubuntu \ docker run -v "$(pwd):/source" undeadleech/alacritty-ubuntu \
/root/.cargo/bin/cargo build --release --manifest-path /source/Cargo.toml /root/.cargo/bin/cargo build --release --manifest-path /source/Cargo.toml
tar -cvzf "./target/deploy/${name}-x86_64.tar.gz" -C "./target/release/" "alacritty" tar -cvzf "./target/deploy/${name}-ubuntu_18_04-x86_64.tar.gz" -C "./target/release/" "alacritty"
# x86_64 deb # x86_64 deb
docker run -v "$(pwd):/source" undeadleech/alacritty-ubuntu \ docker run -v "$(pwd):/source" undeadleech/alacritty-ubuntu \
sh -c "cd /source && \ sh -c "cd /source && \
/root/.cargo/bin/cargo deb --no-build --output ./target/deploy/${name}_amd64.deb" /root/.cargo/bin/cargo deb --no-build --output ./target/deploy/${name}-ubuntu_18_04_amd64.deb"
# Make sure all files can be uploaded without permission errors # Make sure all files can be uploaded without permission errors
sudo chown -R $USER:$USER "./target" sudo chown -R $USER:$USER "./target"
@ -44,12 +44,12 @@ elif [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$ARCH" == "i386" ]; then
# i386 # i386
docker run -v "$(pwd):/source" undeadleech/alacritty-ubuntu-i386 \ docker run -v "$(pwd):/source" undeadleech/alacritty-ubuntu-i386 \
/root/.cargo/bin/cargo build --release --manifest-path /source/Cargo.toml /root/.cargo/bin/cargo build --release --manifest-path /source/Cargo.toml
tar -cvzf "./target/deploy/${name}-i386.tar.gz" -C "./target/release/" "alacritty" tar -cvzf "./target/deploy/${name}-ubuntu_18_04-i386.tar.gz" -C "./target/release/" "alacritty"
# i386 deb # i386 deb
docker run -v "$(pwd):/source" undeadleech/alacritty-ubuntu-i386 \ docker run -v "$(pwd):/source" undeadleech/alacritty-ubuntu-i386 \
sh -c "cd /source && \ sh -c "cd /source && \
/root/.cargo/bin/cargo deb --no-build --output ./target/deploy/${name}_i386.deb" /root/.cargo/bin/cargo deb --no-build --output ./target/deploy/${name}-ubuntu_18_04_i386.deb"
# Make sure all files can be uploaded without permission errors # Make sure all files can be uploaded without permission errors
sudo chown -R $USER:$USER "./target" sudo chown -R $USER:$USER "./target"