- Use yarn to install dependencies
yarn installthen pass
yarn devStartup project.
-
Please add code only related to the main process of Electron in the
src/maindirectory. Code only related to the rendering process should be added in thesrc/rendererdirectory. Add code that can be used by both processes in thesrc/universaldirectory. Note: The rendering process does not have theNode.jscapability. All rendering processes need to useNode.js modulesrelated code, please add events undersrc/main/events/picgoCoreIPC.tsfor processing. -
Please add all cross-process event names in
src/universal/events/constants.ts. -
Please add all global type definitions in
src/universal/types/, if it isenum, please add it insrc/universal/types/enum.ts.
-
Create a language
ymlfile underpublic/i18n/, for examplezh-Hans.yml. Then refer tozh-CN.ymloren.ymlto write language files. Also note that PicGo will display the name of the language to the user viaLANG_DISPLAY_LABELin the language file. -
Add a default language to
src/universal/i18n/index.ts. wherelabelis the value ofLANG_DISPLAY_LABELin the language file, andvalueis the name of the language file. -
If you are updating an existing language file, be sure to run
yarn gen-i18nafter the update to ensure that the correct language definition file can be generated.
- Please check that the code has no extra comments,
console.logand other debugging code. - Before submitting the code, please execute the command
git add . && yarn czto invoke PicGo's Code Submission Specification Tool. Submit code through this tool.