Skip to content

Commit

Permalink
Fix missing externalUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyuu-jin committed Sep 12, 2024
1 parent 7285b11 commit 26ebb3a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/releases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,19 @@ const baseGateWayURL = `https://gateway-b3.valist.io`;

export async function uploadRelease(client: AxiosInstance, config: ReleaseConfig) {
const updatedPlatformEntries: PlatformEntry[] = await Promise.all(Object.entries(config.platforms).map(async ([platform, platformConfig]) => {
const installScript = platformConfig.installScript;
const executable = platformConfig.executable;
const installScript = platformConfig?.installScript;
const executable = platformConfig?.executable;
const externalUrl = platformConfig?.externalUrl;

if (config && config.platforms[platform] && !config.platforms[platform].zip) {
return { platform, path: platformConfig.path, installScript, executable };
return { platform, path: platformConfig.path, installScript, executable, externalUrl };
}

const zipPath = getZipName(platformConfig.path);
CliUx.ux.action.start(`Zipping ${zipPath}`);
await zipDirectory(platformConfig.path, zipPath);
CliUx.ux.action.stop();
return { platform, path: zipPath, installScript, executable };
return { platform, path: zipPath, installScript, executable, externalUrl };
}));

const releasePath = `${config.account}/${config.project}/${config.release}`;
Expand Down

0 comments on commit 26ebb3a

Please sign in to comment.