File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 11@ echo off
2- echo generating executable file...
2+ echo generating executable spec file...
33
4- pyi-makespec --onefile --windowed --name AudioToWavConverter src/main.py
4+ rem Name of to be generated spec file
5+ set SPEC_FILE_NAME = AudioToWavConverterrr
56
67rem Remove '--windowed' if you would like to see console outputs
8+ pyi-makespec --onefile --windowed --name %SPEC_FILE_NAME% src/main.py
79
8- rem IMPORTANT: Add this to end of generated spec file to copy the config file automatically
9- rem import shutil
10- rem shutil.copyfile('src/config.ini', '{0}/config-sample.ini'.format(DISTPATH))
10+ rem Add Python statement to copy config.ini to build folder
11+ ECHO .>> " %SPEC_FILE_NAME% .spec"
12+ ECHO import shutil>> " %SPEC_FILE_NAME% .spec"
13+ ECHO shutil.copyfile('src/config.ini', '{0}/config-sample.ini'.format(DISTPATH))>> " %SPEC_FILE_NAME% .spec"
You can’t perform that action at this time.
0 commit comments