Skip to content

Commit 3888059

Browse files
committed
Do not add intro footer in test build.
1 parent aedefaa commit 3888059

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/create_package.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ def CreateWebsite (rootDir, websiteDir, version, testBuild):
6464
replacer.ReplaceTokenContent ('<!-- website init start -->', '<!-- website init end -->', initScriptContent)
6565
replacer.ReplaceTokenContent ('<!-- embed init start -->', '<!-- embed init end -->', embedInitScriptContent)
6666
metaFile = os.path.join (rootDir, 'plugins', 'website_meta_data.txt')
67-
introFooterFile = os.path.join (rootDir, 'plugins', 'website_intro_footer_data.txt')
6867
if os.path.exists (metaFile):
6968
metaContent = Utils.GetFileContent (metaFile)
7069
replacer.ReplaceTokenContent ('<!-- meta start -->', '<!-- meta end -->', metaContent)
71-
if os.path.exists (introFooterFile):
70+
introFooterFile = os.path.join (rootDir, 'plugins', 'website_intro_footer_data.txt')
71+
if os.path.exists (introFooterFile) and not testBuild:
7272
introFooterContent = Utils.GetFileContent (introFooterFile)
7373
replacer.ReplaceTokenContent ('<!-- intro footer start -->', '<!-- intro footer end -->', introFooterContent)
7474
websiteAnalyticsFile = os.path.join (rootDir, 'plugins', 'website_analytics_data.txt')

0 commit comments

Comments
 (0)