- Notifications
You must be signed in to change notification settings - Fork5
Commit99c912b
authored
chore: make helper launchdaemon approval mandatory (#205)
First step in addressing#201.This PR installs and kickstarts the LaunchDaemon as part of the `.pkg` installer, instead of requiring it be approved via the UI. As such, we no longer distribute the app contained within a `.zip`.This PR adds a build script to install the LaunchDaemon when developing locally, to ensure it stays up to date when changes are made. Installing the LaunchDaemon requires administrator privileges, so to minimise password prompts, we only restart it when the binary itself, or any of it's frameworks have changed.There's an Apple Developer Forum thread where I replied, enquiring about this installer approach vs the existing SMAppService approach, esp. w.r.t deploying the app via MDM:https://developer.apple.com/forums/thread/766351?answerId=850675022&page=1#851913022(This PR previously had UI changes, and I did some refactoring. That refactoring is still in the diff.)1 parentab44e4a commit99c912b
File tree
13 files changed
+121
-248
lines changed- Coder-Desktop
- Coder-DesktopHelper
- Coder-Desktop
- Views
- Settings
- VPN
- pkgbuild/scripts
- scripts
13 files changed
+121
-248
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
30 | 29 |
| |
31 | 30 |
| |
32 | 31 |
| |
| |||
48 | 47 |
| |
49 | 48 |
| |
50 | 49 |
| |
51 |
| - | |
52 | 50 |
| |
53 | 51 |
| |
54 | 52 |
| |
55 | 53 |
| |
56 | 54 |
| |
57 |
| - | |
58 | 55 |
| |
59 | 56 |
| |
60 | 57 |
| |
|
This file was deleted.
Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 0 additions & 82 deletions
This file was deleted.
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 | 16 |
| |
22 | 17 |
| |
23 | 18 |
| |
| |||
28 | 23 |
| |
29 | 24 |
| |
30 | 25 |
| |
31 |
| - | |
32 | 26 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
27 | 17 |
| |
28 | 18 |
| |
29 | 19 |
| |
| |||
32 | 22 |
| |
33 | 23 |
| |
34 | 24 |
| |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
| 25 | + | |
40 | 26 |
| |
41 | 27 |
| |
42 | 28 |
| |
| |||
61 | 47 |
| |
62 | 48 |
| |
63 | 49 |
| |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
| 50 | + | |
69 | 51 |
| |
70 | 52 |
| |
71 | 53 |
| |
72 | 54 |
| |
73 | 55 |
| |
74 | 56 |
| |
75 | 57 |
| |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + |
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
8 |
| - | |
| 7 | + | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
219 | 242 |
| |
220 | 243 |
| |
221 | 244 |
| |
| |||
376 | 399 |
| |
377 | 400 |
| |
378 | 401 |
| |
379 |
| - | |
| 402 | + |
0 commit comments
Comments
(0)