20 lines
556 B
PowerShell
20 lines
556 B
PowerShell
. "E:/program/env_win_gui/Scripts/Activate.ps1"
|
|
pyinstaller -y program.spec
|
|
|
|
$src = "../app/"
|
|
$dist = "./dist/dataprocess/"
|
|
$files = @("config/", "data/", "script/", "doc/")
|
|
|
|
foreach ($file in $files) {
|
|
$src_path = Join-Path -Path $src -ChildPath $file
|
|
$dist_path = Join-Path -Path $dist -ChildPath $file
|
|
|
|
# Check if the file exists before copying
|
|
if (Test-Path $src_path) {
|
|
Copy-Item -Recurse -Path $src_path -Destination $dist_path -Verbose
|
|
Write-Host "Copied: $src_path → $dist_path"
|
|
} else {
|
|
Write-Warning "Path not found: $src_path"
|
|
}
|
|
}
|