feat: 提交一下
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
param(
|
||||
param(
|
||||
[string]$PythonLauncher = "py",
|
||||
[string]$PythonVersion = "-3.12",
|
||||
[switch]$SkipIcon,
|
||||
@@ -73,9 +73,10 @@ function Set-OptionalEnv($Name, $Value) {
|
||||
}
|
||||
|
||||
function Test-ForbiddenReleaseFile($File) {
|
||||
$inBackendInternal = $File.FullName -match '[\\/]backend[\\/]_internal[\\/]'
|
||||
return $File.Name -eq ".env" -or
|
||||
$File.Name -like "knowledge*.db" -or
|
||||
$File.FullName -match "\\__pycache__\\" -or
|
||||
($File.FullName -match "\\__pycache__\\" -and -not $inBackendInternal) -or
|
||||
$File.Name -like "*.pfx" -or
|
||||
$File.Name -like "*.p12" -or
|
||||
$File.Name -like "*.pvk" -or
|
||||
@@ -141,6 +142,12 @@ if (-not $SkipIcon) {
|
||||
& node (Join-Path $Root "scripts\make-icon.cjs")
|
||||
}
|
||||
|
||||
$logoDest = Join-Path $Electron "build\company-logo.jpg"
|
||||
$logoSrc = Join-Path $Frontend "public\company-logo.jpg"
|
||||
if (Test-Path $logoSrc) {
|
||||
Copy-Item -LiteralPath $logoSrc -Destination $logoDest -Force
|
||||
Write-Host "company-logo.jpg synced to electron-launcher\build\"
|
||||
}
|
||||
if (-not $SkipFrontend) {
|
||||
$dist = Join-Path $Frontend "dist"
|
||||
if (Test-Path $dist) {
|
||||
|
||||
Reference in New Issue
Block a user