Skip to content

Commit 36a8f68

Browse files
author
arch
committed
add windows build files
1 parent 0a6443d commit 36a8f68

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ A Python program to quickly create prototype algorithms to partially automate th
1111

1212
## Build
1313

14-
### Windows (currently not working)
14+
### Windows
1515

16-
Use `pyinstaller` in anaconda environment:
16+
Use `pyinstaller` in anaconda environment with all required packages set up:
1717

1818
```
1919
pip install pyinstaller
20-
pyinstaller --onefile main.py
20+
pyinstaller --hidden-import "pynput.keyboard._win32" --hidden-import "pynput.mouse._win32" main.py
2121
```
2222

23+
NOTE: don't use `--onefile`, this is way to slow
24+
2325
### Pip-Package (Recommend for Linux)
2426

2527
Generate distribution package of this project. These are archives that can be uploaded to an local Package Index and can be installed by pip.

assets/mpv-1.dll

69.2 MB
Binary file not shown.

build.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@echo off
2+
rmdir /Q /S "build" >/NUL
3+
rmdir /Q /S "dist/funscript-editor" >NUL
4+
del funscript-editor.spec >NUL
5+
pyinstaller --add-data="funscript_editor/config/*;funscript_editor/config" --hidden-import "pynput.keyboard._win32" --hidden-import "pynput.mouse._win32" funscript-editor.py
6+
xcopy /s "assets" "dist/funscript-editor"

funscript-editor.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/env python3
2+
3+
from funscript_editor.__main__ import main
4+
5+
if __name__ == '__main__':
6+
main()

0 commit comments

Comments
 (0)