xypriss 9.14.16 → 9.14.17
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 +1 -1
- package/scripts/postinstall-xhsc.js +5 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xypriss",
|
|
3
|
-
"version": "9.14.
|
|
3
|
+
"version": "9.14.17",
|
|
4
4
|
"description": "XyPriss is a high-performance, TypeScript-first hyper-system web framework powered by a native Go core (XHSC), featuring robust multi-tenant sandboxing, secure native file streaming, and zero Express dependencies.",
|
|
5
5
|
"author": {
|
|
6
6
|
"DEV.to": "https://dev.to/nehonix",
|
|
@@ -255,14 +255,13 @@ async function installXHSC() {
|
|
|
255
255
|
const binaryFileName = `${BIN_NAME}-${binaryTarget}${ext}`;
|
|
256
256
|
const gzFileName = `${binaryFileName}.gz`;
|
|
257
257
|
const gzUrl = `https://github.com/${REPO}/releases/latest/download/${gzFileName}`;
|
|
258
|
-
const rawUrl = `https://github.com/${REPO}/releases/latest/download/${binaryFileName}`;
|
|
259
258
|
const localPath = join(BIN_DIR, binaryFileName);
|
|
260
259
|
const genericPath = join(BIN_DIR, `${BIN_NAME}${ext}`);
|
|
261
260
|
|
|
262
261
|
log.info(
|
|
263
262
|
`Platform : ${c.yellow}${osName}${c.reset} ${c.gray}(${archName})${c.reset}`,
|
|
264
263
|
);
|
|
265
|
-
log.info(`Binary : ${c.yellow}${binaryFileName}${c.reset}`);
|
|
264
|
+
log.info(`Binary : ${c.yellow}${binaryFileName} ${c.dim}(via ${gzFileName})${c.reset}`);
|
|
266
265
|
log.info(`Target : ${c.yellow}${BIN_DIR}${c.reset}`);
|
|
267
266
|
log.blank();
|
|
268
267
|
|
|
@@ -293,20 +292,12 @@ async function installXHSC() {
|
|
|
293
292
|
}
|
|
294
293
|
}
|
|
295
294
|
|
|
296
|
-
// Download
|
|
297
|
-
log.step("Downloading XHSC binary…");
|
|
295
|
+
// Download exclusively compressed .gz archive
|
|
296
|
+
log.step("Downloading compressed XHSC binary (.gz)…");
|
|
297
|
+
log.link("GitHub", gzUrl);
|
|
298
298
|
|
|
299
299
|
try {
|
|
300
|
-
|
|
301
|
-
log.link("GitHub (.gz)", gzUrl);
|
|
302
|
-
await downloadFile(gzUrl, localPath, true);
|
|
303
|
-
} catch (gzErr) {
|
|
304
|
-
log.detail(
|
|
305
|
-
`Compressed asset unavailable (${gzErr.message}), falling back to raw binary…`,
|
|
306
|
-
);
|
|
307
|
-
log.link("GitHub (raw)", rawUrl);
|
|
308
|
-
await downloadFile(rawUrl, localPath, false);
|
|
309
|
-
}
|
|
300
|
+
await downloadFile(gzUrl, localPath, true);
|
|
310
301
|
|
|
311
302
|
// Set executable bit on Unix
|
|
312
303
|
if (osName !== "win32") {
|