Skip to content

Commit 22a11fc

Browse files
authored
Update action.yml
1 parent 2fc9021 commit 22a11fc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

action.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ inputs:
1414
description: The icon of the executable file is specified
1515
required: false
1616
default: ''
17+
base:
18+
description: The base file to be used for Ahk2Exe
19+
required: false
20+
default: 'Unicode 32-bit'
1721

1822
runs:
1923
using: composite
@@ -26,11 +30,12 @@ runs:
2630
Expand-Archive -Path "$cwd\autohotkey.zip" -DestinationPath "$cwd\_autohotkey\" -Force;
2731
Remove-Item -Path "$cwd\autohotkey.zip" -Force
2832
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}}") | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
2934
3035
- name: Run Ahk2Exe
3136
shell: pwsh
3237
run: |
33-
$command = 'ahk2exe.exe /silent '
38+
$command = 'ahk2exe.exe /silent verbose /base "$Env:BaseFile" '
3439
if('${{inputs.in}}' -ne ''){
3540
$command += '/in "${{inputs.in}}" '
3641
}

0 commit comments

Comments
 (0)