mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-30 16:13:59 +00:00
balena build/deploy: Update QEMU version to support newer balenalib images
Change-type: patch
This commit is contained in:
parent
6b33f95661
commit
6d95c5bad5
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
import * as Promise from 'bluebird';
|
import * as Promise from 'bluebird';
|
||||||
import { getBalenaSdk } from './lazy';
|
import { getBalenaSdk } from './lazy';
|
||||||
export const QEMU_VERSION = 'v4.0.0-balena';
|
export const QEMU_VERSION = 'v4.0.0+balena2';
|
||||||
export const QEMU_BIN_NAME = 'qemu-execve';
|
export const QEMU_BIN_NAME = 'qemu-execve';
|
||||||
|
|
||||||
export function qemuPathInContext(context) {
|
export function qemuPathInContext(context) {
|
||||||
@ -84,11 +84,12 @@ export function installQemu(arch) {
|
|||||||
const installStream = fs.createWriteStream(qemuPath);
|
const installStream = fs.createWriteStream(qemuPath);
|
||||||
|
|
||||||
const qemuArch = balenaArchToQemuArch(arch);
|
const qemuArch = balenaArchToQemuArch(arch);
|
||||||
const downloadArchiveName = `qemu-${QEMU_VERSION.replace(
|
const fileVersion = QEMU_VERSION.replace(/^v/, '').replace('+', '.');
|
||||||
/^v/,
|
const urlFile = encodeURIComponent(
|
||||||
'',
|
`qemu-${fileVersion}-${qemuArch}.tar.gz`,
|
||||||
)}-${qemuArch}.tar.gz`;
|
);
|
||||||
const qemuUrl = `https://github.com/balena-io/qemu/releases/download/${QEMU_VERSION}/${downloadArchiveName}`;
|
const urlVersion = encodeURIComponent(QEMU_VERSION);
|
||||||
|
const qemuUrl = `https://github.com/balena-io/qemu/releases/download/${urlVersion}/${urlFile}`;
|
||||||
|
|
||||||
const extract = tar.extract();
|
const extract = tar.extract();
|
||||||
extract.on('entry', function(header, stream, next) {
|
extract.on('entry', function(header, stream, next) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user