Skip to content

Commit

Permalink
Fixed property set in version information
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigh committed Sep 7, 2023
1 parent c508dcb commit 4c500ed
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ $RECYCLE.BIN/
dist/

*.ini
compile_prop.ahk
5 changes: 1 addition & 4 deletions app.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
SetWorkingDir(A_ScriptDir)
#SingleInstance force
#include meta.ahk
;@Ahk2Exe-SetName %appName%
;@Ahk2Exe-SetVersion %version%
;@Ahk2Exe-SetMainIcon icon.ico
;@Ahk2Exe-ExeName %appName%
#include *i compile_prop.ahk

#include prod.ahk

Expand Down
15 changes: 15 additions & 0 deletions distribution.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@ SetWorkingDir(A_ScriptDir)

#include meta.ahk

try
{
props := FileOpen("compile_prop.ahk", "w")
props.WriteLine(";@Ahk2Exe-SetName " appName)
props.WriteLine(";@Ahk2Exe-SetVersion " version)
props.WriteLine(";@Ahk2Exe-SetMainIcon icon.ico")
props.WriteLine(";@Ahk2Exe-ExeName " appName)
props.Close()
}
catch as e
{
MsgBox("Writting compile props`nERROR CODE=" . e.Message)
ExitApp
}

if FileExist(binaryFilename)
{
FileDelete(binaryFilename)
Expand Down

0 comments on commit 4c500ed

Please sign in to comment.