Skip to content

Commit aaf5f56

Browse files
authored
improved desktop client docs
1 parent 363ffb7 commit aaf5f56

File tree

1 file changed

+30
-26
lines changed

1 file changed

+30
-26
lines changed

autofill/readme.md

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,47 @@ This tool ingests XML files generated with this project's web component, and:
88

99
Once the autofilling process completes, you can either complete and pay for your order or save it to your MPC account to purchase/modify later.
1010

11-
# Windows Guide
11+
By default, the tool will upload the order as a new MPC project. The tool also supports continuing with saved MPC projects - run the program with the command line argument `--skipsetup` to use this functionality. You will be prompted to log into MPC, navigate to a saved project, and continue editing it before the program will continue.
12+
13+
## User Guide
14+
### Windows
1215
* Download the latest Windows release from [the Releases tab](https://github.com/chilli-axe/mpc-autofill/releases),
1316
* Move the executable file into the same directory as your XML order,
1417
* Double-click the executable to run. If you have multiple XML files in the directory, you will be prompted to select one.
15-
* If text doesn't seem to render properly (bold text and progress bars don't work), try right-clicking on the window, opening Properties, and setting the font to `Cascadia Mono`.
18+
* If text doesn't seem to render properly (bold text and progress bars don't work), try right-clicking on the window, opening Properties, and setting the font to `Cascadia Mono`. You may also want to configure `cmd.exe` to default to this font.
1619

17-
# macOS and Linux Guide
20+
### macOS and Linux
1821
* Download the latest macOS or Linux release from [the Releases tab](https://github.com/chilli-axe/mpc-autofill/releases),
19-
* Your computer will probably not recognise the file as an executable, preventing you from double-clicking it on macOS and from running it in the Terminal in Linux. Fixing this is easy:
20-
* Move the file to your desktop,
21-
* Open the Terminal (on macOS, this is located under Applications/Utilities),
22-
* Run the following command: `chmod +x autofill`, which marks the file as an executable,
23-
* You can now run the tool in macOS by double-clicking on it and in Linux with `./autofill` in the Terminal.
24-
* [This guide by Apple](https://support.apple.com/en-au/guide/terminal/apdd100908f-06b3-4e63-8a87-32e71241bab4/mac) has further information on the topic.
25-
* You may have issues with running the executable on older versions of macOS [due to a limitation of PyInstaller](https://stackoverflow.com/questions/49908236/pyinstaller-executable-fails-on-old-os-x). GitHub is configured to compile the tool for Windows, macOS, and Linux (Ubuntu) on the latest available versions.
26-
27-
# Developer Guide
28-
## Running the Source Code
22+
* Move the executable file into the same directory as your XML order,
23+
* Your computer will probably not recognise the file as an executable, preventing you from double-clicking it on macOS and from running it in the Terminal in Linux. [This guide by Apple](https://support.apple.com/en-au/guide/terminal/apdd100908f-06b3-4e63-8a87-32e71241bab4/mac) has further information on the topic. Fixing it is easy:
24+
* Open the Terminal (on macOS, this is located in `Applications/Utilities`),
25+
* Navigate to the directory you moved the executable to (using `cd` - for example, if you moved it to your desktop, run `cd ~/Desktop`),
26+
* Run the following command: `chmod +x autofill` (this marks the file as an executable),
27+
* You can now run the tool in macOS by double-clicking on it and in Linux by running `./autofill` in the Terminal. If you have multiple XML files in the directory, you will be prompted to select one.
28+
* You may have issues with running the executable on older versions of macOS [due to a limitation of PyInstaller](https://stackoverflow.com/questions/49908236/pyinstaller-executable-fails-on-old-os-x). GitHub is configured to compile the tool for Windows, macOS, and Linux (Ubuntu) on the latest available version of each operating system.
29+
30+
## Developer Guide
31+
### Running the Source Code
2932
From the base repo directory:
3033
* `cd autofill`,
31-
* activate virtual environment or create one with `venv`,
32-
* `pip install -r requirements.txt`,
33-
* `python autofill.py`.
34+
* Activate virtual environment or create one with `venv`,
35+
* Install requirements - `pip install -r requirements.txt`,
36+
* Run the tool - `python autofill.py`.
3437

35-
## Packaging with PyInstaller
38+
### Packaging with PyInstaller
3639
From the base repo directory:
3740
* `cd autofill`,
38-
* activate virtual environment or create one with `venv`,
39-
* `pip install -r requirements.txt`,
40-
* pyinstaller autofill.spec,
41+
* Activate virtual environment or create one with `venv`,
42+
* Install requirements - `pip install -r requirements.txt`,
43+
* Build with PyInstaller - `pyinstaller autofill.spec`,
4144
* The resultant executable will be in `/autofill/dist`.
4245

43-
## Running the Test Suite
44-
This may take a short while as a couple of tests run complete orders with MPC. From the base repo directory:
46+
### Running the Test Suite
47+
Two tests in `src/tests.py` (at the bottom of the file) are marked as skip as they don't work consistently in GitHub Actions. I suggest commenting out the `pytest.mark.skip()` lines when running tests on your machine to run these. Note that they can take a couple of minutes to run as they put through small orders with MPC.
48+
From the base repo directory:
4549
* `cd autofill`,
46-
* activate virtual environment or create one with `venv`,
47-
* `pip install -r requirements.txt`,
50+
* Activate virtual environment or create one with `venv`,
51+
* Install requirements - `pip install -r requirements.txt`,
4852
* `cd src`,
49-
* `coverage run -m pytest tests.py`,
50-
* Optionally report on code coverage: `coverage report`.
53+
* Run tests - `coverage run -m pytest tests.py`,
54+
* Report on code coverage: `coverage report`.

0 commit comments

Comments
 (0)