File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1- 1.0.0-beta4-build4
1+ 1.0.0-beta4-build5
Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff line change @@ -306,8 +306,8 @@ LIST_PROFILES=false
306306SHOW_PROFILE=" "
307307SKIP_SW=()
308308ONLY_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:]' )
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments