fix(release): build updates.json with top-level XPI URL
Remove '/releases/<version>/' from update_link; artifacts are uploaded to the base directory (e.g. https://add-ons.jordanwages.com/archive-org-link-grabber/<xpi>). Update example accordingly.
This commit is contained in:
		
					parent
					
						
							
								2eba315910
							
						
					
				
			
			
				commit
				
					
						fb7e208252
					
				
			
		
					 3 changed files with 12 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -126,8 +126,8 @@ function ensureUpdatesJson() {
 | 
			
		|||
 | 
			
		||||
    // Derive public base directory from update_url (strip trailing filename)
 | 
			
		||||
    let updatesBaseDir = updateUrl.replace(/\/?[^/]*$/, '');
 | 
			
		||||
    // Build public link to the uploaded XPI
 | 
			
		||||
    const publicLink = `${updatesBaseDir}/releases/${version}/${encodeURIComponent(chosenXpi)}`;
 | 
			
		||||
    // Build public link to the uploaded XPI (artifact is placed directly under the base dir)
 | 
			
		||||
    const publicLink = `${updatesBaseDir}/${encodeURIComponent(chosenXpi)}`;
 | 
			
		||||
 | 
			
		||||
    if (!data.addons) data.addons = {};
 | 
			
		||||
    if (!data.addons[addonId]) data.addons[addonId] = { updates: [] };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue