22 lines
430 B
PowerShell
22 lines
430 B
PowerShell
param(
|
|
[string]$Python = "python"
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
Set-Location $PSScriptRoot
|
|
|
|
& $Python -m PyInstaller `
|
|
--noconfirm `
|
|
--clean `
|
|
--windowed `
|
|
--onefile `
|
|
--name "网易云播放器" `
|
|
--icon "src\icon.ico" `
|
|
--add-data "src\icon.ico;." `
|
|
--distpath "dist" `
|
|
--workpath "build" `
|
|
--specpath "build" `
|
|
"src\main.py"
|
|
|
|
Write-Host "Built: dist\网易云播放器.exe"
|