-
Notifications
You must be signed in to change notification settings - Fork 551
Convert bCNC to exe Setup File without any library #437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? 8000 Sign in to your account
Comments
Hi @MohamadAlsadi , try this: PRGPATH=os.path.abspath(os.path.dirname(__file__)) with this if getattr(sys, 'frozen', False):
# frozen
PRGPATH=os.path.abspath(os.path.dirname(sys.executable))
else:
# unfrozen
PRGPATH=os.path.abspath(os.path.dirname(__file__)) In this way I can build a really nice exe that seems to works, and could be added to the distribution. Here my setup.py import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["os"]}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup( name = "bCNC",
version = "0.1",
description = "Grbl sender and more",
options = {"build_exe": build_exe_options},
executables = [Executable("bCNC.py", base=base)]) and the I run python setup.py build Keep us posted about your test. |
Here it is @MohamadAlsadi , |
ok thank you @effer |
Wow, never hope this could work at first shot. A ready exe without dependency to install will be a nice addition for windows users |
@effer Does it require python to be installed? |
No On Sep 23, 2016 10:27 PM, "Vasilis Vlachoudis" notifications@github.com
|
Tested with a clean PC (Win10) from USB key. Anyway really a cool feature. @vlachoudis what you think about add a branch with the exe for windows? |
@effer is a good idea. How big is the executable? |
Executable itself 721 Kb. With all necessary library generated (dll,pyd etc) and bCNC stuff (icon, etc) we rise up to about 35Mb. |
Thank advanced to Effer 👍 . I search very much website to solve my issue, but unknow that I just copy everything from build folder to the main folder. Ha ha ha :) |
@Terminator88 you're welcome. |
@effer I have new issue, I unknow why, file .exe still run in process manager when I exit software. Do you have any solve for this ? |
@Terminator88 never see that. Are you using cx_freeze or py2exe? |
I use cx_freeze like you, I don't know why your software can complete shutdown, but my software is still run underground. |
@effer your exe is worked on my loptop. |
the exe has a small bug,it can't be closed by close button or exit button |
As a data point, since it sounds like there's a working .exe + a few support files pretty much ready to go, it probably wouldn't be very difficult to use something like NSIS to package it into a reasonable Windows .exe. That'd give people a simple install/uninstall process with sane defaults (eg install location). |
Hi folks, it would be nice to see bcnc4win with new updated features! |
Also there's some project called PyInstaller, It looks quite promissing. |
Thanks, I'll try my luck with this one! |
@FatNarval thanks. but note that you first have to get bCNC working on your machine, because these packagers will most likely get the needed libraries from your computer. |
I want to have exe for 0.9.15 release. is there somebody to prepare the build process? |
I can not do it, anyone else? |
There is now much easier way of installing bCNC on Windows: |
I've managed to build the .exe, you can try beta here: Build process seems to work well. You can expect similar build to be part of 0.9.15 release. |
Camera feature seems not to work at all . |
In Windows 7, when bCNC gui window is minimized to taskbar, while active dialog box/window of bcnc is active, bCNC keeps minimizing itself, effectively preventing itself from using again, until restarting it. |
@FatNarval Can you try to rebuild the .exe yourself? If you get non-exe bCNC working, it should be pretty easy to build using |
Travis now supports running on windows. Currently they don't have python support. But i guess they will add it in following months. That means we will be able to use travis cloud to automaticaly build and upload .exe of each release for us (since it will be possible to run make-exe.bat using travis) |
I've just realized that we might not need windows builds at all. We can just compile some kind of loader to that .exe and load the .py files using it... So there will be no need to rebuild the loader as long as there will be no changes to loader itself or the requirements. Some of the .py files are not compiled to .exe anyway (eg. plugins). So i think it would make sens to not compile any at all. |
No description provided.
The text was updated successfully, but these errors were encountered: