diff --git a/.github/workflows/release-snapcraft.yml b/.github/workflows/release-snapcraft.yml deleted file mode 100644 index 419e404e7f..0000000000 --- a/.github/workflows/release-snapcraft.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Publish Ignite to Snapcraft - -on: - release: - types: [ published ] - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true - -jobs: - publish-snap: - runs-on: ubuntu-latest - - steps: - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: 'stable' - - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Update snapcraft.yaml - run: | - make snapcraft version=${GITHUB_REF#refs/tags/} - - - name: Build snap package - uses: snapcore/action-build@v1 - id: build-snap - with: - path: "packaging/snap" - - - name: Publish snap package - uses: snapcore/action-publish@v1 - with: - store_login: ${{ secrets.SNAPCRAFT_LOGIN }} - snap: ${{ steps.build-snap.outputs.snap }} - release: stable diff --git a/Makefile b/Makefile index 97c9fc3848..f634d9c875 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ PROJECT_NAME = ignite DATE := $(shell date '+%Y-%m-%dT%H:%M:%S') HEAD = $(shell git rev-parse HEAD) -LD_FLAGS = +LD_FLAGS = BUILD_FLAGS = -mod=readonly -ldflags='$(LD_FLAGS)' BUILD_FOLDER = ./dist @@ -20,10 +20,6 @@ build: @-mkdir -p $(BUILD_FOLDER) 2> /dev/null @go build $(BUILD_FLAGS) -o $(BUILD_FOLDER) ./... -## prepare snapcraft config for release -snapcraft: - @sed -i 's/{{version}}/'$(version)'/' packaging/snap/snapcraft.yaml - ## mocks: generate mocks mocks: @echo Generating mocks diff --git a/changelog.md b/changelog.md index 28e722c100..b2960bb818 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,10 @@ ## Unreleased +### Informational + +From this version on, Snapcraft support has been removed. Please migrate to [Homebrew](https://brew.sh/) for a better experience. Homebrew works for both macOS and GNU/Linux. + ## [`v29.4.1`](https://github.com/ignite/cli/releases/tag/v29.4.1) ### Changes diff --git a/docs/docs/01-welcome/02-install.md b/docs/docs/01-welcome/02-install.md index 854a603ad1..7c6c98431f 100644 --- a/docs/docs/01-welcome/02-install.md +++ b/docs/docs/01-welcome/02-install.md @@ -42,12 +42,6 @@ To install the latest version of Ignite use [HomeBrew](https://formulae.brew.sh/ brew install ignite ``` -Or use Snap on GNU/Linux: - -```sh -snap install ignite --classic -``` - ### Install manually Alternatively, you can install the latest version of the `ignite` binary use the following command: @@ -57,7 +51,7 @@ curl https://get.ignite.com/cli! | bash ``` This command invokes `curl` to download the installation script and pipes the output to `bash` to perform the -installation. The `ignite` binary is installed in `/usr/local/bin`. +installation. The `ignite` binary is installed in `/usr/local/bin`. Ignite CLI installation requires write permission to the `/usr/local/bin/` directory. If the installation fails because you do not have write permission to `/usr/local/bin/`, run the following command: @@ -100,7 +94,7 @@ To remove the current Ignite CLI installation: Depending on your user permissions, run the command with or without `sudo`. 3. Repeat this step until all `ignite` installations are removed from your system. -After all existing Ignite CLI installations are removed, follow the [Installing Ignite CLI](#installing-ignite-cli) +After all existing Ignite CLI installations are removed, follow the [Installing Ignite CLI](#installing-ignite-cli) instructions. For details on version features and changes, see diff --git a/docs/versioned_docs/version-v29/01-welcome/02-install.md b/docs/versioned_docs/version-v29/01-welcome/02-install.md index 854a603ad1..7c6c98431f 100644 --- a/docs/versioned_docs/version-v29/01-welcome/02-install.md +++ b/docs/versioned_docs/version-v29/01-welcome/02-install.md @@ -42,12 +42,6 @@ To install the latest version of Ignite use [HomeBrew](https://formulae.brew.sh/ brew install ignite ``` -Or use Snap on GNU/Linux: - -```sh -snap install ignite --classic -``` - ### Install manually Alternatively, you can install the latest version of the `ignite` binary use the following command: @@ -57,7 +51,7 @@ curl https://get.ignite.com/cli! | bash ``` This command invokes `curl` to download the installation script and pipes the output to `bash` to perform the -installation. The `ignite` binary is installed in `/usr/local/bin`. +installation. The `ignite` binary is installed in `/usr/local/bin`. Ignite CLI installation requires write permission to the `/usr/local/bin/` directory. If the installation fails because you do not have write permission to `/usr/local/bin/`, run the following command: @@ -100,7 +94,7 @@ To remove the current Ignite CLI installation: Depending on your user permissions, run the command with or without `sudo`. 3. Repeat this step until all `ignite` installations are removed from your system. -After all existing Ignite CLI installations are removed, follow the [Installing Ignite CLI](#installing-ignite-cli) +After all existing Ignite CLI installations are removed, follow the [Installing Ignite CLI](#installing-ignite-cli) instructions. For details on version features and changes, see diff --git a/packaging/readme.md b/packaging/readme.md index 825d7eeeb4..ff5999c0cb 100644 --- a/packaging/readme.md +++ b/packaging/readme.md @@ -1,34 +1,13 @@ # Packaging and Distributing Ignite -Ignite CLI is distributed on multiple platforms and package managers. This document describes how to package and distribute Ignite CLI. - -## Snap - -Read the following resources to understand Snap. - -* -* -* - -```bash -cd packaging/snap -sudo apt install snapd -sudo snap install multipass -multipass launch -SNAPCRAFT_BUILD_ENVIRONMENT=multipass snapcraft -snap install ignite_0.0.0_amd64.snap --dangerous --classic -``` - -For building, from snapcraft 8, use `SNAPCRAFT_REMOTE_BUILD_STRATEGY=force-fallback snapcraft remote-build`. - -A [github action](../.github/workflows/release-binary.yml) is used to build and publish the Snap at each release. +Ignite CLI is distributed on package managers. This document describes how to package and distribute Ignite CLI. ## HomeBrew Read the following resources to understand HomeBrew. -* -* +- +- ```bash HOMEBREW_NO_INSTALL_FROM_API=1 brew install --interactive ignite diff --git a/packaging/snap/snapcraft.yaml b/packaging/snap/snapcraft.yaml deleted file mode 100644 index 7edd9f7ea3..0000000000 --- a/packaging/snap/snapcraft.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: ignite -base: core22 # the base snap is the execution environment for this snap -version: "{{version}}" -summary: Build, launch, and maintain any crypto application with Ignite CLI # 79 char long summary -description: | - Ignite CLI offers everything you need to build, test, and launch your blockchain with a decentralized worldwide community. Ignite CLI is built on top of Cosmos SDK, the world's most popular blockchain framework. - Ignite CLI accelerates chain development by scaffolding everything you need so you can focus on business logic. - -grade: stable # must be 'stable' to release into candidate/stable channels -confinement: classic - -architectures: - - build-on: amd64 - - build-on: arm64 - -parts: - ignite: - plugin: go - source: https://github.com/ignite/cli.git - source-tag: v{{version}} - source-subdir: ignite/cmd/ignite - build-snaps: - - go - -apps: - ignite: - command: bin/ignite diff --git a/readme.md b/readme.md index bd39d73044..08e0e0c000 100644 --- a/readme.md +++ b/readme.md @@ -48,12 +48,6 @@ Install Ignite using [Homebrew](https://formulae.brew.sh/formula/ignite) on macO brew install ignite ``` -Or using Snap on GNU/Linux: - -```sh -snap install ignite --classic -``` - Or manually using the following command: ```sh