Rev 11759 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11340 | obado | 1 | |
2 | # How to update GeogebraWeb Library : |
||
3 | |||
4 | ## Download new version |
||
5 | |||
6 | Download the latest GGBWeb at http://dev.geogebra.org/download/web/ |
||
7 | |||
8 | Upgrade Geogebraweb : |
||
9 | |||
10 | ./compile --geogebra |
||
11 | |||
12 | ## Modify "deployggb.js" |
||
13 | Download the latest "deployggb.js" here : [www.geogebra.org/scripts/deployggb.js](https://www.geogebra.org/scripts/deployggb.js) |
||
14 | |||
15 | ## Adapt GGB code for WIMS |
||
16 | |||
17 | ### Hack WIMS 1 : |
||
18 | GGB use it's own hosted library. To use WIMS included GGB version, replace the original *getTubeURL()* geogebra function in *deployggb.js* by this : |
||
19 | |||
20 | var getTubeURL = function() { |
||
21 | return "scripts/js/geogebra/geogebraweb/"; |
||
22 | }; |
||
23 | |||
24 | ### Hack WIMS 2 : |
||
25 | Then, modify in "deployggb.js" `codebase = "https://cdn.geogebra.org/apps/" + latestVersion + "/"` |
||
26 | by `codebase = getTubeURL();` |
||
27 | |||
28 | ### Hack WIMS 3 : |
||
29 | Since WIMS 4.13 use ISO-xxx charsets (not UTF-8), you must add this to each 3 geogebra "####.cache.js" files (web/, web3d/, webSimple/) : |
||
30 | |||
31 | d.charset='utf-8'; |
||
32 | |||
33 | just next to this : |
||
34 | |||
35 | ()+'js/properties_keys_'+c+'.js');` |
||
36 | |||
37 | ## Publish new GGBWeb version into WIMS |
||
38 | * duplicate your geogebraweb folder |
||
39 | * rename it, so it contains the new version number |
||
40 | * zip it |
||
41 | * send it to wims.unice.fr/download server (ask his administrator bado@unice.fr) |
||
42 | * Update the variable vGeogebra in the ./compile file at WIMS root, so it contains the new Geogebra number version |
||
43 | * remove the duplicated folder and the zip archive |
||
44 | |||
45 | ## See More... |
||
46 | Nb : if you're curious to see non-obfuscated geogebra code, you have to follow these explanations : |
||
47 | [dev.geogebra.org/trac/wiki/SetUp](https://dev.geogebra.org/trac/wiki/SetUp) |