Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
u8slvn committed Aug 30, 2024
1 parent 6a36a39 commit 08aff87
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<p align="center">
<a href="https://github.com/u8slvn/doggo/releases"><img alt="GitHub tag (with filter)" src="https://img.shields.io/github/v/release/u8slvn/doggo"></a>
<img src="https://img.shields.io/badge/python-3.12-blue" alt="Pypthon version">
<a href="https://github.com/u8slvn/doggo/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/u8slvn/doggo/ci.yml?label=CI" alt="CI"></a>
<a href="https://github.com/u8slvn/doggo/actions/workflows/ci.yaml"><img src="https://img.shields.io/github/actions/workflow/status/u8slvn/doggo/ci.yaml?label=CI" alt="CI"></a>
<a href="https://github.com/u8slvn/doggo/actions/workflows/release.yaml"><img src="https://img.shields.io/github/actions/workflow/status/u8slvn/doggo/release.yaml?label=Build" alt="Build"></a>
<a href="https://coveralls.io/github/u8slvn/doggo?branch=main"><img src="https://coveralls.io/repos/github/u8slvn/doggo/badge.svg?branch=main" alt="Coverage Status"></a>
<a href="https://app.codacy.com/gh/u8slvn/doggo/dashboard"><img src="https://img.shields.io/codacy/grade/359900931def4b2cba3552678519ce2e" alt="Code Quality"></a>
<a href="https://github.com/u8slvn/doggo"><img src="https://img.shields.io/github/license/u8slvn/doggo" alt="Project license"></a>
Expand All @@ -23,34 +24,40 @@ Here is a list of the dog states: *idle*, *idle and bark*, *walk*, *walk and bar
**Project context**: A colleague of mine wanted to have a dog, but he couldn't because of lots of reasons. So I decided to make him a virtual dog and it was the opportunity for me to play with Markov chains.

<p align="center">
📦<a href="https://github.com/u8slvn/doggo/releases">⇩ Download latest release ⇩</a>📦
📦 <a href="https://github.com/u8slvn/doggo/releases">⇩ Download latest release ⇩</a>📦
<br/>
<span style="font-style: italic; color: #888888;">Note: release binaries are generated from the <a href="https://github.com/u8slvn/doggo/actions/workflows/release.yaml">release workflow</a> and are unsigned. You may need to allow the execution of the binary in your system settings.</span>
</p>

## Run

**Doggo** use [poetry](https://python-poetry.org/) to manage dependencies and virtual environment.

```bash
poetry install
poetry run python -m doggo
```

### Interactions

The project is designed as a simple pet widget to keep on your desktop. It's an always-on-top borderless window, so you need to click on it to get the focus before interacting with it.

**Controls**:

* `ESC` to quit.
* `Left Click` to move the window around.

## Packaging
## Install and run

If you want to package the project locally, you can use the script in `scripts/build.py`. It uses [PyInstaller](https://www.pyinstaller.org/) under the hood. Don't hesitate to update the script to fit your needs.
Make sure you have Python 3.12 installed on your machine. **Doggo** use [poetry](https://python-poetry.org/) to manage dependencies and virtual environment, so you need to install it too. Then, you can run the following commands at the root of the project:

```bash
# Available os options: win32 , win64
poetry install
poetry run python -m doggo
```

## Build locally

If you want to build the project locally, you can use the script in `scripts/build.py`. It uses [PyInstaller](https://www.pyinstaller.org/) under the hood. Don't hesitate to update the script to fit your needs.

```bash
# Available os options: windows, linux, macos
poetry run python scripts/build.py --os <os>
```

The script will generate a `dist` folder at the root of the project with the executable inside.

## Development

For now, only one biome (mountain) is available. The feature to pick a biome randomly at start is already implemented, so I wish to add more in the future. Otherwise, I don't plan to add more features, like weathers or interactions, but the project is open to contributions. Just open a discussion before to make sure your idea fits the project.
Expand Down

0 comments on commit 08aff87

Please sign in to comment.