forked from extern/httpie-cli
dd2c9513f3
* Single binary executables / DEB packages. * Attach single binary executables to the releases
1.8 KiB
1.8 KiB
HTTPie on Snapcraft
Welcome to the documentation about packaging HTTPie for Snapcraft.
- If you do not know HTTPie, have a look here.
- If you are looking for HTTPie installation or upgrade instructions on Snapcraft, then you can find them on that page (that one for macOS).
- If you are looking for technical information about the HTTPie packaging on Snapcraft, then you are in a good place.
About
This document contains technical details, where we describe how to create a patch for the latest HTTPie version for Snapcraft. They apply to Snapcraft on Linux, macOS, and Windows. We will discuss setting up the environment, installing development tools, installing and testing changes before submitting a patch downstream.
Overall process
Trigger the Release on Snap
action, which will
create a snap package for HTTPie and then push it to Snap Store in the following channels:
- Edge
- Beta
- Candidate
- Stable
If a push to any of them fail, all the release tasks for the following channels will be cancelled so that the release manager can look into the underlying cause.
Hacking
Launch the docker image:
docker pull ubuntu/latest
docker run -it --rm ubuntu/latest
From inside the container:
# Clone
git clone --depth=1 https://github.com/httpie/httpie.git
cd httpie
# Build
export SNAPCRAFT_BUILD_ENVIRONMENT_CPU=8
export SNAPCRAFT_BUILD_ENVIRONMENT_MEMORY=16G
snapcraft --debug
# Install
sudo snap install --dangerous httpie_XXX_amd64.snap
# Test
httpie.http --version
httpie.https --version
# Auto-aliases cannot be tested when installing a snap outside the store.
# http --version
# https --version
# Remove
sudo snap remove httpie