@beads/bd 0.44.0 → 0.45.0
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/package.json +3 -2
- package/scripts/postinstall.js +13 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beads/bd",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"description": "Beads issue tracker - lightweight memory system for coding agents with native binary support",
|
|
5
5
|
"main": "bin/bd.js",
|
|
6
6
|
"bin": {
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"os": [
|
|
40
40
|
"darwin",
|
|
41
41
|
"linux",
|
|
42
|
-
"win32"
|
|
42
|
+
"win32",
|
|
43
|
+
"android"
|
|
43
44
|
],
|
|
44
45
|
"cpu": [
|
|
45
46
|
"x64",
|
package/scripts/postinstall.js
CHANGED
|
@@ -27,6 +27,9 @@ function getPlatformInfo() {
|
|
|
27
27
|
case 'linux':
|
|
28
28
|
platformName = 'linux';
|
|
29
29
|
break;
|
|
30
|
+
case 'android':
|
|
31
|
+
platformName = 'android';
|
|
32
|
+
break;
|
|
30
33
|
case 'win32':
|
|
31
34
|
platformName = 'windows';
|
|
32
35
|
binaryName = 'bd.exe';
|
|
@@ -109,7 +112,7 @@ function extractTarGz(tarGzPath, destDir, binaryName) {
|
|
|
109
112
|
throw new Error(`Binary not found after extraction: ${extractedBinary}`);
|
|
110
113
|
}
|
|
111
114
|
|
|
112
|
-
// Make executable on Unix-like systems
|
|
115
|
+
// Make executable on Unix-like systems (Linux, macOS, Android)
|
|
113
116
|
if (os.platform() !== 'win32') {
|
|
114
117
|
fs.chmodSync(extractedBinary, 0o755);
|
|
115
118
|
}
|
|
@@ -177,16 +180,8 @@ async function install() {
|
|
|
177
180
|
|
|
178
181
|
console.log(`Installing bd v${VERSION} for ${platformName}-${archName}...`);
|
|
179
182
|
|
|
180
|
-
// Construct download URL
|
|
181
|
-
// Format: https://github.com/steveyegge/beads/releases/download/v0.21.5/beads_0.21.5_darwin_amd64.tar.gz
|
|
182
|
-
const releaseVersion = VERSION;
|
|
183
|
-
const archiveExt = platformName === 'windows' ? 'zip' : 'tar.gz';
|
|
184
|
-
const archiveName = `beads_${releaseVersion}_${platformName}_${archName}.${archiveExt}`;
|
|
185
|
-
const downloadUrl = `https://github.com/steveyegge/beads/releases/download/v${releaseVersion}/${archiveName}`;
|
|
186
|
-
|
|
187
183
|
// Determine destination paths
|
|
188
184
|
const binDir = path.join(__dirname, '..', 'bin');
|
|
189
|
-
const archivePath = path.join(binDir, archiveName);
|
|
190
185
|
const binaryPath = path.join(binDir, binaryName);
|
|
191
186
|
|
|
192
187
|
// Ensure bin directory exists
|
|
@@ -194,6 +189,14 @@ async function install() {
|
|
|
194
189
|
fs.mkdirSync(binDir, { recursive: true });
|
|
195
190
|
}
|
|
196
191
|
|
|
192
|
+
// Construct download URL
|
|
193
|
+
// Format: https://github.com/steveyegge/beads/releases/download/v0.21.5/beads_0.21.5_darwin_amd64.tar.gz
|
|
194
|
+
const releaseVersion = VERSION;
|
|
195
|
+
const archiveExt = platformName === 'windows' ? 'zip' : 'tar.gz';
|
|
196
|
+
const archiveName = `beads_${releaseVersion}_${platformName}_${archName}.${archiveExt}`;
|
|
197
|
+
const downloadUrl = `https://github.com/steveyegge/beads/releases/download/v${releaseVersion}/${archiveName}`;
|
|
198
|
+
const archivePath = path.join(binDir, archiveName);
|
|
199
|
+
|
|
197
200
|
// Download the archive
|
|
198
201
|
console.log(`Downloading bd binary...`);
|
|
199
202
|
await downloadFile(downloadUrl, archivePath);
|
|
@@ -213,7 +216,7 @@ async function install() {
|
|
|
213
216
|
const output = execSync(`"${binaryPath}" version`, { encoding: 'utf8' });
|
|
214
217
|
console.log(`✓ bd installed successfully: ${output.trim()}`);
|
|
215
218
|
} catch (err) {
|
|
216
|
-
|
|
219
|
+
throw new Error(`Binary verification failed: ${err.message}`);
|
|
217
220
|
}
|
|
218
221
|
|
|
219
222
|
} catch (err) {
|