mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2024-12-22 06:15:31 +00:00
Update workflow for separate luci-app-youtubeUnblock
This commit is contained in:
parent
9dc40bbdf1
commit
30bc3a8d3f
43
.github/workflows/build-ci.yml
vendored
43
.github/workflows/build-ci.yml
vendored
@ -228,6 +228,48 @@ jobs:
|
|||||||
path: /builder/youtubeUnblock*.ipk
|
path: /builder/youtubeUnblock*.ipk
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
|
build-openwrt-luci:
|
||||||
|
needs: prepare
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: openwrt/sdk:x86_64-openwrt-23.05
|
||||||
|
options: --user root
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: 'openwrt'
|
||||||
|
|
||||||
|
- name: Prepare build
|
||||||
|
env:
|
||||||
|
VERSION: ${{ needs.prepare.outputs.version }}
|
||||||
|
SHA: ${{ needs.prepare.outputs.sha }}
|
||||||
|
run: |
|
||||||
|
sed -i "s/PKG_REV:=.*$/PKG_REV:=$SHA/;s/PKG_VERSION:=.*$/PKG_VERSION:=$VERSION-$SHA/" youtubeUnblock/Makefile
|
||||||
|
|
||||||
|
- name: Build packages
|
||||||
|
id: build
|
||||||
|
env:
|
||||||
|
VERSION: ${{ needs.prepare.outputs.version }}
|
||||||
|
SHA: ${{ needs.prepare.outputs.sha }}
|
||||||
|
working-directory: /builder
|
||||||
|
run: |
|
||||||
|
echo "src-link youtubeUnblock $GITHUB_WORKSPACE" >> feeds.conf
|
||||||
|
cat feeds.conf
|
||||||
|
./scripts/feeds update youtubeUnblock
|
||||||
|
./scripts/feeds install -a -p youtubeUnblock
|
||||||
|
make defconfig
|
||||||
|
make package/luci-app-youtubeUnblock/compile V=s
|
||||||
|
mv $(find ./bin -type f -name 'luci-app-youtubeUnblock*.ipk') ./luci-app-youtubeUnblock-$VERSION-$SHA.ipk
|
||||||
|
|
||||||
|
- name: Upload packages
|
||||||
|
if: steps.build.outcome == 'success'
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: luci-app-youtubeUnblock
|
||||||
|
path: /builder/luci-app-youtubeUnblock*.ipk
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
build-entware:
|
build-entware:
|
||||||
needs: prepare
|
needs: prepare
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -341,3 +383,4 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
./**/youtubeUnblock*.ipk
|
./**/youtubeUnblock*.ipk
|
||||||
./**/youtubeUnblock*.tar.gz
|
./**/youtubeUnblock*.tar.gz
|
||||||
|
./**/luci-app-youtubeUnblock*.ipk
|
||||||
|
@ -85,7 +85,9 @@ For nftables on OpenWRT rules comes out-of-the-box and stored under `/usr/share/
|
|||||||
|
|
||||||
Now we go to the configuration. For OpenWRT here is configuration via [UCI](https://openwrt.org/docs/guide-user/base-system/uci) and [LuCI](https://openwrt.org/docs/guide-user/luci/start) available (CLI and GUI respectively).
|
Now we go to the configuration. For OpenWRT here is configuration via [UCI](https://openwrt.org/docs/guide-user/base-system/uci) and [LuCI](https://openwrt.org/docs/guide-user/luci/start) available (CLI and GUI respectively).
|
||||||
|
|
||||||
Luci is a configuration interface for your router (which you connect when enter 192.168.1.1 in browser). LuCI configuration lives in **Services->youtubeUnblock** section. It is self descriptive, with description for each flag. Note, that after you push `Save & Apply` button, the configuration is applied automatically and the service is restarted.
|
For **LuCI** aka **GUI** aka **web-interface of router** you should install luci-app-youtubeUnblock package like you did it with the normal youtubeUnblock package. Note, that lists of official opkg feeds should be loaded (**Do it with Update lists option**).
|
||||||
|
|
||||||
|
LuCI configuration lives in **Services->youtubeUnblock** section. It is self descriptive, with description for each flag. Note, that after you push `Save & Apply` button, the configuration is applied automatically and the service is restarted.
|
||||||
|
|
||||||
UCI configuration is available in /etc/config/youtubeUnblock file, in section `youtubeUnblock.youtubeUnblock`. The configuration is done with [flags](#flags). Note, that names of flags are not the same: you should replace `-` with `_`, you shouldn't use leading `--` for flag. Also you will enable toggle flags (without parameters) with `1`.
|
UCI configuration is available in /etc/config/youtubeUnblock file, in section `youtubeUnblock.youtubeUnblock`. The configuration is done with [flags](#flags). Note, that names of flags are not the same: you should replace `-` with `_`, you shouldn't use leading `--` for flag. Also you will enable toggle flags (without parameters) with `1`.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user