You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/en/developers/terre.md
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,53 @@ You need to run the build script to generate a releasable version.
53
53
54
54
After the build is complete, you can find the build artifacts in the `release` directory.
55
55
56
+
## Update the WebGAL Engine Template Included in Terre
57
+
58
+
Generally, we will update the latest version of the engine template to the Terre project after the WebGAL update. If you want to use your customized WebGAL engine in Terre, please follow these steps:
59
+
60
+
1. Clone the WebGAL engine project (it is recommended to clone in the adjacent directory, so that you can use the automation script)
2.**(Assuming you cloned the WebGAL project in the directory adjacent to the Terre project, developers who did not do this please ignore)** Run the automation script in the WebGAL engine repository to build WebGAL to WebGAL Terre
67
+
68
+
```
69
+
sh release-to-terre.sh
70
+
```
71
+
72
+
:::warning
73
+
**The following steps apply to manually building and updating the engine template in Terre. Developers using automated scripts please ignore!**
74
+
:::
75
+
76
+
2. Build the WebGAL project (this step is executed in the WebGAL engine repository)
77
+
78
+
```
79
+
yarn
80
+
yarn build
81
+
```
82
+
83
+
3. Delete the engine template in WebGAL Terre and move the build product of the engine project to the template directory of WebGAL Terre
84
+
85
+
**Here we assume that you cloned the WebGAL project in the directory adjacent to the Terre project. If you have a different directory structure, please modify it according to the actual situation.**
86
+
87
+
```
88
+
# Enter the Terre directory
89
+
cd ../WebGAL_Terre/packages/terre2/assets/templates/WebGAL_Template || exit
90
+
# Delete other files
91
+
rm -r assets
92
+
rm -r index.html
93
+
rm -r webgal-serviceworker.js
94
+
95
+
# Enter the WebGAL build directory
96
+
cd ../../../../../../WebGAL/packages/webgal || exit
0 commit comments