Skip to content

Commit

Permalink
Merge pull request #79 from TorstenDittmann/master
Browse files Browse the repository at this point in the history
feat(dotnet): add logo
  • Loading branch information
eldadfux authored Jan 4, 2021
2 parents 9cb85bd + b179c8d commit 7841128
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/SDK/Language/DotNet.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ public function getFiles()
'template' => '/dotnet/src/Appwrite.sln',
'minify' => false,
],
[
'scope' => 'copy',
'destination' => '/icon.png',
'template' => '/dotnet/icon.png',
],
[
'scope' => 'default',
'destination' => '/src/Appwrite/Appwrite.csproj',
Expand Down
3 changes: 3 additions & 0 deletions src/SDK/SDK.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ public function generate($target)
case 'default':
$this->render($template, $destination, $block, $params, $minify);
break;
case 'copy':
copy('templates' . $file['template'], $destination);
break;
case 'service':
foreach ($this->spec->getServices() as $key => $service) {
$methods = $this->spec->getMethods($key);
Expand Down
Binary file added templates/dotnet/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions templates/dotnet/src/Appwrite/Appwrite.csproj.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@
<Description>
{{sdk.shortDescription}}
</Description>
<PackageIcon>icon.png</PackageIcon>
<PackageLicenseExpression>{{spec.licenseName}}</PackageLicenseExpression>
<PackageProjectUrl>{{sdk.gitURL}}</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>{{sdk.gitURL}}</RepositoryUrl>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>

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

</Project>

0 comments on commit 7841128

Please sign in to comment.