config-tools: modify scenario.json in build directory

Copy scenrio.json to build directory, and modify the temporary file
to avoid pollution of hypervisor repo.

Tracked-On: #7459
Signed-off-by: Yuanyuan Zhao <yuanyuan.zhao@linux.intel.com>
This commit is contained in:
Yuanyuan Zhao
2022-05-11 21:15:57 +08:00
committed by acrnsi-robot
parent 130266442e
commit 9f08eeb999
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import {loadPyodide} from "/thirdLib/pyodide/pyodide";
import scenarioJSONSchema from './assets/schema/scenario.json';
import scenarioJSONSchema from '../build/assets/scenario.json';
window.__dynamic__load__scenario__from__pyodide__ = () => {
return JSON.stringify(scenarioJSONSchema)
@@ -34,4 +34,4 @@ export default async function () {
// pyodide load success
window.pyodide = pyodide;
}
}