feat 目录修改名称
This commit is contained in:
17
Proto/SocketServer/gen_proto.ps1
Normal file
17
Proto/SocketServer/gen_proto.ps1
Normal file
@@ -0,0 +1,17 @@
|
||||
$gen = "gen"
|
||||
if (!(Test-Path $gen)) { mkdir $gen | Out-Null }
|
||||
|
||||
$files = Get-ChildItem sources/*.proto | ForEach-Object { $_.Name }
|
||||
|
||||
protoc `
|
||||
--proto_path=sources `
|
||||
--go_out=$gen `
|
||||
$files
|
||||
|
||||
$clientDir = "$gen/client"
|
||||
if (!(Test-Path $clientDir)) { mkdir $clientDir | Out-Null }
|
||||
|
||||
protoc `
|
||||
--proto_path=sources `
|
||||
--csharp_out=$clientDir `
|
||||
$files
|
||||
Reference in New Issue
Block a user