Skip to content

Github action to compile AutoHotkey scripts into EXEs using Ahk2Exe.

License

Notifications You must be signed in to change notification settings

CEnnis91/action-ahk2exe

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Github action to compile AutoHotkey scripts into EXEs using Ahk2Exe.

Resources

License

Stars

Watchers

Forks

Packages

No packages published