You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: autofill/readme.md
+30-26Lines changed: 30 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -8,43 +8,47 @@ This tool ingests XML files generated with this project's web component, and:
8
8
9
9
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.
10
10
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
12
15
* Download the latest Windows release from [the Releases tab](https://github.com/chilli-axe/mpc-autofill/releases),
13
16
* Move the executable file into the same directory as your XML order,
14
17
* 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.
16
19
17
-
# macOS and Linux Guide
20
+
###macOS and Linux
18
21
* 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
29
32
From the base repo directory:
30
33
*`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`,
*Build with PyInstaller - `pyinstaller autofill.spec`,
41
44
* The resultant executable will be in `/autofill/dist`.
42
45
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:
45
49
*`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`,
0 commit comments