improvements deploy script
This commit is contained in:
parent
f50c4038f2
commit
ef30afa013
@ -1,3 +1,6 @@
|
|||||||
|
# Aktuellen Pfad auslesen
|
||||||
|
$currentDirectory = Get-Location
|
||||||
|
|
||||||
# Setzt das Arbeitsverzeichnis auf das Projektverzeichnis
|
# Setzt das Arbeitsverzeichnis auf das Projektverzeichnis
|
||||||
$projectPath = "../src/Cambooth/cambooth.app" # Anpassen an dein Projektverzeichnis
|
$projectPath = "../src/Cambooth/cambooth.app" # Anpassen an dein Projektverzeichnis
|
||||||
Set-Location -Path $projectPath
|
Set-Location -Path $projectPath
|
||||||
@ -9,4 +12,7 @@ dotnet restore
|
|||||||
dotnet build --configuration Release
|
dotnet build --configuration Release
|
||||||
|
|
||||||
# Erstellt eine veröffentlichungsfähige Version
|
# Erstellt eine veröffentlichungsfähige Version
|
||||||
dotnet publish --configuration Release -r win-x86 --output "publish"
|
dotnet publish --configuration Release -r win-x86 --output "publish"
|
||||||
|
|
||||||
|
# zu ursprünglichen pfad wechseln (für nachfolgende scripts wichtig)
|
||||||
|
Set-Location -Path $currentDirectory
|
||||||
@ -1,4 +1,6 @@
|
|||||||
# --- Schritt 0: Erzeuge Build Dateien
|
# --- Schritt 0: Erzeuge Build Dateien
|
||||||
Write-Host "==> Build App as release ..."
|
Write-Host "==> Build App as release ..."
|
||||||
Invoke-Expression ".\build-release.ps1"
|
Invoke-Expression ".\build-release.ps1"
|
||||||
U:\HomeLab\Scripts\Windows\deploy_via_psexec.ps1 -RemoteComputer "Cambooth" -SourceFolder "../src/CamBooth/CamBooth.App/publish" -DestinationFolder "C:\Cambooth" -ProcessesToStop @("MyWPFApp") -ServicesToStop @("MyService") -AppExecutable "MyWPFApp.exe" -LocalUsername "cambooth\administrator" -LocalPassword "2013"
|
|
||||||
|
# --- copy files to target client
|
||||||
|
U:\HomeLab\Scripts\Windows\deploy_via_psexec.ps1 -RemoteComputer "Cambooth" -LocalUsername "Administrator" -LocalPassword "2013" -EDSDKFolder "../misc/CanonBinaries" -SourceFolder "../src/CamBooth/CamBooth.App/publish" -DestinationFolder "C:\Cambooth" -ProcessesToStop @("MyWPFApp") -ServicesToStop @("MyService") -AppExecutable "MyWPFApp.exe"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user