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"
...
@@ -2,10 +2,17 @@ $ResourceDir = "..\ATxService\Resources"
$RsrcDirCommon
=
"..\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
"["
Write-Host
-NoNewline
-F
$Color
$Message
Write-Host
-NoNewline
-F
$Color
$Message
Write-Host
-NoNewline
"]"
Write-Host
-NoNewline
"]"
if
(
$Indent
)
{
Write-Host
}
}
function
RelToAbs
([
string
]
$RelPath
)
{
function
RelToAbs
([
string
]
$RelPath
)
{
Join-Path
-Resolve
$
(
Get-Location
)
$RelPath
Join-Path
-Resolve
$
(
Get-Location
)
$RelPath
...
@@ -37,13 +44,13 @@ $BinariesDirCfgTest = RelToAbs "..\ATxConfigTest\bin\$($BuildConfiguration)"
...
@@ -37,13 +44,13 @@ $BinariesDirCfgTest = RelToAbs "..\ATxConfigTest\bin\$($BuildConfiguration)"
Write-Host
-NoNewline
"Creating package "
Write-Host
-NoNewline
"Creating package "
Highlight
$PkgDir
"Red"
Highlight
$PkgDir
"Red"
Write-Host
" using binaries from:"
Write-Host
" using binaries from:"
Write-Host
$
(
Highlight
$BinariesDirService
"Green"
)
Highlight
$BinariesDirService
"Green"
$True
Write-Host
$
(
Highlight
$BinariesDirTrayApp
"Green"
)
Highlight
$BinariesDirTrayApp
"Green"
$True
Write-Host
$
(
Highlight
$BinariesDirCfgTest
"Green"
)
Highlight
$BinariesDirCfgTest
"Green"
$True
Write-Host
""
Write-Host
if
(
Test-Path
$PkgDir
)
{
if
(
Test-Path
$PkgDir
)
{
Write-Host
"Removing existing package dir [
$(
$PkgDir
)
]..."
Write-Host
"Removing existing package dir [
$(
$PkgDir
)
]...
`n
"
Remove-Item
-Recurse
-Force
$PkgDir
Remove-Item
-Recurse
-Force
$PkgDir
}
}
...
@@ -76,10 +83,10 @@ Copy-Item "Install-Service.ps1" $PkgDir
...
@@ -76,10 +83,10 @@ Copy-Item "Install-Service.ps1" $PkgDir
Write-Host
-NoNewline
"Done creating package "
Write-Host
-NoNewline
"Done creating package "
Highlight
$PkgDir
Highlight
$PkgDir
Write-Host
-NoNewline
" using config "
Write-Host
Highlight
$BuildConfiguration
Highlight
"configuration:
$(
$BuildConfiguration
)
"
-Indent
$True
Write-Host
-NoNewline
" based on commit "
Highlight
"commit:
$(
$BuildCommit
)
"
-Indent
$True
Highlight
$BuildCommi
t
Write-Hos
t
Write-Host
-NoNewline
"Location: "
Write-Host
-NoNewline
"Location: "
Highlight
"
$(
RelToAbs
$PkgDir
)
"
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