1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Zip windows files for releases

This bundles the windows agent and exe together in a zip file to make
distribution for windows easier on the user.
This commit is contained in:
Christian Duerr 2019-01-24 21:38:11 +01:00
parent 77a10514ea
commit e49d6b1d76
No known key found for this signature in database
GPG key ID: 85CDAE3C164BA7B4
3 changed files with 17 additions and 11 deletions

View file

@ -166,11 +166,8 @@ nix-shell -A alacritty '<nixpkgs>'
#### Windows #### Windows
On windows you will need to have the `{architecture}-pc-windows-msvc` toolchain installed as well as [Clang 3.9 or greater](http://releases.llvm.org/download.html). On windows you will need to have the `{architecture}-pc-windows-msvc` toolchain
installed as well as [Clang 3.9 or greater](http://releases.llvm.org/download.html).
Alacritty requires winpty on windows to emulate UNIX's PTY API.
The agent is a single binary (`winpty-agent.exe`) which MUST be in the same directory as `alacritty.exe`.
It's included in binary releases and fetched by `build.rs` when compiled from source.
#### Other #### Other
@ -179,7 +176,7 @@ filling in this section of the README.
## Building ## Building
### Linux ### Linux / Windows
Once all the prerequisites are installed, compiling Alacritty should be easy: Once all the prerequisites are installed, compiling Alacritty should be easy:
@ -188,6 +185,7 @@ cargo build --release
``` ```
If all goes well, this should place a binary at `target/release/alacritty`. If all goes well, this should place a binary at `target/release/alacritty`.
On Windows this directory should also contain the `winpty-agent.exe`.
#### Desktop Entry #### Desktop Entry

View file

@ -79,11 +79,18 @@ nix-env -iA nixos.alacritty
brew cask install alacritty brew cask install alacritty
``` ```
Once the cask is installed, it is recommended to setup the [manual page](INSTALL.md#manual-page), [shell completions](INSTALL.md#shell-completions), and [terminfo definitions](INSTALL.md#terminfo). Once the cask is installed, it is recommended to setup the [manual page](INSTALL.md#manual-page),
[shell completions](INSTALL.md#shell-completions), and [terminfo definitions](INSTALL.md#terminfo).
### Other ### Other
Prebuilt binaries for Linux, macOS, and Windows can be downloaded from the [GitHub releases page](https://github.com/jwilm/alacritty/releases). Prebuilt binaries for Linux, macOS, and Windows can be downloaded from the
[GitHub releases page](https://github.com/jwilm/alacritty/releases).
To work properly on Windows, Alacritty requires winpty to emulate UNIX's PTY API.
The agent is a single binary (`winpty-agent.exe`) which **must** be in the same
directory as the Alacritty executable and is available through the
[GitHub releases page](https://github.com/jwilm/alacritty/releases).
## Configuration ## Configuration

View file

@ -55,8 +55,9 @@ elif [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$ARCH" == "i386" ]; then
# 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"
elif [ "$TRAVIS_OS_NAME" == "windows" ]; then elif [ "$TRAVIS_OS_NAME" == "windows" ]; then
mv "./target/release/alacritty.exe" "./target/deploy/${name}.exe" choco install 7zip
mv "./target/release/winpty-agent.exe" "./target/deploy/winpty-agent.exe" 7z a -tzip "./target/deploy/${name}-windows.zip" "./target/release/alacritty.exe" \
"./target/release/winpty-agent.exe"
fi fi
# Convert and add manpage if it changed # Convert and add manpage if it changed