codeforge-cli 0.1.1 → 0.1.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/package.json +1 -1
- package/scripts/postinstall.js +4 -2
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -13,7 +13,8 @@ const { execSync } = require('child_process');
|
|
|
13
13
|
|
|
14
14
|
// Configuration - Use Cloudflare R2 as CDN
|
|
15
15
|
const DOWNLOAD_BASE = process.env.FORGE_DOWNLOAD_URL || 'https://pub-63b4afd13ea24e6f94f86d0b7f3a802c.r2.dev/forge-cli';
|
|
16
|
-
|
|
16
|
+
// Always download from 'latest' - the release workflow updates this folder
|
|
17
|
+
const VERSION = 'latest';
|
|
17
18
|
const BIN_DIR = path.join(__dirname, '..', 'bin');
|
|
18
19
|
const LIB_DIR = path.join(__dirname, '..', 'lib');
|
|
19
20
|
|
|
@@ -134,7 +135,8 @@ async function main() {
|
|
|
134
135
|
// Construct download URL
|
|
135
136
|
const ext = platform === 'windows' ? 'zip' : 'tar.gz';
|
|
136
137
|
const archiveName = `forge-${platform}-${arch}.${ext}`;
|
|
137
|
-
|
|
138
|
+
// Use 'latest' folder directly (no 'v' prefix)
|
|
139
|
+
const downloadUrl = `${DOWNLOAD_BASE}/${VERSION}/${archiveName}`;
|
|
138
140
|
const archivePath = path.join(LIB_DIR, archiveName);
|
|
139
141
|
|
|
140
142
|
// Download
|