This guide explains how to build and deploy an update for wow.export.
- Compile a new build, for example
node ./build.js win-x64
- Publish the new build,
node ./publish.js win-x64
SFTP settings will need to be configured in the environment. See available SFTP configuration at https://www.npmjs.com/package/ssh2-sftp-client. For the
privateKey
field, provide a local path.
- Compile a new build, for example
node ./build.js win-x64
. - Move
update
andupdate.json
out of the build and upload them to the update server for this build flavour (win-x64
based on the example). (A) - Ensure on the update server the update files are publicly accessible at the update URL combined with the build flavor. For example, if the update path is
https://kruithne.net/wow.export/
then thewin-x64
files need to be available athttps://kruithne.net/wow.export/win-x64/update
andhttps://kruithne.net/wow.export/win-x64/update.json
. - Create a ZIP archive of the remaining files (be sure both
update
andupdate.json
are not included) for the build and upload where needed for new users to download.
(A) To prevent potential issues for users actively updating, a best practice would be to rename update
and update.json
to update2
and update2.json
respectively while uploading/moving, and then delete/rename afterwards.
(B) Be sure that update
and update.json
are both purged from any caching services (such as CloudFlare).