Work for VFPXDeployment
This commit is contained in:
45
BuildProcess/Thor_Update_FoxBin2PRG.prg
Normal file
45
BuildProcess/Thor_Update_FoxBin2PRG.prg
Normal file
@@ -0,0 +1,45 @@
|
||||
lparameters;
|
||||
toUpdateObject
|
||||
local;
|
||||
lcRepositoryURL as string, ;
|
||||
lcDownloadsBranch as string, ;
|
||||
lcDownloadsURL as string, ;
|
||||
lcVersionFileURL as string, ;
|
||||
lcZIPFileURL as string, ;
|
||||
lcRegisterWithThor as string
|
||||
|
||||
* Get the URL for the version and ZIP files.
|
||||
|
||||
lcRepositoryURL = 'https://github.com/fdbozzo/foxbin2prg'
|
||||
&& the URL for the project's repository
|
||||
* Note: If you use a more recent version of git, your default branch may not be "master".
|
||||
lcDownloadsBranch = 'master'
|
||||
lcDownloadsURL = strtran(m.lcRepositoryURL, 'github.com', ;
|
||||
'raw.githubusercontent.com') + '/' + m.lcDownloadsBranch + '/ThorUpdater/'
|
||||
lcVersionFileURL = m.lcDownloadsURL + 'FoxBin2PRGVersion.txt' &&'FoxBin2PRGVersion.txt'
|
||||
&& the URL for the file containing code to get the available version number
|
||||
lcZIPFileURL = m.lcDownloadsURL + 'FoxBin2PRG.zip'
|
||||
&& the URL for the zip file containing the project
|
||||
|
||||
|
||||
text to lcRegisterWithThor noshow textmerge
|
||||
messagebox('From the Thor menu, choose "More -> Open Folder -> Components" to see the folder where FoxBin2PRG was installed', 0, 'FoxBin2PRG Installed', 5000)
|
||||
endtext
|
||||
|
||||
* Set the properties of the passed updater object.
|
||||
|
||||
with m.toUpdateObject
|
||||
.ApplicationName = 'FoxBin2PRG'
|
||||
.VersionLocalFilename = 'FoxBin2PRGVersionFile.txt'
|
||||
.VersionFileURL = m.lcVersionFileURL
|
||||
.SourceFileUrl = m.lcZIPFileURL
|
||||
.Component = 'Yes'
|
||||
.Link = m.lcRepositoryURL
|
||||
.LinkPrompt = 'FoxBin2PRG Home Page'
|
||||
.ProjectCreationDate = date(2023, 8, 6)
|
||||
.RegisterWithThor = m.lcRegisterWithThor
|
||||
endwith
|
||||
|
||||
return m.toUpdateObject
|
||||
|
||||
*created by VFPX Deployment, 06.08.2023 15:23:02
|
||||
Reference in New Issue
Block a user