Skip to content

Commit

Permalink
fix: 修复build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
h3ll0www0rld committed May 2, 2024
1 parent 3820424 commit 3f7f0f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ $content | ForEach-Object {
$_ = 'REVISION = "1294824"'
}
$_
} | Set-Content $file -Force
} | Set-Content $filePath -Force

$content = Get-Content $filePath
$content | ForEach-Object {
if ($_ -match "DOWNLOAD_HOST") {
$_ = 'DOWNLOAD_HOST = "https://registry.npmmirror.com/-/binary"'
}
$_
} | Set-Content $file -Force
} | Set-Content $filePath -Force

pyinstaller -F main.py
Rename-Item -Path "./dist/main.exe" -NewName "ani-cli-cn.exe"

0 comments on commit 3f7f0f9

Please sign in to comment.