Note that these instructions are only necessary for development work on Pixelot, to install the current version of Pixelot, do so from here.
- Within
runner\
runnpm run build-prod
- Then run
npm run dist:<target>
where<target>
is one ofwindows
,mac
, orlinux
(or justnpm run dist
to build all three) - Within
runner\dist\
you will find the distributable files for each target - Within
runner\dist\<target>
find the reference inpackage.json
to the engine library and correct the relative path to point to theengine
directory - Now run
npm run install
withinrunner\dist\<target>
- Delete the
game
folder within the runner (this will be created by the engine when building) - Finally, copy the built runner to
pixelot\runners\<target>
and rename the folder to 'Windows', 'Linux', or 'Mac'
Yourpixelot
directory should now look like (if you only want to build to Windows, the other folders aren't necessary):pixelot |___<everything else> |___ runners |_____Windows |_____Linux |_____Mac
- Within
pixelot\
runnpm run build
- Then run
npm run dist:<target>
where<target>
is one ofwindows
,mac
, orlinux
(or justnpm run dist
to build all three) - Follow instructions 3-5 from the previous section, in the
pixelot\dist\<target>
directory instead, to install the engine library and necessary packages - Take all files from
pixelot\dist\<target>\dist-ng
and move them up one level (deleting the extraprojects
andengine_assets
folders within).
This has been changed from how it was previously because otherwise the root directory of the UI would be
dist-ng
and notpixelot
which is what the engine expects.