154aa6d63Sopenharmony_ci# Instructions 254aa6d63Sopenharmony_ciAutosign help you to sign app more efficiently 354aa6d63Sopenharmony_ci 454aa6d63Sopenharmony_ci 554aa6d63Sopenharmony_ci## Dependency 654aa6d63Sopenharmony_ciThis signature script depends on Python 3.x. 754aa6d63Sopenharmony_ci 854aa6d63Sopenharmony_ci 954aa6d63Sopenharmony_ci 1054aa6d63Sopenharmony_ci## Configuration 1154aa6d63Sopenharmony_ci 1254aa6d63Sopenharmony_ciUse your favorite text editor to open `autosign.config` to configure everything. 1354aa6d63Sopenharmony_ciBelow config must be replaced: 1454aa6d63Sopenharmony_ci* config.signtool 1554aa6d63Sopenharmony_ci* All password 1654aa6d63Sopenharmony_ci 1754aa6d63Sopenharmony_ci### 1. For Windows 1854aa6d63Sopenharmony_ci 1954aa6d63Sopenharmony_ci1. Run the `create_root.bat` file in the terminal to generate root certs. 2054aa6d63Sopenharmony_ci2. Prepare your unsigned app and provision profile. Make sure correct config file location. 2154aa6d63Sopenharmony_ci3. Run the `create_appcert_sign_profile.bat` file in the terminal to generate app certs. 2254aa6d63Sopenharmony_ci4. Run the `sign_hap.bat` file in the terminal to start signing. 2354aa6d63Sopenharmony_ci5. The generated artifacts will be saved in the folder you set in `config.targetDir` as default. 2454aa6d63Sopenharmony_ci 2554aa6d63Sopenharmony_ci### 2. For Linux or MacOS 2654aa6d63Sopenharmony_ci 2754aa6d63Sopenharmony_ci 2854aa6d63Sopenharmony_ci1. Add executable permission into `create_root.sh`, `create_appcert_sign_profile.sh` and `sign_hap.sh`. 2954aa6d63Sopenharmony_ci 3054aa6d63Sopenharmony_ci ```bash 3154aa6d63Sopenharmony_ci chmod a+x create_root.sh 3254aa6d63Sopenharmony_ci 3354aa6d63Sopenharmony_ci chmod a+x create_appcert_sign_profile.sh 3454aa6d63Sopenharmony_ci 3554aa6d63Sopenharmony_ci chmod a+x sign_hap.sh 3654aa6d63Sopenharmony_ci 3754aa6d63Sopenharmony_ci ``` 3854aa6d63Sopenharmony_ci 3954aa6d63Sopenharmony_ci2. Run the `create_root.sh` file in the terminal to generate root certs. 4054aa6d63Sopenharmony_ci 4154aa6d63Sopenharmony_ci ```bash 4254aa6d63Sopenharmony_ci ./create_root.sh 4354aa6d63Sopenharmony_ci ``` 4454aa6d63Sopenharmony_ci3. Prepare your unsigned app and provision profile. Make sure correct config file location. 4554aa6d63Sopenharmony_ci4. Run the `create_appcert_sign_profile.sh` file in the terminal to generate app certs. 4654aa6d63Sopenharmony_ci ```bash 4754aa6d63Sopenharmony_ci ./create_appcert_sign_profile.sh 4854aa6d63Sopenharmony_ci ``` 4954aa6d63Sopenharmony_ci5. Run the `sign_hap.sh` file in the terminal to start signing. 5054aa6d63Sopenharmony_ci ```bash 5154aa6d63Sopenharmony_ci ./sign_hap.sh 5254aa6d63Sopenharmony_ci ``` 5354aa6d63Sopenharmony_ci6. The generated artifacts will be saved in the folder you set in `config.targetDir` as default. 54