This repository contains the supporting assets for avatars in the Decentraland world.
- Install Node dependencies
npm install
- Create a file containing a keypair of the Ethereum address and private key to deploy to the content server.
{
"ethAddress": "...",
"privateKey": "..."
}
ℹ️ This script will generate a new entity every time the script is run
npm run deploy
generates the new assets and deploys them to the specified content server.
It needs the following arguments to be passed:
--identityFilePath
: file path to the key/address pair to sign the messages for the content server validation.--target
: the target URL of the content server where the assets will be deployed.--id
: id of the assets to be deployed. It allows wildcards to specify multiple assets. Examples:*
ordcl://base-avatars/*
.
npm run deploy -- --identityFilePath "/path/to/admin/key/file" --target "https://peer.decentraland.zone" --id "dcl://base-avatars/BaseMale"
npm run deploy -- --identityFilePath "/path/to/admin/key/file" --target "https://peer.decentraland.zone" --id "dcl://base-avatars/BaseFemale" --id "dcl://base-avatars/BaseMale"
npm run deploy -- --identityFilePath "/path/to/admin/key/file" --target "https://peer.decentraland.zone" --id "dcl://base-avatars/*"
ℹ️ A running local server is necessary to test this.
npm run deploy -- --identityFilePath "/path/to/admin/key/file" --target "http://localhost:6969" --id "*"