|
1 | | - |
2 | | -## Folder description |
3 | | - |
4 | | -- assets-dev: The plain resources for dev, debugging |
5 | | -- assets: The encrypted resources for online or publish |
6 | | - |
7 | | -## Build and run |
8 | | - |
| 1 | + |
| 2 | +## Folder description |
| 3 | + |
| 4 | +- assets-dev: The plain resources for dev, debugging |
| 5 | +- assets: The encrypted resources for online or publish |
| 6 | + |
| 7 | +## Build and run |
| 8 | + |
9 | 9 | - Clone adxe(another cocos2d-x fork) and run setup.py in root of engine |
10 | 10 |
|
11 | 11 | git clone https://github.com/adxeproject/adxe |
12 | 12 |
|
13 | | -# Ensure install visual studio 2019/2022 |
14 | | -- Use cmake to build |
15 | | -cmake -B build_x86 -A Win32 -DBUILD_EXTENSION_FAIRYGUI=OFF -DBUILD_EXTENSION_GUI=OFF |
16 | | -cmake --build build_x86 --target HelloLua |
17 | | - |
| 13 | +- Use cmake to build |
| 14 | + |
| 15 | +```bat |
| 16 | +REM Ensure visual studio 2019 or 2022 installed |
| 17 | +cmake -B build_x86 -A Win32 -DBUILD_EXTENSION_FAIRYGUI=OFF -DBUILD_EXTENSION_GUI=OFF |
| 18 | +cmake --build build_x86 --target HelloLua |
| 19 | +``` |
| 20 | + |
18 | 21 | - Open build_x86/HelloLua.sln, and press F5 to run, by default the vs debugging working directory is the encrypted folder `assets`, |
19 | 22 | everything should be fine if the decrypt work well. |
20 | | - |
21 | | -## Use a new key & ivec to encrypt resources |
22 | | - |
23 | | -- Method A: |
24 | | - - Delete file encrypt-cfg.xml and run do-encrypt.bat |
25 | | - |
26 | | -- Method B: |
27 | | - - run command: "%XS_INSTDIR%\x-studio" -c -enc -nk -cfg=.\encrypt-cfg.xml -i=.\assets-dev -o=.\assets |
28 | | - |
29 | | -- After reencrypt with new key, you needs change it at AppDelegate.cpp |
30 | | - |
31 | | -## For more usage of x-studio encrypt system, run follow command: |
32 | | - |
33 | | -"%XS_INSTDIR%\x-studio" -c --help |
| 23 | + |
| 24 | +## Use a new key & ivec to encrypt resources |
| 25 | + |
| 26 | +- Method A: |
| 27 | + - Delete file encrypt-cfg.xml and run do-encrypt.bat |
| 28 | + |
| 29 | +- Method B: |
| 30 | + - run command: "%XS_INSTDIR%\x-studio" -c -enc -nk -cfg=.\encrypt-cfg.xml -i=.\assets-dev -o=.\assets |
| 31 | + |
| 32 | +- After reencrypt with new key, you needs change it at AppDelegate.cpp |
| 33 | + |
| 34 | +## For more usage of x-studio encrypt system, run follow command: |
| 35 | + |
| 36 | +"%XS_INSTDIR%\x-studio" -c --help |
0 commit comments