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
17829d0f
Commit
17829d0f
authored
7 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Add commit reference to build packages.
parent
65b7d48b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Scripts/Make-Package.ps1
+23
-1
23 additions, 1 deletion
Scripts/Make-Package.ps1
with
23 additions
and
1 deletion
Scripts/Make-Package.ps1
+
23
−
1
View file @
17829d0f
...
...
@@ -41,8 +41,30 @@ Copy-Item "$($ResourceDir)\configuration-example.xml" "$($PkgDir)\configuration.
Copy-Item
"
$(
$ResourceDir
)
\status-example.xml"
"
$(
$PkgDir
)
\status.xml"
Copy-Item
"
$(
$ResourceDir
)
\BuildDate.txt"
"
$(
$PkgDir
)
\service.log"
Copy-Item
"
$(
$ResourceDir
)
\BuildConfiguration.txt"
$
(
$PkgDir
)
try
{
$CommitRefFile
=
"
$(
$PkgDir
)
\BuildCommitRef.txt"
git
describe
>
$CommitRefFile
$BuildCommit
=
Get-Content
$CommitRefFile
}
catch
{
Write-Host
"Error getting commit reference from git!"
$BuildCommit
=
"<UNKNOWN>"
}
Copy-Item
"ScriptsConfig.ps1"
$PkgDir
Copy-Item
"Install-Service.ps1"
$PkgDir
Write-Host
"Done creating package [
$(
$PkgDir
)
] (config:
$(
$BuildConfiguration
)
)"
\ No newline at end of file
function
Highlight
([
string
]
$Message
)
{
Write-Host
-NoNewline
"["
Write-Host
-NoNewline
-F
Cyan
$Message
Write-Host
-NoNewline
"]"
}
Write-Host
-NoNewline
"Done creating package "
Highlight
$PkgDir
Write-Host
-NoNewline
" using config "
Highlight
$BuildConfiguration
Write-Host
-NoNewline
" based on commit "
Highlight
$BuildCommit
Write-Host
\ No newline at end of file
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