我需要构建可执行文件x32和x64并使用以下命令:
echo ******************** Starting buiding x32... ******************
c:\Anaconda32\Scripts\pyinstaller.exe src/app.spec
echo ******************** Application was built ******************
echo ******************** Starting buiding x64... ******************
pyinstaller src/app.spec
echo ******************** Application was built ******************
然而上述命令的二进制文件保存到相同的目录:
- 构建
- DIST
有没有机会配置PyInstaller的不同输出?例如:
- 构建
- 的win32
- Win64的
- DIST
- 的win32
- Win64的
答案 0 :(得分:1)
非常简单的解决方案:)
echo ******************** Starting buiding x32... ******************
c:\Anaconda32\Scripts\pyinstaller.exe --distpath=./dist/win32 --workpath=./build/win32 src/app.spec
echo ******************** Application was built ******************
echo ******************** Starting buiding x64... ******************
pyinstaller --distpath=./dist/win64 --workpath=./build/win64 src/app.spec
echo ******************** Application was built ******************