MIT AI2 Companion: NW.js + ARChon + Emulator.apk [windows]

NW.js: https://nwjs.io/downloads/

https://dl.nwjs.io/v0.45.1/nwjs-sdk-v0.45.1-win-x64.zip

ARChon: https://archon-runtime.github.io/

http://archon.vf.io/ARChon-v1.2-x86_64.zip

Emulator

AI2Companion258en.zip
https://drive.google.com/open?id=1svs9YDtMWUJCRppBXxO1xat0lyWy8pDh

unzip.
nwjs f0
nwjs f1
nwjs f2

AI2Companion.bat

@echo off
cd %~dp0
start nw.exe --load-extension=%~dp0ARChon --user-data-dir=%~dp0user_data --ignore-gpu-blacklist %~dp0AI2Companion

run AI2Companion.bat


1 Like

(added to FAQ)

Can MIT’s Companion.apk or Emulator.apk distribution be used directly with this setup, or does the .apk need to be post-processed first with ARChon tools?

is that App Inventor companion apk?
and i get error saying “Launch the aiStarter program on your computer and then try again.” when i click usb under connect

MIT’s Emulator.apk need aiStarter.

AI2Companion258en.zip apk Built-in 127.0.0.1:8004, without aiStarter.

edit appinventor-sources\appinventor\components\src\com\google\appinventor\components\runtime\ReplForm.java


ReplForm.java.txt (35.7 KB)

appinventor-sources\appinventor\components\src\com\google\appinventor\components\runtime\util\AppInvHTTPD.java


AppInvHTTPD.java.txt (17.8 KB)

Build Emulator.apk

ant clean
ant PlayApp
ant Emulator