Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsv committed May 5, 2024
2 parents e9e7a51 + fd00872 commit 056b3f8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
12 changes: 8 additions & 4 deletions tools/create_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,14 @@ def CreateWebsite (rootDir, websiteDir, version, testBuild):
if os.path.exists (metaFile):
metaContent = Utils.GetFileContent (metaFile)
replacer.ReplaceTokenContent ('<!-- meta start -->', '<!-- meta end -->', metaContent)
analyticsFile = os.path.join (rootDir, 'plugins', 'website_analytics_data.txt')
if os.path.exists (analyticsFile) and not testBuild:
analyticsContent = Utils.GetFileContent (analyticsFile)
replacer.ReplaceTokenContent ('<!-- analytics start -->', '<!-- analytics end -->', analyticsContent)
websiteAnalyticsFile = os.path.join (rootDir, 'plugins', 'website_analytics_data.txt')
if os.path.exists (websiteAnalyticsFile) and not testBuild:
websiteAnalyticsContent = Utils.GetFileContent (websiteAnalyticsFile)
replacer.ReplaceTokenContent ('<!-- website analytics start -->', '<!-- website analytics end -->', websiteAnalyticsContent)
embedAnalyticsFile = os.path.join (rootDir, 'plugins', 'embed_analytics_data.txt')
if os.path.exists (websiteAnalyticsFile) and not testBuild:
embedAnalyticsContent = Utils.GetFileContent (embedAnalyticsFile)
replacer.ReplaceTokenContent ('<!-- embed analytics start -->', '<!-- embed analytics end -->', embedAnalyticsContent)
replacer.WriteToFile (htmlFilePath)

def CreateEnginePackage (rootDir, engineDir, websiteDir):
Expand Down
4 changes: 2 additions & 2 deletions website/embed.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<script type="text/javascript" src="../build/website_dev/o3dv.website.min.js"></script>
<!-- website end -->

<!-- analytics start -->
<!-- embed analytics start -->
<script type="text/javascript">
OV.SetWebsiteEventHandler ((eventName, eventLabel, eventParams) => {
console.log ({
Expand All @@ -26,7 +26,7 @@
});
});
</script>
<!-- analytics end -->
<!-- embed analytics end -->

<!-- embed init start -->
<script type="text/javascript">
Expand Down
4 changes: 2 additions & 2 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<!-- plugins start -->
<!-- plugins end -->

<!-- analytics start -->
<!-- website analytics start -->
<script type="text/javascript">
OV.SetWebsiteEventHandler ((eventName, eventLabel, eventParams) => {
console.log ({
Expand All @@ -29,7 +29,7 @@
});
});
</script>
<!-- analytics end -->
<!-- website analytics end -->

<!-- website init start -->
<script type="text/javascript">
Expand Down

0 comments on commit 056b3f8

Please sign in to comment.