alurkerja-cli 1.0.16 → 1.0.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/index.js +1 -2
- package/index.js.backup +1 -2
- package/package.json +1 -1
- package/package.json.backup +1 -1
package/index.js
CHANGED
|
@@ -56,8 +56,7 @@ function getVersion() {
|
|
|
56
56
|
*/
|
|
57
57
|
async function downloadBinary(version, platform) {
|
|
58
58
|
const binaryName = `alurkerja-${platform.os}-${platform.arch}${platform.os === 'windows' ? '.exe' : ''}`;
|
|
59
|
-
// Use GitLab API to download repository file (works with PRIVATE-TOKEN
|
|
60
|
-
const encodedPath = encodeURIComponent(`dist/${binaryName}`);
|
|
59
|
+
// Use GitLab API to download repository file (works with PRIVATE-TOKEN
|
|
61
60
|
const downloadUrl = `${GITLAB_BASE}/-/raw/master/dist/${binaryName}?private_token=${GITLAB_TOKEN}&inline=false`;
|
|
62
61
|
|
|
63
62
|
console.log(`📥 Downloading Alurkerja CLI For ${platform.os}-${platform.arch} ${version}...`);
|
package/index.js.backup
CHANGED
|
@@ -56,8 +56,7 @@ function getVersion() {
|
|
|
56
56
|
*/
|
|
57
57
|
async function downloadBinary(version, platform) {
|
|
58
58
|
const binaryName = `alurkerja-${platform.os}-${platform.arch}${platform.os === 'windows' ? '.exe' : ''}`;
|
|
59
|
-
// Use GitLab API to download repository file (works with PRIVATE-TOKEN
|
|
60
|
-
const encodedPath = encodeURIComponent(`dist/${binaryName}`);
|
|
59
|
+
// Use GitLab API to download repository file (works with PRIVATE-TOKEN
|
|
61
60
|
const downloadUrl = `${GITLAB_BASE}/-/raw/master/dist/${binaryName}?private_token=${GITLAB_TOKEN}&inline=false`;
|
|
62
61
|
|
|
63
62
|
console.log(`📥 Downloading Alurkerja CLI For ${platform.os}-${platform.arch} ${version}...`);
|
package/package.json
CHANGED