Skip to content

Commit

Permalink
Made windows installer take version from the VERSION file
Browse files Browse the repository at this point in the history
  • Loading branch information
nimaid committed Nov 28, 2019
1 parent c58ddd0 commit e2caa5c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ venv.bak/
.mypy_cache/
LPHK.lnk
user_layouts/*.*
install/windows/__setup__/*
install/__setup__/*
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.3
b0.1.4
18 changes: 16 additions & 2 deletions install/windows/windows.iss
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define FileHandle
#define FileLine
#define MyAppVersion
#sub ProcessFileLine
#define FileLine = FileRead(FileHandle)
#define public MyAppVersion = FileLine
#pragma message "Version: " + MyAppVersion
#endsub
#for {FileHandle = FileOpen("..\..\VERSION"); \
FileHandle && !FileEof(FileHandle); ""} \
ProcessFileLine
#if FileHandle
#expr FileClose(FileHandle)
#endif

#define MyAppName "LPHK"
#define MyAppVersion "b0.1.3"
#define MyAppPublisher "Ella Jameson (nimaid)"
#define MyAppURL "https://github.com/nimaid/LPHK"
#define MyAppExeName "run.bat"
Expand All @@ -22,7 +36,7 @@ DefaultDirName={autopf}\{#MyAppName}
DisableProgramGroupPage=yes
; Remove the following line to run in administrative install mode (install for all users.)
PrivilegesRequired=lowest
OutputDir=.\__setup__
OutputDir=..\__setup__
OutputBaseFilename=LPHK_setup_{#MyAppVersion}
SetupIconFile=..\..\resources\LPHK.ico
Compression=lzma
Expand Down

0 comments on commit e2caa5c

Please sign in to comment.