This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Get-Files($path, $extension ) { | |
| $result = [string](Get-ChildItem -Path $path -Recurse -Filter $extension | Resolve-Path -Relative) | |
| return $result + " "; | |
| } | |
| function Get-DartFiles ($project) { | |
| $path1 = Get-Files "lib" "*.dart" | |
| $path2 = Get-Files ".dart_tool\build\generated\$project\lib\" "*.dart" | |
| $path3 = $path1 + $path2; | |
| return $path3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <ItemGroup> | |
| <DataFiles Include="$(ProjectDir)Data\**\*.*" /> | |
| </ItemGroup> | |
| <Target Name="PostBuild" AfterTargets="PostBuildEvent"> | |
| <Copy SourceFiles="@(DataFiles)" DestinationFiles="@(DataFiles->'$(TargetDir)Data\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" /> | |
| </Target> | |
| <Target Name="AddPayloadsFolder" AfterTargets="Publish"> | |
| <Copy SourceFiles="@(DataFiles)" DestinationFiles="@(DataFiles->'$(PublishDir)Data\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import grpc from '@grpc/grpc-js'; | |
| import protoLoader from '@grpc/proto-loader'; | |
| let protoFile = `${__dirname}\\..\\..\\Protos\\api.proto`; | |
| protoLoader.load(protoFile).then(packageDefinition => { | |
| const proto = grpc.loadPackageDefinition(packageDefinition); | |
| let package = proto["LiveWallpaperEngine"]; | |
| let client = new package["API"]("127.0.0.1:8080", grpc.credentials.createInsecure()); | |
| let test = client["CloseWallpaper"]({ | |
| "ScreenIndexs": [3, 2] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $packages = Get-ChildItem *.nupkg -Exclude *symbols* | |
| $packages | ForEach-Object {dotnet nuget push $_.Name -k <your key from https://www.nuget.org/account/apikeys> -s https://api.nuget.org/v3/index.json} |