mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-22 18:12:54 +00:00
Merge pull request #555 from resin-io/553-fix-qemu-path
Ensure emulated builds use the correct relative path to qemu
This commit is contained in:
commit
390332cd6c
@ -10,6 +10,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
- `package-lock.json` for `npm5` users
|
- `package-lock.json` for `npm5` users
|
||||||
- Added ability to run an emulated build silently with resin build
|
- Added ability to run an emulated build silently with resin build
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Ensure emulated builds use the correct relative path to qemu when called from any location
|
||||||
|
|
||||||
## [5.10.2] - 2017-05-31
|
## [5.10.2] - 2017-05-31
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -183,7 +183,7 @@ exports.runBuild = function(params, options, getBundleInfo, logStreams) {
|
|||||||
}).then(function() {
|
}).then(function() {
|
||||||
return copyQemu(params.source);
|
return copyQemu(params.source);
|
||||||
}).then(function(binPath) {
|
}).then(function(binPath) {
|
||||||
return qemuPath = binPath.split(path.sep).slice(1).join(path.sep);
|
return qemuPath = path.relative(params.source, binPath);
|
||||||
});
|
});
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
return tarDirectory(params.source);
|
return tarDirectory(params.source);
|
||||||
|
@ -188,7 +188,7 @@ exports.runBuild = (params, options, getBundleInfo, logStreams) ->
|
|||||||
# Copy the qemu binary into the build context
|
# Copy the qemu binary into the build context
|
||||||
copyQemu(params.source)
|
copyQemu(params.source)
|
||||||
.then (binPath) ->
|
.then (binPath) ->
|
||||||
qemuPath = binPath.split(path.sep)[1...].join(path.sep)
|
qemuPath = path.relative(params.source, binPath)
|
||||||
.then ->
|
.then ->
|
||||||
# Tar up the directory, ready for the build stream
|
# Tar up the directory, ready for the build stream
|
||||||
tarDirectory(params.source)
|
tarDirectory(params.source)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user