pushci 0.5.2 → 0.5.3
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/bin/pushci.js +14 -10
- package/package.json +2 -2
package/bin/pushci.js
CHANGED
|
@@ -4,9 +4,9 @@ const fs = require('fs');
|
|
|
4
4
|
const path = require('path');
|
|
5
5
|
const os = require('os');
|
|
6
6
|
|
|
7
|
-
const VERSION = '0.5.2';
|
|
7
|
+
const VERSION = '0.5.2'; // downloads from GitHub release v0.5.2
|
|
8
8
|
const BINARY_NAME = os.platform() === 'win32' ? 'pushci.exe' : 'pushci';
|
|
9
|
-
const REPO = 'finsavvyai/
|
|
9
|
+
const REPO = 'finsavvyai/push-ci.dev';
|
|
10
10
|
|
|
11
11
|
const PLATFORM_MAP = {
|
|
12
12
|
darwin: 'darwin', linux: 'linux', win32: 'windows',
|
|
@@ -45,16 +45,20 @@ function downloadOrBuild() {
|
|
|
45
45
|
fs.chmodSync(target, 0o755);
|
|
46
46
|
return target;
|
|
47
47
|
}
|
|
48
|
-
fs.unlinkSync(target);
|
|
48
|
+
try { fs.unlinkSync(target); } catch (_) {}
|
|
49
49
|
} catch (_) {}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
try {
|
|
53
53
|
execSync('go version', { stdio: 'ignore' });
|
|
54
54
|
console.log('Building pushci from source...');
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
const out = path.join(os.tmpdir(), BINARY_NAME);
|
|
56
|
+
execSync(`go build -o "${out}" ./cmd/pushci`, {
|
|
57
|
+
cwd: path.join(__dirname, '..'),
|
|
58
|
+
stdio: 'inherit',
|
|
59
|
+
timeout: 120000,
|
|
60
|
+
});
|
|
61
|
+
if (fs.existsSync(out)) return out;
|
|
58
62
|
} catch (_) {}
|
|
59
63
|
|
|
60
64
|
printInstallHelp();
|
|
@@ -69,10 +73,10 @@ function isValidBinary(filepath) {
|
|
|
69
73
|
const fd = fs.openSync(filepath, 'r');
|
|
70
74
|
fs.readSync(fd, buf, 0, 4, 0);
|
|
71
75
|
fs.closeSync(fd);
|
|
72
|
-
if (buf[0] === 0x7f && buf[1] === 0x45) return true;
|
|
73
|
-
if (buf[0] === 0xcf && buf[1] === 0xfa) return true;
|
|
74
|
-
if (buf[0] === 0xfe && buf[1] === 0xed) return true;
|
|
75
|
-
if (buf[0] === 0x4d && buf[1] === 0x5a) return true;
|
|
76
|
+
if (buf[0] === 0x7f && buf[1] === 0x45) return true;
|
|
77
|
+
if (buf[0] === 0xcf && buf[1] === 0xfa) return true;
|
|
78
|
+
if (buf[0] === 0xfe && buf[1] === 0xed) return true;
|
|
79
|
+
if (buf[0] === 0x4d && buf[1] === 0x5a) return true;
|
|
76
80
|
return false;
|
|
77
81
|
} catch (_) { return false; }
|
|
78
82
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pushci",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Zero-config AI CI/CD — auto-detects your stack, runs on your machine",
|
|
5
5
|
"bin": {
|
|
6
6
|
"pushci": "bin/pushci.js"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
|
-
"bin/",
|
|
9
|
+
"bin/pushci.js",
|
|
10
10
|
"README.md",
|
|
11
11
|
"LICENSE"
|
|
12
12
|
],
|