Skip to content

Commit

Permalink
add dist makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigh committed Oct 7, 2022
1 parent d294a15 commit 0341e94
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ $RECYCLE.BIN/
.vscode

dist/
*.exe
*.ini
*.log
Binary file added ahk_compiler/Ahk2Exe.exe
Binary file not shown.
Binary file added ahk_compiler/AutoHotkeyU64.exe
Binary file not shown.
Binary file added ahk_compiler/mpress.exe
Binary file not shown.
10 changes: 3 additions & 7 deletions dist.ahk
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
; # dependency:
; # autohotkey in PATH
; # ahk2exe in PATH
; # mpress in ahk2exe path

#SingleInstance, Force
SetWorkingDir, %A_ScriptDir%
Expand Down Expand Up @@ -30,19 +26,19 @@ if InStr(FileExist("dist"), "D")

FileCreateDir, dist

RunWait, ahk2exe.exe /in updater.ahk /out updater.exe /compress 1
RunWait, ahk_compiler/ahk2exe.exe /in updater.ahk /out updater.exe /compress 1 /base "ahk_compiler/AutoHotkeyU64.exe"
If (ErrorLevel)
{
MsgBox, % "updater.ahk`nERROR CODE=" ErrorLevel
ExitApp
}
RunWait, ahk2exe.exe /in %ahkFilename% /out %binaryFilename% /compress 1
RunWait, ahk_compiler/ahk2exe.exe /in %ahkFilename% /out %binaryFilename% /compress 1 /base "ahk_compiler/AutoHotkeyU64.exe"
If (ErrorLevel)
{
MsgBox, % ahkFilename "`nERROR CODE=" ErrorLevel
ExitApp
}
RunWait, autohotkey.exe .\%ahkFilename% --out=version
RunWait, ahk_compiler/AutoHotkeyU64.exe .\%ahkFilename% --out=version
If (ErrorLevel)
{
MsgBox, % "get version`nERROR CODE=" ErrorLevel
Expand Down
3 changes: 3 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

default:
ahk_compiler/AutoHotkeyU64.exe dist.ahk

0 comments on commit 0341e94

Please sign in to comment.