Skip to content

Commit a5f2e1a

Browse files
committed
release: v1.0.0-beta4-build5
1 parent 2683706 commit a5f2e1a

6 files changed

Lines changed: 36 additions & 16 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ jobs:
8282
if: steps.check.outputs.exists == 'false'
8383
run: bash scripts/build.sh
8484

85+
- name: Generate SHA256 checksum
86+
if: steps.check.outputs.exists == 'false'
87+
run: shasum -a 256 config/profiles.json | awk '{print $1}' > dist/profiles.json.sha256
88+
8589
- name: Commit dist
8690
if: steps.check.outputs.exists == 'false'
8791
run: |
@@ -128,3 +132,4 @@ jobs:
128132
files: |
129133
dist/quickstart.sh
130134
dist/quickstart.ps1
135+
dist/profiles.json.sha256

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0-beta4-build4
1+
1.0.0-beta4-build5

changelog.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
## v1.0.0-beta4-build4
1+
## v1.0.0-beta4-build5
22

33
### 🐛 Bug Fixes
4-
- Fix `save_install_state` jq dependency: add python3 fallback for JSON serialization when jq unavailable
5-
- Fix `load_install_state` jq dependency: add python3 fallback for reading state file when jq unavailable
4+
- Fix PS5.1 compatibility: wrap `ConvertFrom-Json -AsHashtable` in try/catch (PS7+ feature, throws on PS5.1)

dist/quickstart.ps1

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ param(
4242
[switch]$showVersion
4343
)
4444

45-
$VERSION = "1.0.0-beta4-build4"
46-
if ($VERSION -eq "1.0.0-beta4-build4") {
45+
$VERSION = "1.0.0-beta4-build5"
46+
if ($VERSION -eq "1.0.0-beta4-build5") {
4747
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
4848
$versionFile = Join-Path $scriptDir "..\VERSION"
4949
if (Test-Path $versionFile) {
@@ -306,8 +306,12 @@ function Initialize-LanguageStrings {
306306
if ($localLang) {
307307
$jsonFile = Join-Path $localLang "$Lang.json"
308308
if (Test-Path $jsonFile) {
309-
$script:LANG = Get-Content $jsonFile -Raw | ConvertFrom-Json -AsHashtable
310-
$loaded = $true
309+
try {
310+
$script:LANG = Get-Content $jsonFile -Raw | ConvertFrom-Json -AsHashtable
311+
$loaded = $true
312+
} catch {
313+
# -AsHashtable unsupported on PS 5.1, fall through
314+
}
311315
}
312316
}
313317

@@ -318,8 +322,12 @@ function Initialize-LanguageStrings {
318322
if ($scriptDir) {
319323
$jsonFile = Join-Path $scriptDir "lang\$Lang.json"
320324
if (Test-Path $jsonFile) {
321-
$script:LANG = Get-Content $jsonFile -Raw | ConvertFrom-Json -AsHashtable
322-
$loaded = $true
325+
try {
326+
$script:LANG = Get-Content $jsonFile -Raw | ConvertFrom-Json -AsHashtable
327+
$loaded = $true
328+
} catch {
329+
# -AsHashtable unsupported on PS 5.1, fall through
330+
}
323331
}
324332
}
325333
}

dist/quickstart.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ LIST_PROFILES=false
306306
SHOW_PROFILE=""
307307
SKIP_SW=()
308308
ONLY_SW=()
309-
VERSION="1.0.0-beta4-build4"
310-
if [[ "$VERSION" == "1.0.0-beta4-build4" ]]; then
309+
VERSION="1.0.0-beta4-build5"
310+
if [[ "$VERSION" == "1.0.0-beta4-build5" ]]; then
311311
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
312312
if [[ -f "$SCRIPT_DIR/../VERSION" ]]; then
313313
VERSION=$(cat "$SCRIPT_DIR/../VERSION" | tr -d '[:space:]')

src/quickstart.ps1

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,12 @@ function Initialize-LanguageStrings {
306306
if ($localLang) {
307307
$jsonFile = Join-Path $localLang "$Lang.json"
308308
if (Test-Path $jsonFile) {
309-
$script:LANG = Get-Content $jsonFile -Raw | ConvertFrom-Json -AsHashtable
310-
$loaded = $true
309+
try {
310+
$script:LANG = Get-Content $jsonFile -Raw | ConvertFrom-Json -AsHashtable
311+
$loaded = $true
312+
} catch {
313+
# -AsHashtable unsupported on PS 5.1, fall through
314+
}
311315
}
312316
}
313317

@@ -318,8 +322,12 @@ function Initialize-LanguageStrings {
318322
if ($scriptDir) {
319323
$jsonFile = Join-Path $scriptDir "lang\$Lang.json"
320324
if (Test-Path $jsonFile) {
321-
$script:LANG = Get-Content $jsonFile -Raw | ConvertFrom-Json -AsHashtable
322-
$loaded = $true
325+
try {
326+
$script:LANG = Get-Content $jsonFile -Raw | ConvertFrom-Json -AsHashtable
327+
$loaded = $true
328+
} catch {
329+
# -AsHashtable unsupported on PS 5.1, fall through
330+
}
323331
}
324332
}
325333
}

0 commit comments

Comments
 (0)