Skip to content

Commit 62f39dd

Browse files
committed
Added publish script
1 parent bbee620 commit 62f39dd

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

src/CleanBrowsingClient.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,19 @@ EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1010
Debug|x64 = Debug|x64
11+
Debug|x86 = Debug|x86
1112
Release|x64 = Release|x64
13+
Release|x86 = Release|x86
1214
EndGlobalSection
1315
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1416
{60AB2E04-725F-41EC-8F07-2C633115E939}.Debug|x64.ActiveCfg = Debug|x64
1517
{60AB2E04-725F-41EC-8F07-2C633115E939}.Debug|x64.Build.0 = Debug|x64
18+
{60AB2E04-725F-41EC-8F07-2C633115E939}.Debug|x86.ActiveCfg = Debug|x86
19+
{60AB2E04-725F-41EC-8F07-2C633115E939}.Debug|x86.Build.0 = Debug|x86
1620
{60AB2E04-725F-41EC-8F07-2C633115E939}.Release|x64.ActiveCfg = Release|x64
1721
{60AB2E04-725F-41EC-8F07-2C633115E939}.Release|x64.Build.0 = Release|x64
22+
{60AB2E04-725F-41EC-8F07-2C633115E939}.Release|x86.ActiveCfg = Release|x86
23+
{60AB2E04-725F-41EC-8F07-2C633115E939}.Release|x86.Build.0 = Release|x86
1824
EndGlobalSection
1925
GlobalSection(SolutionProperties) = preSolution
2026
HideSolutionNode = FALSE

src/CleanBrowsingClient/CleanBrowsingClient.csproj

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
<OutputType>WinExe</OutputType>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<UseWPF>true</UseWPF>
6-
<PublishSingleFile>true</PublishSingleFile>
7-
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
6+
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
87
<PublishTrimmed>true</PublishTrimmed>
8+
<PublishSingleFile>true</PublishSingleFile>
9+
<PublishReadyToRun>false</PublishReadyToRun>
10+
<PublishReadyToRunShowWarnings>true</PublishReadyToRunShowWarnings>
911
<AssemblyName>CleanBrowsingClient</AssemblyName>
1012
<ApplicationIcon>cleanbrowsing.ico</ApplicationIcon>
1113
<ApplicationManifest>app.manifest</ApplicationManifest>
12-
<Version>0.1.4</Version>
14+
<Version>0.1.4.0</Version>
1315
<Authors>Christian Hermann (@bitbeans)</Authors>
14-
<Platforms>x64</Platforms>
16+
<Platforms>x64;x86</Platforms>
1517
</PropertyGroup>
1618
<ItemGroup>
1719
<None Remove="dnscrypt-proxy\dnscrypt-proxy.toml" />
@@ -61,6 +63,9 @@
6163
</None>
6264
</ItemGroup>
6365
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
64-
<Exec Command="copy &quot;$(ProjectDir)DNS$(PlatformName)\*&quot; &quot;$(ProjectDir)$(OutDir)\dnscrypt-proxy\&quot;" />
66+
<Exec Command="copy &quot;$(ProjectDir)DNS$(PlatformName)\*&quot; &quot;$(ProjectDir)$(OutDir)dnscrypt-proxy\&quot;" />
67+
</Target>
68+
<Target Name="PublishDnsCryptFolder" AfterTargets="Publish">
69+
<Exec Command="xcopy &quot;$(ProjectDir)$(OutDir)dnscrypt-proxy\*&quot; &quot;$(PublishDir)dnscrypt-proxy\&quot;" />
6570
</Target>
6671
</Project>

src/publish.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Remove-Item "F:\x64\*" -recurse
2+
Remove-Item "F:\x86\*" -recurse
3+
dotnet publish -c release -r win-x64 /p:Platform=x64 /p:PublishSingleFile=true /p:DebugType=None -o "F:\x64"
4+
dotnet publish -c release -r win-x86 /p:Platform=x86 /p:PublishSingleFile=true /p:DebugType=None -o "F:\x86"

0 commit comments

Comments
 (0)