deploy script extended to build app before

This commit is contained in:
iTob 2025-02-16 16:26:37 +01:00
parent b11e3dca6e
commit f50c4038f2
5 changed files with 41 additions and 2 deletions

3
.gitignore vendored
View File

@ -2,4 +2,5 @@ bin/
obj/
/packages/
riderModule.iml
/_ReSharper.Caches/
/_ReSharper.Caches/
/src/CamBooth/CamBooth.App/publish/

12
iac/build-release.ps1 Normal file
View File

@ -0,0 +1,12 @@
# 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"

View File

@ -1 +1,4 @@
U:\HomeLab\Scripts\Windows\deploy_via_psexec.ps1 -RemoteComputer "Cambooth" -SourceFolder "../src/CamBooth/CamBooth.App/bin/Release/net8.0-windows" -DestinationFolder "C:\Cambooth" -ProcessesToStop @("MyWPFApp") -ServicesToStop @("MyService") -AppExecutable "MyWPFApp.exe" -LocalUsername "cambooth\administrator" -LocalPassword "2013"
# --- Schritt 0: Erzeuge Build Dateien
Write-Host "==> Build App as release ..."
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"

View File

@ -13,6 +13,10 @@ namespace EOSDigital.API
/// </summary>
public class Camera : IDisposable, ICamera
{
public Camera()
{
}
#region Events
/// <summary>

View File

@ -5,6 +5,8 @@
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{15E99248-6161-46A4-9183-609CA62406A6}</ProjectGuid>
<BaseOutputPath>$(SolutionDir)bin\</BaseOutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>EDSDKLib</RootNamespace>
@ -14,8 +16,10 @@
<LangVersion>8</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<BaseOutputPath>$(SolutionDir)bin\</BaseOutputPath>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DebugType>full</DebugType>
@ -24,6 +28,8 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<BaseOutputPath>$(SolutionDir)bin\</BaseOutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
@ -33,6 +39,19 @@
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<BaseOutputPath>$(SolutionDir)bin\</BaseOutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DocumentationFile>bin\Release\EDSDKLib.xml</DocumentationFile>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />