Skip to content

Commit

Permalink
Do not add intro footer in test build.
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsv committed Jun 17, 2024
1 parent aedefaa commit 3888059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/create_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ def CreateWebsite (rootDir, websiteDir, version, testBuild):
replacer.ReplaceTokenContent ('<!-- website init start -->', '<!-- website init end -->', initScriptContent)
replacer.ReplaceTokenContent ('<!-- embed init start -->', '<!-- embed init end -->', embedInitScriptContent)
metaFile = os.path.join (rootDir, 'plugins', 'website_meta_data.txt')
introFooterFile = os.path.join (rootDir, 'plugins', 'website_intro_footer_data.txt')
if os.path.exists (metaFile):
metaContent = Utils.GetFileContent (metaFile)
replacer.ReplaceTokenContent ('<!-- meta start -->', '<!-- meta end -->', metaContent)
if os.path.exists (introFooterFile):
introFooterFile = os.path.join (rootDir, 'plugins', 'website_intro_footer_data.txt')
if os.path.exists (introFooterFile) and not testBuild:
introFooterContent = Utils.GetFileContent (introFooterFile)
replacer.ReplaceTokenContent ('<!-- intro footer start -->', '<!-- intro footer end -->', introFooterContent)
websiteAnalyticsFile = os.path.join (rootDir, 'plugins', 'website_analytics_data.txt')
Expand Down

0 comments on commit 3888059

Please sign in to comment.