deploy script extended to build app before
This commit is contained in:
parent
b11e3dca6e
commit
f50c4038f2
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ obj/
|
|||||||
/packages/
|
/packages/
|
||||||
riderModule.iml
|
riderModule.iml
|
||||||
/_ReSharper.Caches/
|
/_ReSharper.Caches/
|
||||||
|
/src/CamBooth/CamBooth.App/publish/
|
||||||
|
|||||||
12
iac/build-release.ps1
Normal file
12
iac/build-release.ps1
Normal 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"
|
||||||
@ -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"
|
||||||
|
|||||||
@ -13,6 +13,10 @@ namespace EOSDigital.API
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class Camera : IDisposable, ICamera
|
public class Camera : IDisposable, ICamera
|
||||||
{
|
{
|
||||||
|
public Camera()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
#region Events
|
#region Events
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@ -5,6 +5,8 @@
|
|||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{15E99248-6161-46A4-9183-609CA62406A6}</ProjectGuid>
|
<ProjectGuid>{15E99248-6161-46A4-9183-609CA62406A6}</ProjectGuid>
|
||||||
|
<BaseOutputPath>$(SolutionDir)bin\</BaseOutputPath>
|
||||||
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>EDSDKLib</RootNamespace>
|
<RootNamespace>EDSDKLib</RootNamespace>
|
||||||
@ -14,8 +16,10 @@
|
|||||||
<LangVersion>8</LangVersion>
|
<LangVersion>8</LangVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||||
|
<BaseOutputPath>$(SolutionDir)bin\</BaseOutputPath>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
@ -24,6 +28,8 @@
|
|||||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||||
|
<BaseOutputPath>$(SolutionDir)bin\</BaseOutputPath>
|
||||||
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
@ -34,6 +40,19 @@
|
|||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</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>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user