File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ inputs:
1717 base :
1818 description : The name of the base file to be used for Ahk2Exe
1919 required : false
20- default : ' Unicode 32-bit '
20+ default : ' '
2121
2222runs :
2323 using : composite
@@ -30,12 +30,16 @@ runs:
3030 Expand-Archive -Path "$cwd\autohotkey.zip" -DestinationPath "$cwd\_autohotkey\" -Force;
3131 Remove-Item -Path "$cwd\autohotkey.zip" -Force
3232 Write-Output ("$cwd\_autohotkey\;" + "$cwd\_autohotkey\Compiler") | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
33- Write-Output ("BaseFile=$cwd\_autohotkey\Compiler\${{inputs.base}}.bin") | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
33+ if('${{inputs.base}}' -ne ''){
34+ Write-Output ("BaseFile=$cwd\_autohotkey\Compiler\${{inputs.base}}.bin") | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
35+ }else{
36+ Copy-Item -Path "$cwd\_autohotkey\Compiler\Unicode 32-bit.bin" -Destination "$cwd\_autohotkey\Compiler\AutoHotkeySC.bin"
37+ }
3438
3539 - name : Run Ahk2Exe
3640 shell : pwsh
3741 run : |
38- $command = 'ahk2exe.exe /silent verbose /base "$Env:BaseFile" '
42+ $command = 'ahk2exe.exe /silent verbose '
3943 if('${{inputs.in}}' -ne ''){
4044 $command += '/in "${{inputs.in}}" '
4145 }
4549 if('${{inputs.icon}}' -ne ''){
4650 $command += '/icon "${{inputs.icon}}" '
4751 }
52+ if('${{inputs.base}}' -ne ''){
53+ $command += '/base "$Env:BaseFile" '
54+ }
4855 $command += "| Write-Output"
4956 Invoke-Expression $command
5057
You can’t perform that action at this time.
0 commit comments