Skip to content

Commit 7841128

Browse files
authored
Merge pull request #79 from TorstenDittmann/master
feat(dotnet): add logo
2 parents 9cb85bd + b179c8d commit 7841128

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

src/SDK/Language/DotNet.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,11 @@ public function getFiles()
261261
'template' => '/dotnet/src/Appwrite.sln',
262262
'minify' => false,
263263
],
264+
[
265+
'scope' => 'copy',
266+
'destination' => '/icon.png',
267+
'template' => '/dotnet/icon.png',
268+
],
264269
[
265270
'scope' => 'default',
266271
'destination' => '/src/Appwrite/Appwrite.csproj',

src/SDK/SDK.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,9 @@ public function generate($target)
475475
case 'default':
476476
$this->render($template, $destination, $block, $params, $minify);
477477
break;
478+
case 'copy':
479+
copy('templates' . $file['template'], $destination);
480+
break;
478481
case 'service':
479482
foreach ($this->spec->getServices() as $key => $service) {
480483
$methods = $this->spec->getMethods($key);

templates/dotnet/icon.png

7.57 KB
Loading

templates/dotnet/src/Appwrite/Appwrite.csproj.twig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@
88
<Description>
99
{{sdk.shortDescription}}
1010
</Description>
11+
<PackageIcon>icon.png</PackageIcon>
1112
<PackageLicenseExpression>{{spec.licenseName}}</PackageLicenseExpression>
1213
<PackageProjectUrl>{{sdk.gitURL}}</PackageProjectUrl>
1314
<RepositoryType>git</RepositoryType>
1415
<RepositoryUrl>{{sdk.gitURL}}</RepositoryUrl>
16+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1517
</PropertyGroup>
1618

1719
<ItemGroup>
1820
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
21+
<None Include="..\..\icon.png" Pack="true" PackagePath="$(PackageIcon)"/>
1922
</ItemGroup>
2023

2124
</Project>

0 commit comments

Comments
 (0)