Easycon UniApp Installation Guide
The method of installing and using Easycon in uniapp is as follows:
- Execute the following command in the root directory of the uniapp project to install the easycon plugin:
- Install the Easycon CLI globally using npm.
- Create a configuration file named easycon.json in the root directory of the Uniapp project to set up parameters for the easycon command. For example:
- {
“appid”: “your application id”,
“privateKeyPath”: “the location of your private key file”,
“uniappOutputDir”: “the directory where your uniapp output is saved”,
“easyconOutputDir”: “the directory where your easycon output is saved”
} - Appid is the ID of your Easycon application, which can be obtained from the Easycon developer backend.
- `privateKeyPath is the file path for your Easycon application’s private key.`
- uniappOutputDir is the directory path of the output folder for uniapp compilation.
- easyconOutputDir is the path of the output directory for easycon compilation.
- Compile and generate the Easycon application by running the following command in the root directory of the uniapp project.
- easycon construction
- After compiling, the Easycon application’s related files and directories will be generated in the easyconOutputDir directory. Simply package these files and directories into a .zip file, then you can upload and publish the application on the Easycon developer platform.
This is the method for installing and using Easycon in Uniapp. For more detailed configuration and usage instructions, refer to Easycon’s official documentation.