@bobfrankston/msger 0.1.14 → 0.1.15

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.
Binary file
@@ -45,6 +45,30 @@ try {
45
45
  }
46
46
  }
47
47
 
48
+ // Check if pkg-config and GTK dependencies are installed
49
+ console.log('🔍 Checking for build dependencies in WSL...');
50
+ try {
51
+ execSync('wsl -e bash -c "command -v pkg-config"', { stdio: 'pipe' });
52
+ console.log('✅ Build dependencies found');
53
+ } catch {
54
+ console.log('⚠️ Build dependencies not found, installing...');
55
+ console.log(' Installing: pkg-config, libgtk-3-dev, libwebkit2gtk-4.1-dev, libsoup-3.0-dev');
56
+ try {
57
+ execSync(
58
+ 'wsl -e bash -c "sudo apt-get update && sudo apt-get install -y pkg-config libgtk-3-dev libwebkit2gtk-4.1-dev libsoup-3.0-dev"',
59
+ { stdio: 'inherit' }
60
+ );
61
+ console.log('✅ Build dependencies installed successfully');
62
+ } catch (error: any) {
63
+ console.error('❌ Failed to install build dependencies:', error.message);
64
+ console.error('Please install manually in WSL:');
65
+ console.error(' wsl');
66
+ console.error(' sudo apt-get update');
67
+ console.error(' sudo apt-get install -y pkg-config libgtk-3-dev libwebkit2gtk-4.1-dev libsoup-3.0-dev');
68
+ process.exit(1);
69
+ }
70
+ }
71
+
48
72
  try {
49
73
  execSync(`wsl -e bash -c "source ~/.cargo/env 2>/dev/null || true && cd '${wslPath}' && npm run build"`, {
50
74
  stdio: 'inherit'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/msger",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "Fast, lightweight, cross-platform message box - Rust-powered alternative to msgview",
5
5
  "type": "module",
6
6
  "main": "./index.js",