• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Instructions
2Autosign help you to sign app more efficiently
3
4
5## Dependency
6This signature script depends on Python 3.x.
7
8
9
10## Configuration
11
12Use your favorite text editor to open `autosign.config` to configure everything.
13Below config must be replaced:
14* config.signtool
15* All password
16
17### 1. For Windows
18
191. Run the `create_root.bat` file in the terminal to generate root certs.
202. Prepare your unsigned app and provision profile. Make sure correct config file location.
213. Run the `create_appcert_sign_profile.bat` file in the terminal to generate app certs.
224. Run the `sign_hap.bat` file in the terminal to start signing.
235. The generated artifacts will be saved in the folder you set in `config.targetDir` as default.
24
25### 2. For Linux or MacOS
26
27
281. Add executable permission into `create_root.sh`, `create_appcert_sign_profile.sh` and `sign_hap.sh`.
29
30   ```bash
31   chmod a+x create_root.sh
32
33   chmod a+x create_appcert_sign_profile.sh
34
35   chmod a+x sign_hap.sh
36
37   ```
38
392. Run the `create_root.sh` file in the terminal to generate root certs.
40
41   ```bash
42   ./create_root.sh
43   ```
443. Prepare your unsigned app and provision profile. Make sure correct config file location.
454. Run the `create_appcert_sign_profile.sh` file in the terminal to generate app certs.
46    ```bash
47    ./create_appcert_sign_profile.sh
48    ```
495. Run the `sign_hap.sh` file in the terminal to start signing.
50   ```bash
51   ./sign_hap.sh
52   ```
536. The generated artifacts will be saved in the folder you set in `config.targetDir` as default.
54