Skip to content

Commit af07da0

Browse files
committed
Merge pull request livecode#3445 from peter-b/bugfix-16696
[Bug 16696] Ensure that the correct release notes are installed
2 parents 0c1ba12 + a5dc2d5 commit af07da0

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

Installer/package.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ component Misc
144144
textfile "private:License Agreement.txt"
145145
textfile "private:about.txt"
146146
textfile "ide:Open Source Licenses.txt"
147-
file "ide:Release Notes.pdf"
147+
file "repo:LiveCodeNotes-[[EscapedVersionTag]].pdf" as "Release Notes.pdf"
148148

149149
component Plugins
150150
into [[ToolsFolder]]/Plugins place

builder/tools_builder.livecodescript

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ private command toolsBuilderMakePackage pVersion, pEdition, pPlatform, pEngineFo
8080
put "Commercial" into tBaseEditionType
8181
break
8282
end switch
83+
84+
-- Escape the version (by replacing all non-alphanumeric characters with "_")
85+
local tVersionEscaped
86+
put replaceText(pVersion,"\W","_") into tVersionEscaped
8387

8488
-- Compute the package temp folder
8589
local tTempFolder
@@ -137,6 +141,7 @@ private command toolsBuilderMakePackage pVersion, pEdition, pPlatform, pEngineFo
137141
end if
138142
packageCompilerConfigureVariable tPackager, "TodaysDate", "[[todaysDate]]"
139143
packageCompilerConfigureVariable tPackager, "VersionTag", pVersion
144+
packageCompilerConfigureVariable tPackager, "EscapedVersionTag", tVersionEscaped
140145
packageCompilerConfigureVariable tPackager, "ProductBranch", char 1 to 3 of pVersion
141146
packageCompilerConfigureVariable tPackager, "TargetArchitectures", "i386"
142147
if pPlatform is "linux-x86" then

docs/notes/bugfix-16696.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Include the correct version's release notes in the installer

0 commit comments

Comments
 (0)