The unofficial best way to play Dofus Touch
This is a README, which is used to explain key points in the repository. It contains severaml points that have been raised, and things to know in order to make the app work.
Simply follow the Dockerfile requirements (JDK, Node, SDK, etc) and adapt it to your own operating system.
Once done, you will have access to npm scripts in the package.json.
You will need two core dependencies : electron and cordova.
npm run serve:electron
npm startreleasing for all platform : docker
docker build -t mirageold .run and enter inside
docker run -it mirageold /bin/bashthen you have to get the source back (TODO copie in dockerfile?)
git clone https://github.com/aejii/AE-mirage-DT.git
cd AE-mirage-DTinstall npm package
npm irun release script
./scripts/release.shapk and desktop app are in release folder you just have to export them out of the docker and you are done (docker cp)
releasing without docker :
look inside the script directory
The debug bridge is the middleware that allows cordova to deploy the app on testing devices. It should be included into the Androdi SDK.
When available in the command line, you will get the following commands :
TODOThe scripts folder contains several scripts that are used to deployment and integration.
You can read them and use their code if you'd like to, but they're built around the Docker image.
- Make sur to have a
wwwfolder to let Cordova know that this is a Cordova-ready folder.
platforms/android/local.propertiescan sometimes be created and mess up the SDK path. In case you encounter this issue, remove this file.- In
platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewEngine.java @ initWebViewSettingsadd this to allow the viewport to be resized
settings.setUseWideViewPort(true);
settings.setLoadWithOverviewMode(true);- In
platforms\android\app\src\main\java\com\mirageold\mirageoldDT\MainActivity.java @ onCreate, at the end, add those lines to ensure the phone does not go into sleep mode and the status bar does not show up at all. This comes fromimport android.view.WindowManager;, which needs to be added too.
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);- The packageer requires a
package.jsonin the app root folder to properly work - It also requires an
appfolder in the root folder, which contains the compiled application