1) 安装 Chrome + ARChon
http://jasonmun.blogspot.my/2017/03/linux-chrome-archon-android-app.html
2) 依赖库
$ sudo apt-get install g++ lib32stdc++6
3) node.js 编译与安装
https://nodejs.org/en/download/
$ wget https://nodejs.org/dist/v6.11.4/node-v6.11.4.tar.gz
$ tar -zxvf node-v6.11.4.tar.gz
$ cd node-v6.11.4
$ sudo ./configure
$ sudo make
$ sudo make install
或
$ wget https://nodejs.org/dist/v6.11.4/node-v6.11.4-linux-x64.tar.xz
$ su
$ tar --strip-components=1 -Jxvf node-v* -C /usr/local
$ node --version
4) 安装 chromeos-apk
$ sudo npm install chromeos-apk -g
5) 下载 apk, 利用 chromeos-apk 转换 apk..
会生成文件夹 com.candydroid.breakblock.android
https://apkpure.com/cn/break-the-bricks/com.candydroid.breakblock/download?from=details
$ mv 'Break the Bricks_v2.8_apkpure.com.apk' Bricks_v2.8_apkpure.com.apk
$ chromeos-apk Bricks_v2.8_apkpure.com.apk
6) 转换后, 在 messages.json 里加入名字
$ gedit com.candydroid.breakblock.android/_locales/en/messages.json
{
"appNotSupported": {
"description": "Message displayed when the app is not supported.",
"message": "This app is incompatible with your device. Check to make sure other Android apps work for you from the Chrome Web Store"
},
"extName": {
"description": "Extension name",
"message": "Android - Break the Bricks"
}
}
7) 用 Chrome + ARChon 运行以上文件夹
没有评论:
发表评论