rdavydov / Twitch-Channel-Points-Miner-v2

[NEW] A simple script that will watch a stream for you and earn the channel points. A successor of Tkd-Alex's original repo.
GNU General Public License v3.0
1.24k stars 358 forks source link

TURN THE SCIPT INTO EXE #609

Open YAAASSS opened 4 weeks ago

YAAASSS commented 4 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 2 weeks ago

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