Skip to content

Commit

Permalink
i know
Browse files Browse the repository at this point in the history
  • Loading branch information
Norgerman committed Apr 14, 2017
1 parent fab9357 commit d2c930d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build/createConf.ps1
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
$encoding = New-Object System.Text.UTF8Encoding $False
$content = [System.String]::Format("export var appid = '{0}'", $env:XUNFEI_APP_ID), [System.String]::Format("export var appkey = '0'", $env:XUNFEI_APP_KEY)
$content = [System.String]::Format("export var appid = '{0}'", $env:XUNFEI_APP_ID), [System.String]::Format("export var appkey = '{0}'", $env:XUNFEI_APP_KEY)
$path = Join-Path (Get-Item -Path ".\").FullName "app\xunfei\conf.ts"
$stream = New-Object System.IO.FileStream($path, [System.IO.FileMode]::Create, [System.IO.FileAccess]::Write)
$writer = New-Object System.IO.StreamWriter($stream, $encoding)
foreach ($i in $content)
{
[System.Console]::WriteLine($i)
$writer.WriteLine($i)
}
$writer.dispose();
Expand Down

0 comments on commit d2c930d

Please sign in to comment.