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
The "Run as Administrator" feature allows jDeploy applications to be configured to run with elevated privileges on Windows, macOS, and Linux platforms. This feature provides developers with control over privilege escalation requirements for their applications.
6
+
7
+
## Configuration
8
+
9
+
The feature is configured via the `jdeploy.runAsAdministrator` property in the application's `package.json`:
10
+
11
+
```json
12
+
{
13
+
"jdeploy": {
14
+
"runAsAdministrator": "allowed"
15
+
}
16
+
}
17
+
```
18
+
19
+
## Supported Values
20
+
21
+
### `"disabled"` (Default)
22
+
- Applications run with normal user privileges
23
+
- No elevated launchers are generated
24
+
- This is the default behavior when the property is not specified
25
+
26
+
### `"allowed"`
27
+
- Applications can optionally run with elevated privileges
28
+
- The installer generates two launcher variants for each app:
29
+
- Standard launcher (normal privileges)
30
+
- "Run as administrator" launcher (elevated privileges)
31
+
- Users can choose which launcher to use based on their needs
32
+
33
+
### `"required"`
34
+
- Applications always run with elevated privileges
35
+
- All generated launchers require administrator access
36
+
- Standard launchers are configured to automatically request elevation
37
+
38
+
## Platform Implementation
39
+
40
+
### Windows
41
+
- Uses the native "Run as administrator" option
42
+
- Elevated launchers are configured to trigger Windows UAC prompts
43
+
- Leverages Windows built-in privilege escalation mechanisms
44
+
45
+
### macOS
46
+
- Creates a wrapper launcher app that launches the main application with elevated permissions
47
+
- Utilizes macOS authorization services through the wrapper
48
+
- May prompt for administrator password when elevated launchers are used
49
+
50
+
### Linux
51
+
- Creates desktop file entries that use `pkexec` to launch the application
0 commit comments