Skip to content

Commit 764fe4c

Browse files
committed
Panel build: skip auto-run via env var
1 parent ebd522f commit 764fe4c

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,15 @@ jobs:
307307
Write-Host "Script: $scriptPath"
308308
Write-Host "Output: $outFile"
309309
310-
# Verify script can be parsed by AutoHotkey
311-
Write-Host "Testing script syntax..."
312-
$testOutput = & $base '/ErrorStdOut' $scriptPath 2>&1
313-
Write-Host "Syntax check output: $testOutput"
310+
# Signal script to skip runtime launch during compilation/tests
311+
$env:LABSTATION_PANEL_BUILD = "1"
314312
315-
# Try running Ahk2Exe with full verbosity
313+
# Verify script can be parsed by AutoHotkey
314+
Write-Host "Testing script syntax..."
315+
$testOutput = & $base '/ErrorStdOut' $scriptPath 2>&1
316+
Write-Host "Syntax check output: $testOutput"
317+
318+
# Try running Ahk2Exe with full verbosity
316319
Write-Host "Attempting compilation with verbose output..."
317320
$arguments = @('/in', $scriptPath, '/out', $outFile, '/bin', $binPath, '/icon', $iconPath, '/cp', '0')
318321
Write-Host "Running: $compiler $($arguments -join ' ')"

LabStationPanel.ahk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,7 @@ LS_LaunchElevated(target, args := "") {
5858
}
5959
}
6060

61-
; Auto-execute section
62-
TryLaunch()
61+
; Auto-execute section (skip when building)
62+
if (EnvGet("LABSTATION_PANEL_BUILD") != "1") {
63+
TryLaunch()
64+
}

0 commit comments

Comments
 (0)