Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
Fixes #26
  • Loading branch information
Raymo111 committed Aug 17, 2023
1 parent f9a35eb commit 0a6985c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,24 @@
CharaChorder's all-in-one desktop app, supporting Linux, Windows, and MacOS.

## Build
1. Get Python 3.11 (using [pyenv](https://github.com/pyenv/pyenv) recommended)
1. Get Python >=3.11 (using [pyenv](https://github.com/pyenv/pyenv) recommended)
2. Clone and build
```
```sh
git clone https://github.com/CharaChorder/nexus
cd nexus/
python dist.py -nd
```
With the `-n` and `-d` flags, `dist.py` automatically detects your OS, sets up a virtualenv in the root directory of the repo (if not provided one via args), installs requirements, converts UI files to Python, sets up git hooks, and installs the nexus module locally.

To develop, you can now run it from within the virtualenv (activate it first) using the `python -m nexus <args>` command.

## Installation
```sh
python dist.py
```
Running `dist.py` without any args detects your OS, sets up a virtualenv, installs reqs, converts UI files, and generates a platform-dependent executable in the `dist/` directory.

Note: the CI-generated binaries (in releases) don't work at the moment (see [#6 CI doesn't work](https://github.com/CharaChorder/nexus/issues/6)).
`dist.py` sets up a virtualenv in the root directory of the repo, and generates a platform-dependent executable in the `dist/` directory.

## Usage
```
Expand Down
4 changes: 3 additions & 1 deletion dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
parser = argparse.ArgumentParser(description="Build Nexus")
parser.add_argument('-n', "--no-build", action="store_true", help="Skip building the executable, only setup")
parser.add_argument('-d', "--devel", action="store_true", help="Install module locally and git hooks")
parser.add_argument('-u', "--ui-only", action="store_true", help="Only convert ui files")
parser.add_argument('-u', "--ui-only", action="store_true", help="Only convert ui files"
"(you must first have set up a venv and installed the"
"requirements to run this)")
parser.add_argument("--venv-path", type=str, help="[Relative] path to virtual environment to use")
args = parser.parse_args()

Expand Down

0 comments on commit 0a6985c

Please sign in to comment.