Skip to content

Commit 5f833eb

Browse files
Update README.md
1 parent 6537d3e commit 5f833eb

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

README.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,16 @@ Minimalistic text editor created with Python and Tkinter. If you need to write s
1111
- Portable
1212

1313
## === How to compile ===
14-
To compile use [Nuitka](https://nuitka.net/) (Python code to C code converter, which then uses the default C compiler in your OS to build the program):
14+
To compile you need to install [Nuitka](https://nuitka.net/) (Python code to C code converter, which uses the default C compiler in your OS to build the program):
15+
- For standard build run
1516
```
16-
python -m nuitka aurora_text_editor.py
17-
```
18-
And then use [UPX](https://upx.github.io/) to decrease file size:
19-
```
20-
upx aurora_text_editor.exe
17+
build.bat
2118
```
2219

23-
For standalone EXE and portability change the **Nuitka Python to C compiler options** section in the source code file to this:
20+
- For standalone build run:
2421
```
25-
# <--- Nuitka Python to C compiler options
26-
# nuitka-project: --disable-console
27-
# nuitka-project: --lto=yes
28-
# nuitka-project: --enable-plugin=tk-inter
29-
# nuitka-project: --onefile
30-
# --->
22+
build_standalone.bat
3123
```
32-
And again execute 2 previous commands.
3324

3425
## === Why? ===
3526
Consider this program as a lesson for those who want to write their own text editor or other GUI program using Python and Tkinter. Enjoy!

0 commit comments

Comments
 (0)