Skip to content

Commit e06c129

Browse files
committed
fix installer
1 parent d399976 commit e06c129

8 files changed

Lines changed: 21 additions & 10 deletions

File tree

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# ignore pycache folder no matter where it is
2-
__pycache__/
2+
/__pycache__/
33

4-
# ignore .spec files generated by pyinstaller
4+
# ignore files and folders generated by pyinstaller
55
*.spec
6+
build/
7+
dist/
8+
9+
# ignore nsis generated executable
10+
install_matrix_playground.exe

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ If you just wanna use it, go to the releases and download the installer, you don
1111
If you wanna edit/build it, read on.
1212

1313
# Dependencies
14-
- python 3
15-
- tkinter
14+
- python 3 (including tkinter)
1615
- numpy
1716
- jedi
1817

@@ -33,7 +32,7 @@ The functionality is split into a bunch of classes. Generally 1 class per file (
3332

3433
# Building an Installer
3534
- need the dependencies noted above as well as `pyinstaller` installed
36-
- run `create_installer.py` to create a standalone installer that you can distribute (this script uses pyinstaller first to create a standalone folder, then makes an installer from that folder)
35+
- run `create_installer.py` to create a standalone installer that you can distribute (this script uses pyinstaller first to create a standalone folder, then makes an installer from that folder). The installer is called `install_matrix_playground.exe` and is place at the root of the project folder.
3736

3837
# Acknowledgements
39-
Thanks to python, jedi (python smart autocomplete library), vscode, and anaconda for making developing this easy.
38+
Thanks to python, jedi (python smart autocomplete library), NSIS, vscode, and anaconda for making developing this easy.

create_installer.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@
2121
"pyinstaller",
2222
"--noconfirm",
2323
"--name=matrix_playground",
24+
"--icon=icon.ico",
2425
"main.py"
2526
],
2627
check=True,
2728
)
2829

30+
# copy commandinterpretter.py to dist/matrix_playground
31+
shutil.copy("commandinterpretter.py", "dist/matrix_playground")
32+
shutil.copy("icon.ico", "dist/matrix_playground")
33+
2934
# create installer
3035
subprocess.run('makensis build_installer.nsi', shell=True, check=True)
31-
32-
# copy commandinterpretter.py to dist/matrix_playground
33-
shutil.copy("commandinterpretter.py", "dist/matrix_playground")

icon.ico

4.19 KB
Binary file not shown.

icon.png

49.7 KB
Loading

installation_license.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
I'm not responsible for anything that results as a result of you using this software. Obviously, there is no malicious intent on my part, but all software has vulnerabilities that can be exposed by certain people.
1+
Hello! I hope you enjoy using this free software, I had fun making it.
2+
3+
Please note though that I'm not responsible for anything that results as a result of you using this software. Obviously, there is no malicious intent on my part, but all software has vulnerabilities that can be exposed by certain people.

main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
root = tk.Tk()
66
root.geometry("1024x768")
77
root.title("Matrix Playground")
8+
root.iconbitmap("icon.ico")
89

910
gui = GUI(root)
1011
gui.pack(fill=tk.BOTH, expand=True)

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
numpy
2+
jedi

0 commit comments

Comments
 (0)