@alius-tech/alius-win32-x64 0.6.15 → 0.6.16
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/download.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alius-tech/alius-win32-x64",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.16",
|
|
4
4
|
"description": "Alius CLI binary for Windows x86_64",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Alius Tech",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"binary": {
|
|
23
23
|
"artifact": "alius-windows-x64.zip",
|
|
24
|
-
"
|
|
24
|
+
"releaseTag": "0.6.16",
|
|
25
|
+
"downloadUrl": "https://github.com/AliusTech/alius/releases/download/0.6.16/alius-windows-x64.zip"
|
|
25
26
|
},
|
|
26
27
|
"files": [
|
|
27
28
|
"bin",
|
package/scripts/download.js
CHANGED
|
@@ -14,6 +14,7 @@ const { execSync } = require('child_process');
|
|
|
14
14
|
// Package configuration
|
|
15
15
|
const pkg = require('../package.json');
|
|
16
16
|
const VERSION = pkg.version;
|
|
17
|
+
const RELEASE_TAG = pkg.binary.releaseTag || '0.6.16';
|
|
17
18
|
const ARTIFACT = pkg.binary.artifact || 'alius-windows-x64.zip';
|
|
18
19
|
const BINARY_NAME = 'alius.exe';
|
|
19
20
|
const GITHUB_REPO = 'AliusTech/alius';
|
|
@@ -89,7 +90,7 @@ function extractArchive(archivePath, destDir) {
|
|
|
89
90
|
async function install() {
|
|
90
91
|
const binDir = path.join(__dirname, '..', 'bin');
|
|
91
92
|
const binaryPath = path.join(binDir, BINARY_NAME);
|
|
92
|
-
const downloadUrl = pkg.binary.downloadUrl || `https://github.com/${GITHUB_REPO}/releases/download
|
|
93
|
+
const downloadUrl = pkg.binary.downloadUrl || `https://github.com/${GITHUB_REPO}/releases/download/${RELEASE_TAG}/${ARTIFACT}`;
|
|
93
94
|
const archivePath = path.join(binDir, ARTIFACT);
|
|
94
95
|
|
|
95
96
|
// Check if binary already exists
|
|
@@ -152,6 +153,6 @@ async function install() {
|
|
|
152
153
|
install().catch((err) => {
|
|
153
154
|
console.error(`\n✗ Installation failed: ${err.message}`);
|
|
154
155
|
console.error(`\nFor manual installation, download from:`);
|
|
155
|
-
console.error(` https://github.com/${GITHUB_REPO}/releases/tag
|
|
156
|
+
console.error(` https://github.com/${GITHUB_REPO}/releases/tag/${RELEASE_TAG}`);
|
|
156
157
|
process.exit(1);
|
|
157
158
|
});
|