forked from VFPX/GoFish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Thor_Update_GoFish.prg
49 lines (39 loc) · 1.83 KB
/
Thor_Update_GoFish.prg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
*File to control Thor CFU for application GoFish
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/VFPX/GoFish'
&& 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 + '_GoFishVersionFile.txt' &&'GoFishVersion.txt'
&& the URL for the file containing code to get the available version number
lcZIPFileURL = m.lcDownloadsURL + 'GoFish.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 GoFish was installed', 0, 'GoFish Installed', 5000)
endtext
* Set the properties of the passed updater object.
with m.toUpdateObject
.ApplicationName = 'GoFish'
.VersionLocalFilename = 'GoFishVersionFile.txt'
.VersionFileURL = m.lcVersionFileURL
.SourceFileUrl = m.lcZIPFileURL
.Component = 'No'
.Link = m.lcRepositoryURL
.LinkPrompt = 'GoFish Home Page'
.ProjectCreationDate = date(2023, 12, 16)
.Dependencies = '' && a comma or space delimited list of other Thor applications (ApplicationName) that this project depends on
.RegisterWithThor = m.lcRegisterWithThor
endwith
return m.toUpdateObject
*created by VFPX Deployment, 16.12.2023 16:16:54