 			installStream = fs.createWriteStream(qemuPath)
 
 			qemuArch = balenaArchToQemuArch(arch)
-			downloadArchiveName = "qemu-3.0.0+resin-#{qemuArch}.tar.gz"
+			downloadArchiveName = "qemu-#{QEMU_VERSION.replace(/^v/, '')}-#{qemuArch}.tar.gz"
 			qemuUrl = "https://github.com/balena-io/qemu/releases/download/#{QEMU_VERSION}/#{downloadArchiveName}"
 
 			extract = tar.extract()

		Promise.resolve(fs.mkdir(binDir))
		.catch(code: 'EEXIST', ->)
		.then ->
			path.join(binDir, "#{QEMU_BIN_NAME}-#{arch}")

platformNeedsQemu = ->
	os = require('os')

Promise = require('bluebird')

exports.QEMU_VERSION = QEMU_VERSION = 'v4.0.0-balena'
exports.QEMU_BIN_NAME = QEMU_BIN_NAME = 'qemu-execve'

exports.installQemuIfNeeded = Promise.method (emulated, logger, arch) ->
