|
2 | 2 |
|
3 | 3 | Follow the [instructions](https://docs.platformio.org/en/latest/core/installation/methods/index.html) to install PlatformIO. |
4 | 4 |
|
5 | | -Note there are two options: |
| 5 | +Note there are two options for using PlatformIO: |
6 | 6 |
|
7 | 7 | - [Core CLI](https://docs.platformio.org/en/latest/core/index.html) |
8 | 8 | - [VSCode IDE](https://docs.platformio.org/en/latest/integration/ide/vscode.html#ide-vscode) |
9 | 9 |
|
| 10 | +There are two types wolfSSL libraries for PlatformIO: |
10 | 11 |
|
11 | | -## Publishing |
12 | | - |
13 | | -The PlatformIO Core CLI is needed to publish wolfSSL: |
14 | | - |
15 | | -See also the [Arduino](../ARDUINO/README.md) publishing notes. |
16 | | - |
17 | | - |
18 | | -### Publish PlatformIO Arduino Library with Windows |
19 | | - |
20 | | -The wolfSSL publishing is done from the `scripts`. Here are somple examples: |
21 | | - |
22 | | -Setup the PlatformIO CLI: |
23 | | - |
24 | | -```dos |
25 | | -set PATH=%PATH%;C:\Users\%USERNAME%\.platformio\penv\Scripts\ |
26 | | -pio --help |
27 | | -pio account show |
28 | | -``` |
29 | | - |
30 | | -Publish |
31 | | - |
32 | | -```dos |
33 | | -pio pkg publish --owner wolfSSL C:\workspace\Arduino-wolfSSL |
34 | | -``` |
35 | | - |
36 | | -### Publish with Linux |
| 12 | +- Regular (release): https://registry.platformio.org/libraries/wolfssl/wolfssl |
| 13 | +- Arduino (release): https://registry.platformio.org/libraries/wolfssl/Arduino-wolfSSL |
37 | 14 |
|
38 | | -```bash |
39 | | -set PATH=%PATH%;C:\Users\%USERNAME%\.platformio\penv\Scripts\ |
40 | | -pio --help |
41 | | -pio account show |
42 | | -``` |
| 15 | +There are staging / preview libraries for each of the two types wolfSSL libraries for PlatformIO: |
43 | 16 |
|
44 | | -```bash |
45 | | -pio pkg publish --owner wolfSSL ~\workspace\Arduino-wolfSSL |
46 | | -``` |
| 17 | +- Regular (staging / preview): https://registry.platformio.org/libraries/wolfssl-staging/wolfSSL |
| 18 | +- Arduino (staging / preview): https://registry.platformio.org/libraries/wolfssl-staging/Arduino-wolfSSL |
47 | 19 |
|
48 | | -### Create a staging / preview wolfssl org |
| 20 | +# Examples |
49 | 21 |
|
50 | | -See |
| 22 | +See the [examples directory](./examples/) |
51 | 23 |
|
52 | | -``` |
53 | | -pio org create wolfssl-staging --email support@wolfssl.com --displayname "testing preview wolfssl" |
54 | | -``` |
55 | | - |
56 | | -### Add user to org |
57 | | - |
58 | | -The creator of an org is automatically added as user / owner at org creation time. Others can be added: |
59 | | - |
60 | | -``` |
61 | | -pio org add wolfssl-staging gojimmypi |
62 | | -``` |
63 | | - |
64 | | -### Publish Arduino wolfSSL to staging / preview site: |
65 | | - |
66 | | -``` |
67 | | -pio pkg publish --owner wolfssl-staging C:\workspace\Arduino-wolfSSL |
68 | | -``` |
69 | | - |
70 | | -### Publish Regular wolfSSL to staging / preview site: |
71 | | - |
72 | | -``` |
73 | | -pio pkg publish --owner wolfssl-staging C:\workspace\wolfssl-gojimmypi\IDE\PlatformIO\PlatformIO_wolfSSL |
74 | | -``` |
75 | | - |
76 | | -### Remove published version from staging site: |
77 | | - |
78 | | -`pio pkg unpublish [<organization>/]<pkgname>[@<version>] [OPTIONS]` |
| 24 | +## Publishing |
79 | 25 |
|
80 | | -``` |
81 | | -pio pkg unpublish wolfssl-staging/wolfssl@5.6.6-test1 |
82 | | -``` |
| 26 | +The wolfSSL publishing is performed from the `scripts`. |
0 commit comments