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
**Note:** Only change the execution policy if you understand the security implications. You can revert to the default policy later with:
122
-
123
-
```powershell
124
-
Set-ExecutionPolicy Restricted
125
-
```
116
+
This is because Electron is being used to create a packaged release only. If you need a packaged release, please refer to [docs/DEPLOYMENT.md](docs/DEPLOYMENT.md)
Copy file name to clipboardExpand all lines: usecases/ai/edge-ai-demo-studio/docs/DEPLOYMENT.md
+50-5Lines changed: 50 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,19 @@ This directory contains the Deployment instructions for Edge AI Demo Studio.
6
6
7
7
### Packaging the Electron App
8
8
9
-
For Linux/macOS:
9
+
For Linux:
10
10
```bash
11
-
../scripts/package.sh
11
+
../scripts/bash/package.sh
12
12
```
13
-
For Windows (PowerShell):
13
+
For Windows (PowerShell/Command Prompt):
14
14
```bash
15
-
../scripts/package.ps1
15
+
../scripts/win/package.ps1
16
16
```
17
17
18
18
This script will help ensure all dependencies are installed and configured correctly before packaging and then it will create the package in [electron/out](../electron/out).
19
19
20
+
If you have permission issue running the package script in Windows, please refer to [FAQ](#faq)
21
+
20
22
## Running on Ubuntu 24.04
21
23
22
24
If you're running the packaged Electron app on Ubuntu 24.04, you may need to adjust AppArmor settings to allow the application to run properly:
This command disables AppArmor restrictions on unprivileged user namespaces, which is required for Electron apps to function correctly on Ubuntu 24.04.
29
31
## Prerequisites
30
32
31
-
Make sure you have ran the root setup script before running the commands above.
33
+
Make sure you have ran the root setup script before running the commands above.
34
+
35
+
## FAQ
36
+
37
+
**Q: Why is Electron failed to install**
38
+
39
+
If you are running behind a proxy, please ensure you set proxy for Electron as below:
40
+
41
+
For Linux:
42
+
```bash
43
+
export ELECTRON_GET_USE_PROXY=http://proxy:port
44
+
```
45
+
46
+
For Windows (PowerShell):
47
+
48
+
```powershell
49
+
$env:ELECTRON_GET_USE_PROXY="http://proxy:port"
50
+
```
51
+
52
+
**Q: Why do I not have permission to run PowerShell scripts?**
53
+
54
+
This is usually due to Windows PowerShell's execution policy restrictions.
55
+
56
+
**Quick Solution (Recommended):** Run the script with the `-ExecutionPolicy Bypass` flag each time:
This bypasses the execution policy for that single command without changing system settings.
63
+
64
+
**Alternative (Persistent Solution):** If you don't want to type the long command every time, you can change the execution policy for your entire PC. Open PowerShell as Administrator and run:
**Note:** Only change the execution policy if you understand the security implications. `RemoteSigned` allows locally created scripts to run but requires downloaded scripts to be signed by a trusted publisher. You can revert to the default policy later with:
0 commit comments