Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auto-tx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vamp
auto-tx
Commits
74f66941
Commit
74f66941
authored
7 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Output layout improvements.
parent
1d9019c5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Scripts/Make-Package.ps1
+17
-10
17 additions, 10 deletions
Scripts/Make-Package.ps1
with
17 additions
and
10 deletions
Scripts/Make-Package.ps1
+
17
−
10
View file @
74f66941
...
...
@@ -2,10 +2,17 @@ $ResourceDir = "..\ATxService\Resources"
$RsrcDirCommon
=
"..\Resources"
function
Highlight
([
string
]
$Message
,
[
string
]
$Color
=
"Cyan"
)
{
function
Highlight
([
string
]
$Message
,
[
string
]
$Color
=
"Cyan"
,
$Indent
=
$False
)
{
if
(
$Indent
)
{
Write-Host
-NoNewline
" "
}
Write-Host
-NoNewline
"["
Write-Host
-NoNewline
-F
$Color
$Message
Write-Host
-NoNewline
"]"
if
(
$Indent
)
{
Write-Host
}
}
function
RelToAbs
([
string
]
$RelPath
)
{
Join-Path
-Resolve
$
(
Get-Location
)
$RelPath
...
...
@@ -37,13 +44,13 @@ $BinariesDirCfgTest = RelToAbs "..\ATxConfigTest\bin\$($BuildConfiguration)"
Write-Host
-NoNewline
"Creating package "
Highlight
$PkgDir
"Red"
Write-Host
" using binaries from:"
Write-Host
$
(
Highlight
$BinariesDirService
"Green"
)
Write-Host
$
(
Highlight
$BinariesDirTrayApp
"Green"
)
Write-Host
$
(
Highlight
$BinariesDirCfgTest
"Green"
)
Write-Host
""
Highlight
$BinariesDirService
"Green"
$True
Highlight
$BinariesDirTrayApp
"Green"
$True
Highlight
$BinariesDirCfgTest
"Green"
$True
Write-Host
if
(
Test-Path
$PkgDir
)
{
Write-Host
"Removing existing package dir [
$(
$PkgDir
)
]..."
Write-Host
"Removing existing package dir [
$(
$PkgDir
)
]...
`n
"
Remove-Item
-Recurse
-Force
$PkgDir
}
...
...
@@ -76,10 +83,10 @@ Copy-Item "Install-Service.ps1" $PkgDir
Write-Host
-NoNewline
"Done creating package "
Highlight
$PkgDir
Write-Host
-NoNewline
" using config "
Highlight
$BuildConfiguration
Write-Host
-NoNewline
" based on commit "
Highlight
$BuildCommi
t
Write-Host
Highlight
"configuration:
$(
$BuildConfiguration
)
"
-Indent
$True
Highlight
"commit:
$(
$BuildCommit
)
"
-Indent
$True
Write-Hos
t
Write-Host
-NoNewline
"Location: "
Highlight
"
$(
RelToAbs
$PkgDir
)
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment