Skip to content
package

GitHub Action

Compile AutoHotkey Script

v1.1.0 Latest version

Compile AutoHotkey Script

package

Compile AutoHotkey Script

Compiles AutoHotkey scripts into EXEs using Ahk2Exe

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Compile AutoHotkey Script

uses: CEnnis91/[email protected]

Learn more about this action in CEnnis91/action-ahk2exe

Choose a version

action-ahk2exe

Github action to compile AutoHotkey scripts into EXEs using Ahk2Exe.

Usage

See action.yaml. Only supports Windows-based runners.

Examples

Basic

runs-on: windows-latest
steps:
  - name: Compile with Ahk2Exe
    id: ahk2exe
    uses: cennis91/action-ahk2exe@main
    with:
      in: src/example.ahk

Complete

jobs:
  example:
    name: Example
    runs-on: windows-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Compile with Ahk2Exe
        uses: cennis91/action-ahk2exe@main
        id: ahk2exe
        with:
          in: src/example.ahk
          out: out/example.exe
          icon: res/icon.ico

      - name: Upload Artifact
        uses: actions/upload-artifact@v2
        with:
          name: compiled-binary
          path: ${{ steps.ahk2exe.outputs.binary }}

Inputs

Parameter Example Description
in src/example.ahk Required. The path and name of the script to compile.
out out/output.exe The path\name of the output .exe to be created. Default is the directory\base_name of the input file plus extension of .exe.
icon res/icon.ico The icon file to be used.
cp 65001 Overrides the default codepage used to read script files.
base 'Unicode 32-bit.bin' The base file to be used (a .bin file).
compress 1 Compress the exe? 0 = no, 1 = use MPRESS if present, 2 = use UPX if present.
resourceid '#2' Assigns a non-standard resource ID to be used for the main script for compilations which use an .exe base file.

Outputs

Parameter Description
binary The compiled AutoHotkey binary
directory The base directory of the installed AutoHotkey
version The version of the installed AutoHotkey

Notes

This installs AutoHotkey via scoop.sh. The install script can be found here. Ahk2Exe is installed with AutoHotkey and the full source can be found here.

License

License is MIT.