Skip to content

Commit

Permalink
more clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
DivingDuck committed Dec 26, 2023
1 parent 162e68f commit f67d3fb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,23 +225,25 @@ CMD
```cmd
> git clone https://github.com/kliment/Printrun.git
> cd Printrun
> git submodule update --init --recursive
> release_windows.bat
```
PowerShell:
```ps
> git clone https://github.com/kliment/Printrun.git
> cd Printrun
> git submodule update --init --recursive
> ./release_windows.bat
```
The script above will clone this repository and the submodule PrintrunGTK3. The script 'release_windows.bat' will install a virtual environment named v3, download all needed python libraries and compile the binaries for Pronterface.exe and Pronsole.exe.
You will find the files in the new created directory 'dist'. You will find further and more detailed information in the script release_windows.bat. Further information for the linked submodul: [PrintrunGTK3](https://github.com/DivingDuck/PrintrunGTK3)
The script above will clone this repository. The script `release_windows.bat` will install a virtual environment named v3, download all needed python libraries and compile the binaries for Pronterface.exe and Pronsole.exe.
You will find the files in the new created directory `dist`. You will find further and more detailed information in the script `release_windows.bat`.
Run Pronterface or Pronsole from the binary files or from source calling pronterface.py for the GUI version and pronsole.py for the commandline version.
Run 'release_windows.bat' when ever you make changes or updates. With each new run it will compile the binaries and update all involved libraries in the virtual environment if needed. Delete the virtual environment if you have problems with it. Use 'git submodule update --init --recursive' for updating the submodule
Running Pronsole works best by running it in WindowsTerminal. You can create a desktop shortcut link to the file pronsole.exe. Then edit the target for your shortcut as shown in belows example:
`%LocalAppData%\Microsoft\WindowsApps\wt.exe --title Pronsole %USERPROFILE%\Downloads\pronterface-test\pronsole.exe`
You need to adjust the path to your location of pronsole.exe.
Run 'release_windows.bat' when ever you make changes or updates. With each new run it will compile the binaries and update all involved libraries in the virtual environment if needed. Delete the virtual environment if you have problems with it.
# USING PRINTRUN
Expand Down
16 changes: 12 additions & 4 deletions buildinstructions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ python3 -m venv v3
. ./v3/bin/activate
pip install --upgrade pip
pip install --upgrade setuptools
pip install cffi
pip install -r requirements.txt
pip install cython
python setup.py build_ext --inplace
Expand Down Expand Up @@ -38,17 +37,21 @@ setup on windows:
(install python 3.10)
(install python extension compile environment, see https://wiki.python.org/moin/WindowsCompilers )
(install git)
(for further informations pls. see script file release_windows.bat where we implemented
an automated build for windows)
git clone http://github.com/kliment/Printrun.git
cd Printrun
git submodule update --init --recursive
git pull
\path\to\python3\python -m venv v3
v3\Scripts\activate
pip install --upgrade pip
pip install --upgrade setuptools
pip install cffi
pip install -r requirements.txt
pip install wheel
pip install cython
pip install -r requirements.txt
pip install simplejson
pip install pypiwin32
pip install polygon3 * please see remark
python setup.py build_ext --inplace

for running:
Expand All @@ -58,3 +61,8 @@ for packaging:
pip install pyinstaller
pyi-makespec -F --add-data images/*;images --add-data *.png;. --add-data *.ico;. -w -i pronterface.ico pronterface.py
pyinstaller --clean pronterface.spec -y

Remark:
The library polygon is free for non commercial use. You can build Pronterface without
this library but then it will run slower.
Please find further details here: https://pypi.org/project/Polygon3/

0 comments on commit f67d3fb

Please sign in to comment.