Skip to content

Commit

Permalink
Merge pull request #3 from Nigh/prop-set-fux
Browse files Browse the repository at this point in the history
Prop set fix
  • Loading branch information
Nigh authored Sep 7, 2023
2 parents d4cfe2f + 51ed88b commit a03fc45
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 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
3 changes: 2 additions & 1 deletion meta.ahk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

FileEncoding("UTF-8")
appName:="auto upgrader"
version:="0.3.3"
version:="0.3.4"
versionFilename:="version.txt"
ahkFilename:="app.ahk"
binaryFilename:="app.exe"
Expand All @@ -11,4 +11,5 @@ update_log:="
(
Replaced compiler binary source
Removed dead GitHub mirror
Fixed property set in the compiled executable's version information
)"

0 comments on commit a03fc45

Please sign in to comment.