Skip to content
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? Sign in to your account

TURN THE SCIPT INTO EXE #609

Open
YAAASSS opened this issue Oct 11, 2024 · 4 comments
Open

TURN THE SCIPT INTO EXE #609

YAAASSS opened this issue Oct 11, 2024 · 4 comments

Comments

@YAAASSS
Copy link

YAAASSS commented Oct 11, 2024

Is your feature request related to a problem?

Hey, i tried to compile the run.py into an exe with pyinstaller. It doesn't seem to work because a missing "codes.txt" file.
Could you guys help me with that ?

Thanks
image

Proposed solution

add a codes.txt in dir

Alternatives you've considered

No response

Additional context

No response

@RonXTCdaBass
Copy link

i've gone another way.

make a batch file like "miner.bat" with simple lines:

@echo
start run.py
echo off

then i used a tool named "Bat_To_Exe_Converter".
for me it works fine. ^^

@YAAASSS
Copy link
Author

YAAASSS commented Oct 11, 2024

i've gone another way.

make a batch file like "miner.bat" with simple lines:

@echo
start run.py
echo off

then i used a tool named "Bat_To_Exe_Converter". for me it works fine. ^^

Does it run in background with no cli open ?

@RonXTCdaBass
Copy link

RonXTCdaBass commented Oct 11, 2024

i've gone another way.
make a batch file like "miner.bat" with simple lines:

@echo
start run.py
echo off

then i used a tool named "Bat_To_Exe_Converter". for me it works fine. ^^

Does it run in background with no cli open ?

you can simply add to the batch start "" /min - switch to run minimized.

BETTER Way to run it "hidden" using pythonw.exe instead of the standard python.exe.

Save the program with a .pyw extension and now it will open with pythonw.exe. No shell window.

For example, if you have run.py, you need to rename it to run.pyw.

@Tornhelm
Copy link

You can go even further using NSSM or the like and turn it into a service so it automatically runs at startup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants