acrn-hypervisor/misc/config_tools/configurator
Weiyi Feng 38f79d986b config_tools: fix build issue
fix build issue

Tracked-On: #6691
Signed-off-by: Weiyi Feng <weiyix.feng@intel.com>
2022-04-26 09:22:57 +08:00
..
public config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
pyodide config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
src config_tools: fix build issue 2022-04-26 09:22:57 +08:00
src-tauri config_tools: fix build issue 2022-04-26 09:22:57 +08:00
thirdLib config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
__init__.py config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
.gitignore config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
index.html config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
package.json config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
README.md config_tools: fix build issue 2022-04-26 09:22:57 +08:00
requirements.txt config_tools: fix build issue 2022-04-26 09:22:57 +08:00
tsconfig.json config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
vite.config.js config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
yarn.lock config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00

ACRN Configurator

This version is based on Tauri, WIP.

Features

Support Platforms

  • Linux (.deb, AppImage)
  • Windows 7,8,10 (.exe, .msi)

Setting Up

1. Install System Dependencies

Please follow this guide to install system dependencies (including yarn).

Linux

In Linux,

Windows

In Windows, chocolatey is a Windows package manager, you can use choco install xsltproc to install xsltproc package, which provide xmllint command.

2. Clone Project And Install Project Dependencies.

Linux

sudo apt install git
git clone https://github.com/projectacrn/acrn-hypervisor
cd acrn-hypervisor/misc/config_tools
python3 -m pip install -r requirements.txt
cd configurator
python3 -m pip install -r requirements.txt
yarn

Windows

Similar to Linux.

In the Windows environment maybe you need to install git and python3 via chocolatey or manually, and replace the command line python3 with py -3.

3. How To Build

Linux

Run this command in the acrn-hypervisor directory.

make configurator

Windows

Run following command in the 'acrn-hypervisor' directory.

cd misc/config_tools
python scenario_config/schema_slicer.py
python scenario_config/xs2js.py
xmllint --xinclude schema/datachecks.xsd > schema/allchecks.xsd

python -m build

cd configurator
python thirdLib/manager.py install
yarn build

4. How To Run

Linux

Run this command in the acrn-hypervisor directory.

sudo apt install ./build/acrn-configurator_*.deb
acrn-configurator

Windows

You can find msi(Windows)/dmg(macOS) folder under the misc/config_tools/configurator/src-tauri/target/release/bundle directory, the installer in the folder.