|
7 | 7 |
|
8 | 8 | Hello. Welcome to the source repo for Kaplan Desktop. It’s been in the works for quite some time and it is exciting to go out and show it to fellow linguists. Please do not hesitate to reach out to contact@kaplan.pro should you have any inquiries. |
9 | 9 |
|
10 | | -The documentation for the app itself is available [here](https://kaplan.pro/#/docs). |
| 10 | +The documentation for the app itself is available [here](https://kaplan.pro/docs). |
11 | 11 |
|
12 | 12 | ## Installation |
13 | 13 | There are a few options: |
@@ -43,41 +43,25 @@ This is by far the most efficient method and the steps are more or less the same |
43 | 43 | > |
44 | 44 | > pip install pyinstaller |
45 | 45 |
|
46 | | -6. Create a .spec file for pyinstaller: |
| 46 | +6. Have pyinstaller build the backend Django server: |
47 | 47 |
|
48 | | - > pyi-makespec --name=backend manage.py |
| 48 | + > pyinstaller --name=backend --hidden-import backend.urls --distpath ../app --clean --noconfirm manage.py |
49 | 49 |
|
50 | | -7. Open the backend.spec file with a text editor and change two lines: |
| 50 | +7. Install yarn. |
51 | 51 |
|
52 | | - > hiddenimports=['api.urls'], |
53 | | - > |
54 | | - > . |
55 | | - > |
56 | | - > . |
57 | | - > |
58 | | - > excludes=['db-sqlite3'], |
59 | | -
|
60 | | -8. We’re ready to have pyinstaller build the executable: |
61 | | - |
62 | | - > pyinstaller --clean --noconfirm backend.spec |
63 | | -
|
64 | | - This will create a folder called “backend” under /backend/dist/ Move this folder to the /app/ directory. |
65 | | - |
66 | | -9. Install yarn. |
67 | | - |
68 | | -10. Navigate to /app/ and have yarn install the Nodejs libraries: |
| 52 | +8. Navigate to /app/ and have yarn install the Nodejs libraries: |
69 | 53 |
|
70 | 54 | > yarn install |
71 | 55 |
|
72 | | -11. (Windows-specific step) Remove the following line from package.json |
| 56 | +9. (Windows-specific step) Remove the following line from package.json |
73 | 57 |
|
74 | 58 | > "executableName": "kaplan-desktop", |
75 | 59 |
|
76 | | -12. Have yarn build the executable: |
| 60 | +10. Have yarn build the executable: |
77 | 61 |
|
78 | 62 | > yarn make |
79 | 63 |
|
80 | | -13. The resulting executable(s) will be under /app/out/ |
| 64 | +11. The resulting executable(s) will be under /app/out/ |
81 | 65 |
|
82 | 66 | ## Links: |
83 | 67 | 1. [Kaplan Homepage](https://kaplan.pro) |
|
0 commit comments