Port of the Eterna puzzle progression for Android and iOS.
Interested in development? Join the discussion on the Eterna Discord!
- Checkout the eternajs submodule. (
git submodule initfollowed bygit submodule update) - Create a
./eternajs/.env.localand setMOBILE_APP=trueandDEBUG=false(you may also want to changeAPP_SERVER_URLandENGINE_LOCATION) - Run
npm install(which automatically installs eternajs dependencies and sets up our initial www folder as well) - Run
npx cordova prepare, which will:- Run our preprepare hooks, which clear out
wwwand then build EternaJS and this app intowww - Download any Cordova plugins
- Initialize the native code for the relevant platforms, and copy our config, resources, www, etc to them
- Run our preprepare hooks, which clear out
If you want to build for a specific platform you'll also need to install their respective prerequisites:
To quickly test the app, run npx cordova run <platform>
This will do the following:
- Run
cordova prepare, as above - Run
cordova compile, which actually builds native code for the relevant platform - Deploys to a device/emulator/web server depending on the configuration
npx cordova run browser is probably a good starting point, which will build the app for the browser, spin up
a local web server, and open your browser to it.
For more information, see the Cordova CI documentation
- Ensure you have a
./.env.localwithAPP_SERVER_URL=https://eternagame.organdINJECT_COOKIE_DOMAIN=.eternagame.org - Ensure you have a
./eternajs/.env.localwithAPP_SERVER_URL=https://eternagame.org,MOBILE_APP=true,DEBUG=false, andENGINE_LOCATIONset correctly - Run
npx cordova build --release(which will runcordova prepareandcordova compile)
