You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -131,13 +133,13 @@ However, building Polykey yourself on MacOS resolves in a working binary. Follow
131
133
chmod +x polykey
132
134
```
133
135
136
+
---
137
+
134
138
### MacOS Security Bypass
135
139
136
140
MacOS requires additional steps for the binary to be allowed to execute,
137
141
this is due to the fact that as of 20-12-23, the binaries we release are unsigned,
138
-
and MacOS permits running of unsigned binaries, however, to progress past this, there are 2 common methods we will provide here:
139
-
140
-
#### Method #1 - Manual Intervention through MacOS Settings
142
+
and MacOS permits running of unsigned binaries, however, to progress past this, follow these steps:
141
143
142
144
First type the following command to try running the Polykey CLI but will instead trigger a pop-up.
143
145
@@ -176,32 +178,48 @@ When prompted in the terminal, type your administrator password and hit enter.
176
178
#### Click on Open and now Polykey-CLI should be running in your terminal window.
177
179
178
180
:::tip
179
-
You can now verify the version of polykey that was installed with:
181
+
You can also verify the version of polykey that was installed with:
180
182
181
183
```sh
182
184
./polykey --version
183
185
```
184
186
185
187
:::
186
188
189
+
---
190
+
187
191
### Add it to your `$PATH`.
188
192
189
-
#### For ZSH:
193
+
To add the Polykey CLI executable to your $PATH on macOS, which allows you to run the polykey command from any directory in the terminal, you need to update the shell configuration file.
194
+
195
+
:::tip
196
+
197
+
To check the shell you're currently using (ZSH vs Bash), in terminal type `echo $SHELL`
198
+
:::
199
+
200
+
#### For ZSH (default shell on recent versions of macOS):
190
201
191
202
1.`cd` into the directory where the "polykey" executable is stored.
192
-
2. Edit the Zsh config to add "polykey" to your path. To streamline the process, run the following command, making sure to change the path to "polykey" if the executable is not in the downloads folder. For most users, this would be `~/downloads` on Debian-based systems.
203
+
204
+
2. Edit the Zsh config to add "polykey" to your $path. To streamline the process, run the following command, making sure to change the path to "polykey" if the executable is not in the downloads folder. For most users, this would be `~/downloads` on Debian-based systems.
193
205
194
206
:::tip
195
207
196
-
Make sure your path to the "polykey" executable is correct.
208
+
Make sure your path to the "polykey" executable is correct. Replace `downloads` with the path to the working directory. Use the `pwd` command to print the working directory.
0 commit comments