How to package a Windows installation on macOS?
Updated
To create a Smart Classroom Windows installation package using a Mac, take the following steps:
-
Delete
agora-electron-sdkin thenode_modulesfolder. -
Add the following code to the
package.jsonfile:"agora_electron": { "electron_version": "12.0.0", "prebuilt": true, "platform": "win32", "arch": "x64" } -
Modify the
pack:wincommand in thepackages/agora-demo-app/package.jsonfile and add thearchparameter at the end to specify the system architecture, such as the 64-bit operating system architecture:"pack:win": "yarn electron:copy:electron:win && electron-builder --win -p never --x64",If you need to package for a 32-bit operating system, change the last parameter to
--ia32. -
Run the installation command again:
yarn install -
Run the following commands to package Smart Classroom:
yarn pack:classroom:sdk yarn pack:classroom:plugin yarn ci:build yarn pack:electron:win -
The packaging process is complete. You can find the generated installation package in the
packages/agora-demo-app/releasedirectory.
