mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-15 17:30:37 -06:00
update
This commit is contained in:
parent
d5d90d4fb1
commit
e398a77336
@ -57,13 +57,13 @@ $script_content.Add($header)
|
||||
|
||||
Update-Progress "Adding: Version" 10
|
||||
$commitHash = (git rev-parse HEAD).Substring(0,16)
|
||||
$gitStatus = (git status --porcelain).Trim()
|
||||
$gitDirty = !([string]::IsNullOrEmpty($(git status --porcelain)))
|
||||
|
||||
$scriptPrelude = $(Get-Content "$workingdir\scripts\start.ps1")
|
||||
|
||||
$scriptPrelude = $scriptPrelude -replace '#{replaceme-version}', "$(Get-Date -Format yy.MM.dd)"
|
||||
$scriptPrelude = $scriptPrelude -replace '#{replaceme-commit}', "$commitHash"
|
||||
$scriptPrelude = $scriptPrelude -replace '#{replaceme-gitstat}', "$gitStatus"
|
||||
$scriptPrelude = $scriptPrelude -replace '#{replaceme-gitdirty}', ($gitDirty.ToString())
|
||||
|
||||
$script_content.Add($scriptPrelude)
|
||||
|
||||
|
@ -157,7 +157,7 @@ $sync["Form"].TaskbarItemInfo = New-Object System.Windows.Shell.TaskbarItemInfo
|
||||
Set-WinUtilTaskbaritem -state "None"
|
||||
|
||||
# Set the titlebar
|
||||
$sync["Form"].title = $sync["Form"].title + " " + $sync.version + " " + $sync.commit + " " + $sync.gitstat
|
||||
$sync["Form"].title = $sync["Form"].title + " " + $sync.version + " " + $sync.commit + $(if ($sync.gitdirty) { " (dirty)" })
|
||||
# Set the commands that will run when the form is closed
|
||||
$sync["Form"].Add_Closing({
|
||||
$sync.runspace.Dispose()
|
||||
@ -494,7 +494,7 @@ Runspace : <a href="https://github.com/DeveloperDurp">@DeveloperDurp</a>
|
||||
MicroWin : <a href="https://github.com/KonTy">@KonTy</a>
|
||||
GitHub : <a href="https://github.com/ChrisTitusTech/winutil">ChrisTitusTech/winutil</a>
|
||||
Version : <a href="https://github.com/ChrisTitusTech/winutil/releases/tag/$($sync.version)">$($sync.version)</a>
|
||||
Commit : <a href="https://github.com/ChrisTitusTech/winutil/commit/$($sync.commit)">$($sync.commit) ($($sync.gitstat))</a>
|
||||
Commit : <a href="https://github.com/ChrisTitusTech/winutil/commit/$($sync.commit)">$($sync.commit)$($(if ($sync.gitdirty) { " (dirty)" }))</a>
|
||||
"@
|
||||
$FontSize = $sync.configs.themes.$ctttheme.CustomDialogFontSize
|
||||
$HeaderFontSize = $sync.configs.themes.$ctttheme.CustomDialogFontSizeHeader
|
||||
|
@ -42,7 +42,7 @@ $sync = [Hashtable]::Synchronized(@{})
|
||||
$sync.PSScriptRoot = $PSScriptRoot
|
||||
$sync.version = "#{replaceme-version}"
|
||||
$sync.commit = "#{replaceme-commit}"
|
||||
$sync.gitstat = "#{replaceme-gitstat}"
|
||||
$sync.gitdirty = [System.Convert]::ToBoolean("#{replaceme-gitdirty}")
|
||||
$sync.configs = @{}
|
||||
$sync.ProcessRunning = $false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user