@@ -17,16 +17,12 @@ const zipExtract = require("extract-zip");
1717const tar = require ( "tar" ) ;
1818
1919// Local imports
20+ const constants = require ( "./constants.js" ) ;
2021const platforms = require ( "./platforms.js" ) ;
2122const apioLog = require ( "./apio-log.js" ) ;
2223const jsonUtils = require ( "./json-utils.js" ) ;
2324const utils = require ( "./utils.js" ) ;
2425
25- // Where to find the apio bundle on github.
26- // https://github.com/FPGAwars/apio-dev-builds/releases
27- const githubRepo = "FPGAwars/apio-dev-builds" ;
28- const apioReleaseTag = "2025-12-01" ;
29-
3026// Download url and local package name
3127const downloadMetadataFileName = "download-metadata.json" ;
3228let _downloadSrcUrl = null ;
@@ -42,11 +38,15 @@ function init() {
4238 ) ;
4339
4440 // Determine download information.
45- const yyyymmdd = apioReleaseTag . replaceAll ( "-" , "" ) ;
41+ const yyyymmdd = constants . APIO_RELEASE_TAG . replaceAll ( "-" , "" ) ;
4642 const platformId = platforms . getPlatformId ( ) ;
43+ const baseUrl =
44+ "https://github.com/" +
45+ constants . APIO_RELEASE_GITHUB_REPO +
46+ "/releases/download/" +
47+ constants . APIO_RELEASE_TAG +
48+ "/" ;
4749 const ext = platforms . isWindows ( ) ? "zip" : "tgz" ;
48-
49- const baseUrl = `https://github.com/${ githubRepo } /releases/download/${ apioReleaseTag } /` ;
5050 const packageFileName = `apio-${ platformId } -${ yyyymmdd } -bundle.${ ext } ` ;
5151 _downloadSrcUrl = baseUrl + packageFileName ;
5252 _downloadDstFilePath = path . join ( utils . apioHomeDir ( ) , packageFileName ) ;
0 commit comments