qdd-framework 0.1.3 → 0.1.7
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/qdd +0 -0
- package/install.js +3 -6
- package/package.json +1 -1
package/bin/qdd
ADDED
|
Binary file
|
package/install.js
CHANGED
|
@@ -4,7 +4,8 @@ const https = require('https');
|
|
|
4
4
|
const { execSync } = require('child_process');
|
|
5
5
|
|
|
6
6
|
// Configuración del Release (Automático según tu GitHub)
|
|
7
|
-
const
|
|
7
|
+
const pkg = require('./package.json');
|
|
8
|
+
const VERSION = 'v' + pkg.version;
|
|
8
9
|
const REPO = 'trdago/qdd-framework';
|
|
9
10
|
|
|
10
11
|
const platformMap = {
|
|
@@ -37,9 +38,7 @@ const downloadDest = path.join(__dirname, `qdd-download.${ext}`);
|
|
|
37
38
|
console.log(`[QDD] Descargando binario nativo para ${os}-${arch}...`);
|
|
38
39
|
console.log(`[QDD] URL: ${url}`);
|
|
39
40
|
|
|
40
|
-
//
|
|
41
|
-
// hasta que el repo de GitHub tenga sus primeros Releases configurados con GoReleaser)
|
|
42
|
-
/*
|
|
41
|
+
// Realizando la descarga del binario desde GitHub Releases
|
|
43
42
|
const file = fs.createWriteStream(downloadDest);
|
|
44
43
|
https.get(url, (response) => {
|
|
45
44
|
if (response.statusCode === 301 || response.statusCode === 302) {
|
|
@@ -71,5 +70,3 @@ function extractBinary() {
|
|
|
71
70
|
console.error('[QDD] Error al extraer el binario:', err);
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
|
-
*/
|
|
75
|
-
console.log('[QDD] NOTA: Script preparado para producción. Descomenta la descarga cuando GoReleaser publique los binarios en GitHub Releases.');
|