Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add snap support #146

Merged
merged 3 commits into from
Apr 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,7 @@ authkey_pypi

fctest.py
.vscode
samples
samples

# Snap
*.snap
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@

- [x] Flatpak support

- [x] Add Snap support

- [x] Add Windows support.

- [x] Detect Window Manager/Desktop Environment version
Expand All @@ -62,8 +64,6 @@

- [ ] Add more distributions (If your distro is not supported open an issue)

- [ ] Add Snap support

- [ ] Add support for desktop icon use

- [ ] More CPUs, ex. Pentium, Older AMD CPUs
Expand All @@ -77,6 +77,10 @@ NOTE: you need neofetch to be also installed for this to work.
On Arch Linux install this package for the git version: [fetchcord-git](https://aur.archlinux.org/packages/fetchcord-git/)

Do note that this version is directly from master, for the stable release use [pip](#via-pip)
#### Via Snap
On systems with snap installed, you can run `sudo snap install fetchcord --classic` to install fetchcord.

Note that like the AUR version, this version is directly from master, for the stable release use [pip](#via-pip) <!-- remove this if you're not automatically deploying it -->
#### Via pip
To Install fetchcord via pip you can run `pip3 install fetchcord`

Expand Down
24 changes: 24 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: fetchcord
version: git # By specifying git for the version, the current git tag or commit will be used as the version string. Versions carry no semantic meaning in snaps. This can be changed to a normal version number if desired.
summary: FetchCord
grade: stable
description: |
FetchCord grabs your OS info and displays it as Discord Rich Presence
base: core18
confinement: classic

parts:
fetchcord:
plugin: python
python-version: python3
source: .
stage-packages:
- neofetch
python-packages:
- pypresence
- psutil
- importlib-resources

apps:
fetchcord:
command: bin/fetchcord