forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive_builder.livecodescript
More file actions
47 lines (40 loc) · 1.71 KB
/
archive_builder.livecodescript
File metadata and controls
47 lines (40 loc) · 1.71 KB
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
script "ArchiveBuilder"
command archiveBuilderRun pEdition, pVersion, pBuildNumber, pReleaseType
--builderLog "report", "Archiving symbols..."
--get shell("sh" && builderCommercialFolder() & "/build-archive.osx")
--builderLog "message", it
--builderLog "report", "Archiving complete."
builderLog "report", "Adding release to store..."
local tUpdaterText, tReleaseNotesBuilder
put builderSystemFolder() & slash & "release_notes_builder.livecodescript" into tReleaseNotesBuilder
dispatch "releaseNotesBuilderRun" to stack tReleaseNotesBuilder with pEdition, pVersion, pReleaseType
put the result into tUpdaterText
set the itemDel to "-"
if the number of items in pVersion is 1 then
put "-gm-1" after pVersion
end if
set the itemDel to comma
local tPostDataArray
put pVersion into tPostDataArray["version"]
put pBuildNumber into tPostDataArray["build_number"]
put pReleaseTYpe into tPostDataArray["type"]
put tUpdaterText into tPostDataArray["description"]
put "jobbies123!" into tPostDataArray["password"]
local tPostData
repeat for each line tKey in the keys of tPostDataArray
put "&" & tKey & "=" & urlencode(tPostDataArray[tKey]) after tPostData
end repeat
delete the first char of tPostData
local tResult
post tPostData to URL "http://livecode.com/livecode/building/release_create"
put the result into tResult
if the result is not empty then
builderLog "report", "Error adding release" && pVersion & " to store:" && tResult
throw "failure"
end if
if it is not 1 then
builderLog "report", it
throw "failure"
end if
builderLog "report", "Adding release complete."
end archiveBuilderRun