Skip to content

Commit

Permalink
Merge pull request #71 from datalust/dev
Browse files Browse the repository at this point in the history
New Preview
  • Loading branch information
nblumhardt committed Sep 24, 2018
2 parents 4548bf0 + 1fc363f commit 3d01de0
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 696 deletions.
43 changes: 18 additions & 25 deletions Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,40 +23,34 @@ function Create-ArtifactDir
mkdir ./artifacts
}

function Publish-Gzips($version)
function Publish-Archives($version)
{
$rids = @("linux-x64", "osx-x64")
$rids = @("linux-x64", "osx-x64", "win-x64")
foreach ($rid in $rids) {
& dotnet publish src/SeqCli/SeqCli.csproj -c Release -f $framework -r $rid /p:VersionPrefix=$version /p:ShowLinkerSizeComparison=true
if($LASTEXITCODE -ne 0) { exit 4 }

# Make sure the archive contains a reasonable root filename
mv ./src/SeqCli/bin/Release/$framework/$rid/publish/ ./src/SeqCli/bin/Release/$framework/$rid/seqcli-$version-$rid/

& ./build/7-zip/7za.exe a -ttar seqcli-$version-$rid.tar ./src/SeqCli/bin/Release/$framework/$rid/seqcli-$version-$rid/
if($LASTEXITCODE -ne 0) { exit 5 }

# Back to the original directory name
mv ./src/SeqCli/bin/Release/$framework/$rid/seqcli-$version-$rid/ ./src/SeqCli/bin/Release/$framework/$rid/publish/

& ./build/7-zip/7za.exe a -tgzip ./artifacts/seqcli-$version-$rid.tar.gz seqcli-$version-$rid.tar
if($LASTEXITCODE -ne 0) { exit 6 }

rm seqcli-$version-$rid.tar
if ($rid.StartsWith("win-")) {
& ./build/7-zip/7za.exe a -tzip ./artifacts/seqcli-$version-$rid.zip ./src/SeqCli/bin/Release/$framework/$rid/seqcli-$version-$rid/
if($LASTEXITCODE -ne 0) { exit 5 }
} else {
& ./build/7-zip/7za.exe a -ttar seqcli-$version-$rid.tar ./src/SeqCli/bin/Release/$framework/$rid/seqcli-$version-$rid/
if($LASTEXITCODE -ne 0) { exit 5 }

# Back to the original directory name
mv ./src/SeqCli/bin/Release/$framework/$rid/seqcli-$version-$rid/ ./src/SeqCli/bin/Release/$framework/$rid/publish/

& ./build/7-zip/7za.exe a -tgzip ./artifacts/seqcli-$version-$rid.tar.gz seqcli-$version-$rid.tar
if($LASTEXITCODE -ne 0) { exit 6 }

rm seqcli-$version-$rid.tar
}
}
}

function Publish-Msi($version)
{
& dotnet publish ./src/SeqCli/SeqCli.csproj -c Release -f $framework -r win-x64 /p:VersionPrefix=$version /p:ShowLinkerSizeComparison=true
if($LASTEXITCODE -ne 0) { exit 7 }

& msbuild ./setup/SeqCli.Setup/SeqCli.Setup.wixproj /t:Build /p:Configuration=Release /p:Platform=x64 /p:SeqCliVersion=$version /p:BuildProjectReferences=false
if($LASTEXITCODE -ne 0) { exit 8 }

mv ./setup/SeqCli.Setup/bin/Release/seqcli.msi ./artifacts/seqcli-$version.msi
}

Push-Location $PSScriptRoot

$version = @{ $true = $env:APPVEYOR_BUILD_VERSION; $false = "99.99.99" }[$env:APPVEYOR_BUILD_VERSION -ne $NULL];
Expand All @@ -65,8 +59,7 @@ Write-Output "Building version $version"
Clean-Output
Create-ArtifactDir
Restore-Packages
Publish-Msi($version)
Publish-Gzips($version)
Publish-Archives($version)
Execute-Tests

Pop-Location
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ Print the current executable version.
The `seqcli ingest` command can be used for parsing plain text logs into structured log events.

```shell
seqcli ingest -x "{@t:timestamp} [{@l:ident}] {@m:*}{:n}{@x:*}"
seqcli ingest -x "{@t:timestamp} [{@l:level}] {@m:*}{:n}{@x:*}"
```

The `-x` argument above is an _extraction pattern_ that will parse events like:
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build_script:
- ps: ./Build.ps1
test: off
artifacts:
- path: artifacts/seqcli-*.msi
- path: artifacts/seqcli-*.zip
- path: artifacts/seqcli-*.tar.gz
deploy:
- provider: GitHub
Expand Down
Binary file removed asset/SeqCli-Icon-128px.ico
Binary file not shown.
Binary file removed asset/SeqCli-Icon-128px.png
Binary file not shown.
130 changes: 0 additions & 130 deletions asset/SeqCli-Icon.svg

This file was deleted.

Binary file added asset/SeqCli.ico
Binary file not shown.
58 changes: 0 additions & 58 deletions setup/SeqCli.Setup/Product.wxs

This file was deleted.

14 changes: 0 additions & 14 deletions setup/SeqCli.Setup/RemovePdbs.xslt

This file was deleted.

55 changes: 0 additions & 55 deletions setup/SeqCli.Setup/SeqCli.Setup.wixproj

This file was deleted.

Loading

0 comments on commit 3d01de0

Please sign in to comment.