1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-23 09:00:08 +00:00

fix(windows): stabilize install and prerelease versioning

This commit is contained in:
Tw93
2026-03-22 14:39:25 +08:00
parent 05fbc007d5
commit 16c3ea9867
13 changed files with 211 additions and 54 deletions

View File

@@ -24,6 +24,12 @@ Set-StrictMode -Version Latest
$script:MOLE_ROOT = Split-Path -Parent $MyInvocation.MyCommand.Path
$script:MOLE_BIN = Join-Path $script:MOLE_ROOT "bin"
$script:MOLE_LIB = Join-Path $script:MOLE_ROOT "lib"
$script:MOLE_CORE = Join-Path $script:MOLE_LIB "core"
# Read the version before loading the rest of the runtime so every entrypoint
# resolves the same release tag.
. "$script:MOLE_CORE\version.ps1"
$script:MOLE_VER = Get-MoleVersionString -RootDir $script:MOLE_ROOT
# Import core
. "$script:MOLE_LIB\core\common.ps1"
@@ -32,7 +38,6 @@ $script:MOLE_LIB = Join-Path $script:MOLE_ROOT "lib"
# Version Info
# ============================================================================
$script:MOLE_VER = "1.0.0"
$script:MOLE_BUILD = "2026-01-07"
function Show-Version {