-
Notifications
You must be signed in to change notification settings - Fork 6
Build Program
jlw4049 edited this page Jul 19, 2022
·
3 revisions
- List of required files
- Latest version of Python (Python 3.8.8 (or under to maintain windows 7/8 support))
- Something to build the program, I use Pyinstaller
- Open CMD Prompt and use run command
pip install PyInstaller
to install Pyinstaller
- Open CMD Prompt and use run command
-
Install requirements with the command
pip install -r /path/to/requirements.txt
-
With all the required files/programs installed correctly you can use your favorite terminal to build the program
- Navigate to
FFMPEG Audio Encoder
folder in what ever terminal/console you are using - Your directory should look like this https://i.imgur.com/UYXCi0E.png
- You'll then run the command
pyinstaller -F --add-data "C:\Users\USERNAME\AppData\Local\Programs\Python\Python38\Lib\site-packages\pymediainfo\MediaInfo.dll";. -w --onefile --icon="LOCATION TO\icon.ico" "LOCATION TO\FFMPEGAudioEncoder.py"
- You'll get several new files in the directory, you are only interested in the
Dist
folder, which is where your compressed .exe file will be - Move the new
FFMPEGAudioEncoder.exe
file into a seperate folder, copy theApps
andRuntime
folder into the folder where you movedFFMPEG...exe
and the program will run. - If you have done everything correctly your folder structure will look like this https://i.imgur.com/29ePmxV.png