不同文件夹中的 PyInstaller 输出工件
PyInstaller output artifacts in different folders
我需要同时构建 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 ******************
但是上述命令的二进制文件保存到相同的目录:
- build
- dist
是否有机会配置 PyInstaller 的不同输出?例如:
- build
- win32
- win64
- dist
- win32
- win64
非常简单的解决方案:)
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 ******************
我需要同时构建 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 ******************
但是上述命令的二进制文件保存到相同的目录:
- build
- dist
是否有机会配置 PyInstaller 的不同输出?例如:
- build
- win32
- win64
- dist
- win32
- win64
非常简单的解决方案:)
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 ******************