Add theme compile instructions

This commit is contained in:
Eric Yu 2024-07-16 18:00:03 +08:00
parent 54a25dd471
commit 29e7512c93
2 changed files with 70 additions and 43 deletions

View File

@ -1,17 +1,7 @@
# luci-theme-infinityfreedom-ng (Next Generation)
[ English Version Click Here ](/README.md)
[1]: https://img.shields.io/badge/license-Apache2-brightgreen.svg
[2]: /LICENSE
[3]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg
[4]: https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom/pulls
[5]: https://img.shields.io/badge/Issues-welcome-brightgreen.svg
[6]: https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom/issues/new
[7]: https://img.shields.io/badge/release-NGv1.2beta-orange.svg?
[8]: https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom/releases
[9]: https://img.shields.io/github/downloads/xiaoqingfengATGH/luci-theme-infinityfreedom/total
[10]: https://img.shields.io/badge/Contact-telegram-blue
[11]: https://t.me/t_homelede
[![license][1]][2]
[![PRs Welcome][3]][4]
[![Issue Welcome][5]][6]
@ -32,31 +22,42 @@ https://github.com/xiaoqingfengATGH/HomeLede
编辑源码文件夹根目录feeds.conf.default并加入如下内容:
# luci-theme-infinityfreedom
src-git infinityfreedomng https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom.git
# luci-theme-infinityfreedom
src-git infinityfreedomng https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom.git
更新feeds并安装主题
$ scripts/feeds update infinityfreedomng
$ scripts/feeds install luci-theme-infinityfreedom-ng
$ scripts/feeds update infinityfreedomng
$ scripts/feeds install luci-theme-infinityfreedom-ng
打开配置菜单:
$ make menuconfig
$ make menuconfig
找到 LuCI -> Themes, 选择 luci-theme-infinityfreedom-ng, 保存后退出,编译固件。
找到 LuCI -> Themes, 选择 luci-theme-infinityfreedom-ng, 保存后退出,编译固件。
也可以仅单独构建主题,在固件编译根路径下,执行如下命令:
```
make package/feeds/infinityfreedomng/luci-theme-infinityfreedom-ng/compile V=s
```
命令成功后可以在下面路径中找到ipk文件以下以x86_64固件为例给出路径如果你编译其他硬件的固件请按照目标硬件调整路径。
```
your_firmware_build_root/bin/packages/x86_64/infinityfreedomng
```
主题默认会自动启用,如果没有启动可以手动开启。
手动开启主题
----------------
------------
* 系统 -> 系统 -> 语言和界面
* 主题处选择 'infinityfreedomNG',右下角“保存&应用”
* 按F5刷新浏览器
* 系统 -> 系统 -> 语言和界面
* 主题处选择 'infinityfreedomNG',右下角“保存&应用”
* 按F5刷新浏览器
屏幕截图
----------------
--------
![](/screenshots/000.Login.png)
![](/screenshots/001.Overview.png)
![](/screenshots/002.Firewall.png)
@ -68,3 +69,15 @@ https://github.com/xiaoqingfengATGH/HomeLede
![](/screenshots/101.SoftwarePkgs.png)
![](/screenshots/207.upnp.png)
![](/screenshots/304.Samba.png)
[1]: https://img.shields.io/badge/license-Apache2-brightgreen.svg
[2]: /LICENSE
[3]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg
[4]: https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom/pulls
[5]: https://img.shields.io/badge/Issues-welcome-brightgreen.svg
[6]: https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom/issues/new
[7]: https://img.shields.io/badge/release-NGv1.2beta-orange.svg?
[8]: https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom/releases
[9]: https://img.shields.io/github/downloads/xiaoqingfengATGH/luci-theme-infinityfreedom/total
[10]: https://img.shields.io/badge/Contact-telegram-blue
[11]: https://t.me/t_homelede

View File

@ -1,17 +1,7 @@
# luci-theme-infinityfreedom-ng (Next Generation)
[ 中文说明 ](/README-zh_cn.md)
[1]: https://img.shields.io/badge/license-Apache2-brightgreen.svg
[2]: /LICENSE
[3]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg
[4]: https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom/pulls
[5]: https://img.shields.io/badge/Issues-welcome-brightgreen.svg
[6]: https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom/issues/new
[7]: https://img.shields.io/badge/release-NGv1.2beta-orange.svg?
[8]: https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom/releases
[9]: https://img.shields.io/github/downloads/xiaoqingfengATGH/luci-theme-infinityfreedom/total
[10]: https://img.shields.io/badge/Contact-telegram-blue
[11]: https://t.me/t_homelede
[![license][1]][2]
[![PRs Welcome][3]][4]
[![Issue Welcome][5]][6]
@ -32,25 +22,37 @@ https://github.com/xiaoqingfengATGH/HomeLede
Edit your feeds.conf.default and add the following to it:
# luci-theme-infinityfreedom
src-git infinityfreedomng https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom.git
# luci-theme-infinityfreedom
src-git infinityfreedomng https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom.git
Update your build environment and install the package:
$ scripts/feeds update infinityfreedomng
$ scripts/feeds install luci-theme-infinityfreedom-ng
$ make menuconfig
$ scripts/feeds update infinityfreedomng
$ scripts/feeds install luci-theme-infinityfreedom-ng
$ make menuconfig
Go to LuCI -> Themes, select luci-infinityfreedom-ng, exit, save and build as usual.
You can also compile the the theme without compile the whole firmware, make sure you are in the firmware's root build path, and then execute:
```
make package/feeds/infinityfreedomng/luci-theme-infinityfreedom-ng/compile V=s
```
After the command finish , you can find the ipkg in the path below (if you are not build a x86_64 firmware, change the path accordingly)
```
<your_firmware_build_root>/bin/packages/x86_64/infinityfreedomng
```
Enable the Theme
----------------
* Go to System -> System -> Language and Style
* Choose 'infinityfreedomNG' in the Design selectbox
* Go to System -> System -> Language and Style
* Choose 'infinityfreedomNG' in the Design selectbox
ScreenShots
----------------
-----------
![](/screenshots/000.Login.png)
![](/screenshots/001.Overview.png)
![](/screenshots/002.Firewall.png)
@ -62,3 +64,15 @@ ScreenShots
![](/screenshots/101.SoftwarePkgs.png)
![](/screenshots/207.upnp.png)
![](/screenshots/304.Samba.png)
[1]: https://img.shields.io/badge/license-Apache2-brightgreen.svg
[2]: /LICENSE
[3]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg
[4]: https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom/pulls
[5]: https://img.shields.io/badge/Issues-welcome-brightgreen.svg
[6]: https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom/issues/new
[7]: https://img.shields.io/badge/release-NGv1.2beta-orange.svg?
[8]: https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom/releases
[9]: https://img.shields.io/github/downloads/xiaoqingfengATGH/luci-theme-infinityfreedom/total
[10]: https://img.shields.io/badge/Contact-telegram-blue
[11]: https://t.me/t_homelede