Skip to content

Commit

Permalink
Creation of the script to build all configurations, including self co…
Browse files Browse the repository at this point in the history
…ntained
  • Loading branch information
PatBQc committed Aug 12, 2024
1 parent 5470319 commit b9eb0d6
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
17 changes: 17 additions & 0 deletions AForge/Video.DirectShow/Video.DirectShow.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -63,7 +64,23 @@
<HintPath>..\..\packages\AForge.Video.2.2.5\lib\AForge.Video.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
</Reference>
<Reference Include="System.Drawing" />
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll</HintPath>
</Reference>
<Reference Include="System.Numerics" />
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
</Reference>
<Reference Include="System.Resources.Extensions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\packages\System.Resources.Extensions.8.0.0\lib\net462\System.Resources.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="System.Windows.Forms" />
</ItemGroup>
<ItemGroup>
Expand Down
5 changes: 5 additions & 0 deletions AForge/Video.DirectShow/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
<packages>
<package id="AForge" version="2.2.5" targetFramework="net48" />
<package id="AForge.Video" version="2.2.5" targetFramework="net48" />
<package id="System.Buffers" version="4.5.1" targetFramework="net48" />
<package id="System.Memory" version="4.5.5" targetFramework="net48" />
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net48" />
<package id="System.Resources.Extensions" version="8.0.0" targetFramework="net48" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.3" targetFramework="net48" />
</packages>
24 changes: 24 additions & 0 deletions _publishAll.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
del .\Release\*.* /S /Q
del .\SeriousWebcamSettings\bin\Release\*.* /S /Q


REM .Net Version
dotnet publish -c Release
powershell -command "Compress-Archive -Path .\SeriousWebcamSettings\bin\Release\net6.0-windows\publish -DestinationPath .\Release\Windows-DotNet.zip"
del .\SeriousWebcamSettings\bin\Release\*.* /S /Q


REM Windows x64
dotnet publish -c Release -r win-x64 --self-contained
powershell -command "Compress-Archive -Path .\SeriousWebcamSettings\bin\Release\net6.0-windows\win-x64\publish\ -DestinationPath .\Release\Windows-x64-Self-Contained.zip"
del .\SeriousWebcamSettings\bin\Release\*.* /S /Q

REM Windows x86
dotnet publish -c Release -r win-x86 --self-contained
powershell -command "Compress-Archive -Path .\SeriousWebcamSettings\bin\Release\net6.0-windows\win-x86\publish\ -DestinationPath .\Release\Windows-x86-Self-Contained.zip"
del .\SeriousWebcamSettings\bin\Release\*.* /S /Q

REM Windows ARM 64
dotnet publish -c Release -r win-arm64 --self-contained
powershell -command "Compress-Archive -Path .\SeriousWebcamSettings\bin\Release\net6.0-windows\win-arm64\publish\ -DestinationPath .\Release\Windows-ARM64-Self-Contained.zip"
del .\SeriousWebcamSettings\bin\Release\*.* /S /Q

0 comments on commit b9eb0d6

Please sign in to comment.