@chahuadev/framework 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -1
- package/install.js +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,41 @@ The official core executable framework for Chahuadev.
|
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## � Running on Linux / WSL2 (Ubuntu)
|
|
24
|
+
|
|
25
|
+
First install the required system libraries (one-time setup):
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
sudo apt-get update && sudo apt-get install -y \
|
|
29
|
+
libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 \
|
|
30
|
+
libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 \
|
|
31
|
+
libxrandr2 libgbm1 libasound2
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Then run the AppImage:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
chmod +x "Chahuadev-Framework.AppImage"
|
|
38
|
+
DISPLAY=:0 WAYLAND_DISPLAY=wayland-0 \
|
|
39
|
+
./"Chahuadev-Framework.AppImage" \
|
|
40
|
+
--appimage-extract-and-run --no-sandbox --disable-gpu
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
> **WSL2 tip:** Copy to WSL native filesystem first:
|
|
44
|
+
> ```bash
|
|
45
|
+
> # Path after: npm install -g @chahuadev/framework
|
|
46
|
+
> # (no sudo)
|
|
47
|
+
> cp ~/.npm-global/lib/node_modules/@chahuadev/framework/bin/Chahuadev-Framework.AppImage /tmp/ChahuadevFramework.AppImage
|
|
48
|
+
> # (with sudo)
|
|
49
|
+
> # cp /usr/lib/node_modules/@chahuadev/framework/bin/Chahuadev-Framework.AppImage /tmp/ChahuadevFramework.AppImage
|
|
50
|
+
> chmod +x /tmp/ChahuadevFramework.AppImage
|
|
51
|
+
> DISPLAY=:0 WAYLAND_DISPLAY=wayland-0 /tmp/ChahuadevFramework.AppImage \
|
|
52
|
+
> --appimage-extract-and-run --no-sandbox --disable-gpu
|
|
53
|
+
> ```
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## �🛡️ CRITICAL SECURITY WARNING - FORTRESS PROTECTION
|
|
24
58
|
|
|
25
59
|
### Maximum Security Architecture
|
|
26
60
|
- **Intelligent OS Routing**: Automatically detects and securely isolates platform-specific binaries.
|
package/install.js
CHANGED
|
@@ -9,14 +9,18 @@ const arch = os.arch();
|
|
|
9
9
|
|
|
10
10
|
const R2_BASE = 'https://pub-419d22521da042dfb27d1f404b3eb8a6.r2.dev';
|
|
11
11
|
|
|
12
|
+
|
|
12
13
|
let downloadUrl = '';
|
|
13
14
|
let fileName = '';
|
|
14
15
|
|
|
15
16
|
if (platform === 'win32') {
|
|
16
17
|
downloadUrl = `${R2_BASE}/Chahuadev-Framework.exe`;
|
|
17
|
-
fileName = 'Chahuadev
|
|
18
|
+
fileName = 'Chahuadev Framework.exe';
|
|
19
|
+
} else if (platform === 'linux') {
|
|
20
|
+
downloadUrl = `${R2_BASE}/Chahuadev-Framework.AppImage`;
|
|
21
|
+
fileName = 'Chahuadev Framework.AppImage';
|
|
18
22
|
} else {
|
|
19
|
-
console.warn(`Chahuadev Framework does not
|
|
23
|
+
console.warn(`Chahuadev Framework does not support ${platform} ${arch} yet.`);
|
|
20
24
|
process.exit(0);
|
|
21
25
|
}
|
|
22
26
|
|
|
@@ -36,11 +40,9 @@ function downloadFile(url, dest) {
|
|
|
36
40
|
console.error(`Download failed: HTTP ${response.statusCode}`);
|
|
37
41
|
process.exit(1);
|
|
38
42
|
}
|
|
39
|
-
|
|
40
43
|
const totalBytes = parseInt(response.headers['content-length'], 10);
|
|
41
44
|
let downloadedBytes = 0;
|
|
42
45
|
const file = fs.createWriteStream(dest);
|
|
43
|
-
|
|
44
46
|
response.on('data', (chunk) => {
|
|
45
47
|
downloadedBytes += chunk.length;
|
|
46
48
|
if (!isNaN(totalBytes)) {
|
|
@@ -54,7 +56,6 @@ function downloadFile(url, dest) {
|
|
|
54
56
|
process.stdout.write(`\rDownloading... ${(downloadedBytes / (1024 * 1024)).toFixed(1)} MB`);
|
|
55
57
|
}
|
|
56
58
|
});
|
|
57
|
-
|
|
58
59
|
response.pipe(file);
|
|
59
60
|
file.on('finish', () => {
|
|
60
61
|
file.close();
|