|
| 1 | +# YukiHookAPI Project Builder |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +[](https://t.me/YukiHookAPI) |
| 6 | +<br/><br/> |
| 7 | +<img src="https://github.com/fankes/YuKiHookAPI/blob/master/img-src/icon.png" width = "100" height = "100"/> |
| 8 | +<br/> |
| 9 | +<br/> |
| 10 | +帮助你快速创建一个使用 YukiHookAPI 打造的 Xposed 项目模板。 |
| 11 | +<br/> |
| 12 | + |
| 13 | +[English](https://github.com/fankes/YukiHookAPI-ProjectBuilder/blob/master/README.md) | 简体中文 |
| 14 | + |
| 15 | +## 这是什么 |
| 16 | + |
| 17 | +- 这是一个使用 [YukiHookAPI](https://github.com/fankes/YukiHookAPI) 作为核心的 Xposed 模块自动构建工具 |
| 18 | + |
| 19 | +- 实现自动化搜索依赖快速搭建一个包含 Xposed 模块环境的 Android 项目模板 |
| 20 | + |
| 21 | +## 如何使用 |
| 22 | + |
| 23 | +- 本项目使用 **Electron** 开发,快速实现多平台本地化应用程序的构建和运行 |
| 24 | + |
| 25 | +你可以直接从 [Release](https://github.com/fankes/YukiHookAPI-ProjectBuilder/releases) 下载适合于你平台的应用程序。 |
| 26 | + |
| 27 | +**以下是手动部署与编译步骤** |
| 28 | + |
| 29 | +首先你需要安装 [node.js](https://nodejs.org/zh-cn/) |
| 30 | + |
| 31 | +IDE 工具建议使用 **IntelliJ IDEA** 或 **WebStorm** |
| 32 | + |
| 33 | +不建议使用 **Visual Studio Code** 对代码进行格式化,可能会造成一些错误。 |
| 34 | + |
| 35 | +- 执行如下命令安装 Electron |
| 36 | + |
| 37 | +``` |
| 38 | +npm install --save-dev electron |
| 39 | +``` |
| 40 | + |
| 41 | +- 执行如下命令安装 yarn |
| 42 | + |
| 43 | +``` |
| 44 | +npm install yarn |
| 45 | +``` |
| 46 | + |
| 47 | +- 进入项目目录,执行如下命令安装依赖 |
| 48 | + |
| 49 | +``` |
| 50 | +npm install --save-dev @electron-forge/cli |
| 51 | +``` |
| 52 | + |
| 53 | +``` |
| 54 | +npx electron-forge import |
| 55 | +``` |
| 56 | + |
| 57 | +- 使用如下命令进行调试 |
| 58 | + |
| 59 | +``` |
| 60 | +npm run start |
| 61 | +``` |
| 62 | + |
| 63 | +- 使用如下命令进行编译 & 打包 |
| 64 | + |
| 65 | +**Linux/macOS** |
| 66 | + |
| 67 | +``` |
| 68 | +npm run make |
| 69 | +``` |
| 70 | + |
| 71 | +**Windows** |
| 72 | + |
| 73 | +``` |
| 74 | +npm run package |
| 75 | +``` |
| 76 | + |
| 77 | +## 许可证 |
| 78 | + |
| 79 | +- [AGPL-3.0](https://www.gnu.org/licenses/agpl-3.0.html) |
| 80 | + |
| 81 | +``` |
| 82 | +Copyright (C) 2019-2022 HighCapable |
| 83 | +
|
| 84 | +This program is free software: you can redistribute it and/or modify |
| 85 | +it under the terms of the GNU Affero General Public License as |
| 86 | +published by the Free Software Foundation, either version 3 of the |
| 87 | +License, or (at your option) any later version. |
| 88 | +
|
| 89 | +This program is distributed in the hope that it will be useful, |
| 90 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 91 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 92 | +GNU Affero General Public License for more details. |
| 93 | +
|
| 94 | +You should have received a copy of the GNU Affero General Public License |
| 95 | +along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 96 | +``` |
| 97 | + |
| 98 | +版权所有 © 2019-2022 HighCapable |
0 commit comments