18 lines
627 B
PowerShell
18 lines
627 B
PowerShell
# Aktuellen Pfad auslesen
|
|
$currentDirectory = Get-Location
|
|
|
|
# Setzt das Arbeitsverzeichnis auf das Projektverzeichnis
|
|
$projectPath = "../src/Cambooth/cambooth.app" # Anpassen an dein Projektverzeichnis
|
|
Set-Location -Path $projectPath
|
|
|
|
# Stellt sicher, dass alle Abhängigkeiten wiederhergestellt werden
|
|
dotnet restore
|
|
|
|
# Erstellt die Anwendung im Release-Modus
|
|
dotnet build --configuration Release
|
|
|
|
# Erstellt eine veröffentlichungsfähige Version
|
|
dotnet publish --configuration Release -r win-x86 --output "publish"
|
|
|
|
# zu ursprünglichen pfad wechseln (für nachfolgende scripts wichtig)
|
|
Set-Location -Path $currentDirectory |