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 init
followed bygit submodule update
) - Create a
./eternajs/.env.local
and setMOBILE_APP=true
andDEBUG=false
(you may also want to changeAPP_SERVER_URL
andENGINE_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
www
and 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.local
withAPP_SERVER_URL=https://eternagame.org
andINJECT_COOKIE_DOMAIN=.eternagame.org
- Ensure you have a
./eternajs/.env.local
withAPP_SERVER_URL=https://eternagame.org
,MOBILE_APP=true
,DEBUG=false
, andENGINE_LOCATION
set correctly - Run
npx cordova build --release
(which will runcordova prepare
andcordova compile
)