moved version number to external file

videotags-updates
Yuriy 11 months ago
parent 03c75ab073
commit 9ec17b0ead

1
.gitignore vendored

@ -18,3 +18,4 @@ Compile Scripts to EXE.ahk
Freedomain Video Uploader.exe Freedomain Video Uploader.exe
Lib/LBRY Process Killer.exe Lib/LBRY Process Killer.exe
Lib/chrome-win64 Lib/chrome-win64
Lib/Version.ini

@ -35,6 +35,16 @@ ScriptToCompile = SocialMediaPoster
AHKFilepath = %A_ScriptDir%\Freedomain Video Uploader.ahk AHKFilepath = %A_ScriptDir%\Freedomain Video Uploader.ahk
Exefilepath = %A_ScriptDir%\Freedomain Video Uploader.exe Exefilepath = %A_ScriptDir%\Freedomain Video Uploader.exe
icopath = %A_ScriptDir%\Assets\FreedomainVideo.ico icopath = %A_ScriptDir%\Assets\FreedomainVideo.ico
VersionIniFP = %A_ScriptDir%\Version.ini
; Bump the version number in the version.ini file
IniRead, VersionNumber, %VersionIniFP%, Video-Uploader, Version, 0.0 ; , Filename, Section, Key [, Default]
VersionNumber += .01
VersionNumber := SubStr(VersionNumber, 1, 4)
; Msgbox % "VersionNumber: " VersionNumber
IniWrite, %VersionNumber%, %VersionIniFP%,Video-Uploader, Version

@ -31,9 +31,7 @@ global FullScriptName
ScriptName = Freedomain Video Uploader
ScriptVersion = 3.26
FullScriptName := ScriptName . " - " . ScriptVersion
UStartTime := A_TickCount ; start time UStartTime := A_TickCount ; start time
@ -50,6 +48,7 @@ UStartTime := A_TickCount ; start time
#include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\Zip.ahk #include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\Zip.ahk
#include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\URLDownloadToVar.ahk #include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\URLDownloadToVar.ahk
;---Global Variables--- ;---Global Variables---
;------------------------------------------------ ;------------------------------------------------
global LBRYResolveAPICommand global LBRYResolveAPICommand
@ -115,6 +114,13 @@ global ScriptSettingsSection
ScriptSettingsSection := "VideoUploader" ScriptSettingsSection := "VideoUploader"
FileInstall, Version.ini, %A_ScriptDir%\Lib\Version.ini, 1
IniRead, ScriptVersion, %A_ScriptDir%\Lib\Version.ini,Video-Uploader, Version, 0.0
ScriptName = Freedomain Video Uploader
FullScriptName := ScriptName . " - " . ScriptVersion
;---Script Settings--- ;---Script Settings---
;------------------------------------------------ ;------------------------------------------------
; Checkbox Settings ; Checkbox Settings

@ -1 +1 @@
Subproject commit 05800d08a98cf5d411cf99884007da9c2901385b Subproject commit e32fe026e952738a1ebda7cf81c626d0528fa660

@ -0,0 +1,2 @@
[Video-Uploader]
Version=3.29
Loading…
Cancel
Save