From b34d3169e4f332061281a9a3acfd54547974ed94 Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Fri, 7 Jul 2023 18:20:43 -0700 Subject: [PATCH] chore: remove Snapcraft starship distribution (#5296) --- README.md | 2 -- snapcraft.yaml | 91 -------------------------------------------------- 2 files changed, 93 deletions(-) delete mode 100644 snapcraft.yaml diff --git a/README.md b/README.md index de6ce0b7..bd9423b8 100644 --- a/README.md +++ b/README.md @@ -223,7 +223,6 @@ Alternatively, install Starship using any of the following package managers: | **_Any_** | **[crates.io]** | `cargo install starship --locked` | | _Any_ | [conda-forge] | `conda install -c conda-forge starship` | | _Any_ | [Linuxbrew] | `brew install starship` | -| _Any_ | [Snapcraft] | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages] | `apk add starship` | | Arch Linux | [Arch Linux Extra] | `pacman -S starship` | | CentOS 7+ | [Copr] | `dnf copr enable atim/starship`
`dnf install starship` | @@ -458,7 +457,6 @@ This project is [ISC](https://github.com/starship/starship/blob/master/LICENSE) [nixpkgs]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix [pkgsrc]: https://pkgsrc.se/shells/starship [scoop]: https://github.com/ScoopInstaller/Main/blob/master/bucket/starship.json -[snapcraft]: https://snapcraft.io/starship [termux]: https://github.com/termux/termux-packages/tree/master/packages/starship [void linux packages]: https://github.com/void-linux/void-packages/tree/master/srcpkgs/starship [winget]: https://github.com/microsoft/winget-pkgs/tree/master/manifests/s/Starship/Starship diff --git a/snapcraft.yaml b/snapcraft.yaml deleted file mode 100644 index 13b0be2c..00000000 --- a/snapcraft.yaml +++ /dev/null @@ -1,91 +0,0 @@ -name: starship -base: core20 -adopt-info: starship -summary: The minimal, blazing-fast, and infinitely customizable prompt for any shell! -description: | - Starship is the minimal, blazing fast, and extremely customizable prompt - for any shell! The prompt shows information you need while you're working, - while staying sleek and out of the way. - - ## Prerequisites - - A Powerline font installed and enabled in your terminal (for example, try Fira Code). - * https://github.com/powerline/fonts - * https://github.com/tonsky/FiraCode - - ## Getting Started - - Add the init script to your shell's config file: - ### Bash - - Add the following to the end of ~/.bashrc: - - `eval "$(starship init bash)"` - - ### Fish - - Add the following to the end of ~/.config/fish/config.fish: - - # ~/.config/fish/config.fish - - starship init fish | source - - ### Zsh - - Add the following to the end of ~/.zshrc: - - eval "$(starship init zsh)" - - ### Powershell - - Add the following to the end of ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 (or ~/.config/powershell/Microsoft.PowerShell_profile.ps1 on -Nix): - - `Invoke-Expression (&starship init powershell)` - - ### Xonsh - - Add the following to the end of ~/.xonshrc: - - execx($(starship init xonsh)) - -grade: stable -confinement: strict - -parts: - starship: - plugin: rust - source: https://github.com/starship/starship.git - #source-tag: v$SNAPCRAFT_PROJECT_VERSION - build-packages: - - cmake - - pkg-config - override-build: | - last_committed_tag="$(git describe --tags --abbrev=0)" - last_committed_tag_ver="$(echo ${last_committed_tag} | sed 's/v//')" - last_released_tag="$(snap info $SNAPCRAFT_PROJECT_NAME | awk '$1 == "beta:" { print $2 }')" - # If the latest tag from the upstream project has not been released to - # beta, build that tag instead of master. - if [ "${last_committed_tag_ver}" != "${last_released_tag}" ]; then - git fetch - git checkout "${last_committed_tag}" - cd ../src - git checkout "${last_committed_tag}" - fi - snapcraftctl build - snapcraftctl set-version $(git -C ../src describe --tags | sed 's/v//') - -apps: - starship: - command: bin/starship - plugs: - - home - - removable-media - - personal-files - -architectures: - - build-on: amd64 - - build-on: arm64 - - build-on: armhf - - build-on: i386 - - build-on: ppc64el - - build-on: s390x