@@ -249,7 +249,7 @@ SnapshotGenerator.prototype.getSnapshotToolCommand = function (snapshotToolPath,
249
249
250
250
SnapshotGenerator . prototype . getXxdCommand = function ( srcOutputDir , xxdLocation ) {
251
251
// https://github.com/NativeScript/docker-images/tree/master/v8-snapshot/bin
252
- return `/bin/ xxd -i ${ SNAPSHOT_BLOB_NAME } .blob > ${ srcOutputDir } ` ;
252
+ return `${ xxdLocation || "" } xxd -i ${ SNAPSHOT_BLOB_NAME } .blob > ${ srcOutputDir } ` ;
253
253
}
254
254
255
255
SnapshotGenerator . prototype . getPathInDocker = function ( mappedLocalDir , mappedDockerDir , targetPath ) {
@@ -310,7 +310,7 @@ SnapshotGenerator.prototype.buildCSource = function (androidArch, blobInputDir,
310
310
const blobsInputInDocker = `/blobs/${ androidArch } `
311
311
const srcOutputDirInDocker = `/dist/src/${ androidArch } ` ;
312
312
const outputPathInDocker = this . getPathInDocker ( srcOutputDir , srcOutputDirInDocker , join ( srcOutputDir , `${ SNAPSHOT_BLOB_NAME } .c` ) ) ;
313
- const buildCSourceCommand = this . getXxdCommand ( outputPathInDocker ) ;
313
+ const buildCSourceCommand = this . getXxdCommand ( outputPathInDocker , "/bin/" ) ;
314
314
command = `docker run --rm -v "${ blobInputDir } :${ blobsInputInDocker } " -v "${ srcOutputDir } :${ srcOutputDirInDocker } " ${ SNAPSHOTS_DOCKER_IMAGE } /bin/sh -c "cd ${ blobsInputInDocker } && ${ buildCSourceCommand } "` ;
315
315
}
316
316
else {
@@ -377,6 +377,6 @@ SnapshotGenerator.prototype.runMksnapshotTool = function (tool, mksnapshotParams
377
377
This is why the *.blob files are initially named TNSSnapshot.blob.
378
378
After the xxd step, they must be renamed to snapshot.blob, because this is the filename that the Android runtime is looking for.
379
379
*/
380
- shelljs . mv ( join ( blobOutputDir , `${ SNAPSHOT_BLOB_NAME } .blob` ) , join ( blobOutputDir , `snapshot.blob` ) ) ;
380
+ shelljs . mv ( join ( blobOutputDir , `${ SNAPSHOT_BLOB_NAME } .blob` ) , join ( blobOutputDir , `snapshot.blob` ) ) ;
381
381
} ) ;
382
382
}
0 commit comments