Skip to content

Commit

Permalink
Project cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
csutorasa committed Aug 11, 2019
1 parent 920d3b7 commit 4b057b4
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 24 deletions.
22 changes: 14 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
.vs/
XOutput/bin/
XOutput/obj/
packages/
TestResults/
XOutputTests/bin/
XOutputTests/obj/
XOutputTests/coverage.opencover.xml
# IDE
.vs
.vscode

# Output
*/bin
*/obj

# Nuget packages
packages
*.nupkg

# Test result files
TestResults
XOutputTests/coverage.opencover.xml
14 changes: 0 additions & 14 deletions XOutput/App.config

This file was deleted.

11 changes: 11 additions & 0 deletions release-choco.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
param (
[Parameter(Mandatory=$true)][string]$Version,
[Parameter(Mandatory=$true)][string]$Apikey
)

$ErrorActionPreference = 'Stop';
choco uninstall xoutput -fy
choco pack
choco install xoutput -fdvy -s $pwd
choco apikey --key $apikey --source https://push.chocolatey.org/
choco push xoutput.$version.nupkg --source https://push.chocolatey.org/
2 changes: 1 addition & 1 deletion version-upgrade.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
param (
[Parameter(Mandatory=$true)][string]$version
)

$ErrorActionPreference = 'Stop';
$new_content = Get-Content .\XOutput\UpdateChecker\Version.cs | ForEach-Object {$_ -replace "public const string AppVersion = `".*`";","public const string AppVersion = `"$version`";"}
$new_content | Out-File -Encoding utf8 -FilePath .\XOutput\UpdateChecker\Version.cs

Expand Down
2 changes: 1 addition & 1 deletion xoutput.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
</metadata>

<files>
<file src="XOutput\bin\Release\XOutput.exe" />
<file src="XOutput\bin\Release\net452\XOutput.exe" />
</files>
</package>

0 comments on commit 4b057b4

Please sign in to comment.