messages
This commit is contained in:
parent
2a4955093f
commit
52c88e5f43
@ -42,7 +42,8 @@ export async function download (remote, local) {
|
||||
const asset = assets[0];
|
||||
const tempFile = local + '.downloading';
|
||||
await mkdirp(path.dirname(tempFile));
|
||||
await downloadAsset(asset, tempFile, path.basename(local));
|
||||
const short = path.basename(local);
|
||||
await downloadAsset(asset, tempFile, short);
|
||||
await remove(local);
|
||||
await moveFile(tempFile, local);
|
||||
await remove(tempFile);
|
||||
|
||||
@ -3,6 +3,7 @@ import { localPlace, remotePlace } from './places.js';
|
||||
import build from './build.js';
|
||||
import log from './log.js';
|
||||
import patchesJson from '../patches/patches.json';
|
||||
import path from 'path';
|
||||
import { upload } from './cloud.js';
|
||||
import { version } from '../package.json';
|
||||
|
||||
@ -17,9 +18,10 @@ export async function main () {
|
||||
for (const targetArch of targetArchs) {
|
||||
if (isBrokenBuild(nodeVersion, targetArch)) continue;
|
||||
const local = localPlace({ arch: targetArch, nodeVersion, platform: hostPlatform, version });
|
||||
log.info('Building', `${nodeVersion}-${targetArch}`);
|
||||
const short = path.basename(local);
|
||||
log.info(`Building ${short}...`);
|
||||
await build(nodeVersion, targetArch, local);
|
||||
log.info('Uploading', local);
|
||||
log.info(`Uploading ${short}...`);
|
||||
const remote = remotePlace({ arch: targetArch, nodeVersion, platform: hostPlatform, version });
|
||||
await upload(local, remote);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user