- Simplified the environment configuration in app.js by removing the debug environment options and related functions. - Set a default API base URL for production while allowing commented options for local and testing environments. - Cleaned up settings.js by removing the debug environment label and switching functionality, streamlining the user interface. - Updated documentation to reflect the removal of debug features and added a summary of synchronization requirements in the planning document.
21 lines
502 B
PowerShell
21 lines
502 B
PowerShell
$ErrorActionPreference = "Stop"
|
|
|
|
$timestamp = Get-Date -Format "yyyyMMdd_HHmmss"
|
|
$src = "C:\Users\29195\Mycontent\macos-vm\OneClick-macOS-Simple-KVM"
|
|
$dst = "C:\Users\29195\Mycontent\macos-vm\macos-vm-snapshot-$timestamp.zip"
|
|
|
|
Write-Host "打包目录: $src"
|
|
Write-Host "目标文件: $dst"
|
|
|
|
if (-not (Test-Path $src)) {
|
|
Write-Error "源目录不存在:$src"
|
|
}
|
|
|
|
if (Test-Path $dst) {
|
|
Remove-Item $dst -Force
|
|
}
|
|
|
|
Compress-Archive -Path $src -DestinationPath $dst -Force
|
|
Write-Host '打包完成.'
|
|
|