update 2026-07-27 22:20:34

This commit is contained in:
action
2026-07-27 22:20:34 +08:00
parent 079ea4f182
commit 20b786ab77
6243 changed files with 0 additions and 2850540 deletions
@@ -1,58 +0,0 @@
name: Bug 报告
description: 在使用过程中遇到错误或非预期行为。
labels:
- bug
body:
- type: textarea
id: description
attributes:
label: Bug 描述
description: 简明地描述您所遇到的 Bug。
validations:
required: true
- type: textarea
id: expected
attributes:
label: 预期行为
description: 简明地描述您所希望发生的行为。
- type: textarea
id: behaviour
attributes:
label: 实际行为
description: 简明地描述实际发生的行为。
- type: textarea
id: reproduce
attributes:
label: 复现步骤
description: 复现报告行为的步骤。
- type: textarea
id: debug-log
attributes:
label: 调试报告
description: |
使用下面的命令打印调试报告,以便我们排查问题。请注意,您只需贴上最后的链接,不必复制整个输出。
如果您使用 JavaScript 版本的插件,可以直接在 `状态信息` 中点击 `打印报告`。
```/usr/bin/unm-debug```
validations:
required: true
- type: textarea
id: additional
attributes:
label: 其他信息
description: 其他任何您认为有意义的信息。
- type: checkboxes
id: terms
attributes:
label: 条款
description: 提交此 issue 即表明您同意以下条款。
options:
- label: 我确认我使用的插件是由 UnblockNeteaseMusic 项目或 ImmortalWrt 项目官方发行。
required: true
- label: 我确认我已经升级到了最新的插件版本(包括核心和插件)。
required: true
- label: 我确认我安装了正确版本的插件(基于 lua 语言的 LuCI 只能使用 2.x 版本)。
required: true
- label: 我确认我没有混用 iptables 和 nftables 规则。
required: true
- label: 我确认我已经在对应的客户端正确安装了 CA 证书。
required: true
@@ -1,2 +0,0 @@
---
blank_issues_enabled: false
@@ -1,27 +0,0 @@
name: 功能请求
description: 请求加入新的功能以满足您的日常使用所需。
labels:
- enhancement
body:
- type: textarea
id: description
attributes:
label: 需求描述
description: 清晰明了地描述您的需求。
validations:
required: true
- type: textarea
id: expected
attributes:
label: 预期行为
description: 简明地描述您所希望发生的行为。
- type: input
id: openwrt-version
attributes:
label: OpenWrt 版本
description: 您所使用的 OpenWrt 版本号。
- type: textarea
id: additional
attributes:
label: 其他信息
description: 其他任何您认为有意义的信息。
-79
View File
@@ -1,79 +0,0 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-only
#
# Copyright (C) 2021-2022 Tianling Shen <cnsztl@immortalwrt.org>
export PKG_SOURCE_DATE_EPOCH="$(date "+%s")"
BASE_DIR="$(cd "$(dirname $0)"; pwd)"
PKG_DIR="$BASE_DIR/.."
function get_mk_value() {
awk -F "$1:=" '{print $2}' "$PKG_DIR/Makefile" | xargs
}
PKG_NAME="$(get_mk_value "PKG_NAME")"
if [ "$RELEASE_TYPE" == "release" ]; then
PKG_VERSION="$(get_mk_value "PKG_VERSION")-$(get_mk_value "PKG_RELEASE")"
else
PKG_VERSION="dev-$PKG_SOURCE_DATE_EPOCH-$(git rev-parse --short HEAD)"
fi
TEMP_DIR="$(mktemp -d -p $BASE_DIR)"
TEMP_PKG_DIR="$TEMP_DIR/$PKG_NAME"
mkdir -p "$TEMP_PKG_DIR/CONTROL/"
mkdir -p "$TEMP_PKG_DIR/lib/upgrade/keep.d/"
mkdir -p "$TEMP_PKG_DIR/www/"
cp -fpR "$PKG_DIR/htdocs"/* "$TEMP_PKG_DIR/www/"
cp -fpR "$PKG_DIR/root"/* "$TEMP_PKG_DIR/"
echo -e "/etc/config/unblockneteasemusic" > "$TEMP_PKG_DIR/CONTROL/conffiles"
cat > "$TEMP_PKG_DIR/lib/upgrade/keep.d/$PKG_NAME" <<-EOF
/usr/share/unblockneteasemusic/core/
/usr/share/unblockneteasemusic/core_local_ver
/usr/share/unblockneteasemusic/server.crt
/usr/share/unblockneteasemusic/server.key
EOF
cat > "$TEMP_PKG_DIR/CONTROL/control" <<-EOF
Package: $PKG_NAME
Version: $PKG_VERSION
Depends: libc,$(get_mk_value "LUCI_DEPENDS" | xargs | tr " +" ", ")
Source: https://github.com/UnblockNeteaseMusic/luci-app-unblockneteasemusic
SourceName: $PKG_NAME
Section: luci
SourceDateEpoch: $PKG_SOURCE_DATE_EPOCH
Maintainer: Tianling Shen <cnsztl@immortalwrt.org>
Architecture: all
Installed-Size: TO-BE-FILLED-BY-IPKG-BUILD
Description: LuCI support for UnblockNeteaseMusic
EOF
echo -e '#!/bin/sh
[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0
[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0
. ${IPKG_INSTROOT}/lib/functions.sh
default_postinst $0 $@' > "$TEMP_PKG_DIR/CONTROL/postinst"
chmod 0755 "$TEMP_PKG_DIR/CONTROL/postinst"
echo -e "[ -n "\${IPKG_INSTROOT}" ] || {
(. /etc/uci-defaults/$PKG_NAME) && rm -f /etc/uci-defaults/$PKG_NAME
rm -f /tmp/luci-indexcache
rm -rf /tmp/luci-modulecache/
exit 0
}" > "$TEMP_PKG_DIR/CONTROL/postinst-pkg"
chmod 0755 "$TEMP_PKG_DIR/CONTROL/postinst-pkg"
echo -e '#!/bin/sh
[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0
. ${IPKG_INSTROOT}/lib/functions.sh
default_prerm $0 $@' > "$TEMP_PKG_DIR/CONTROL/prerm"
chmod 0755 "$TEMP_PKG_DIR/CONTROL/prerm"
curl -fsSL "https://raw.githubusercontent.com/openwrt/openwrt/master/scripts/ipkg-build" -o "$TEMP_DIR/ipkg-build"
chmod 0755 "$TEMP_DIR/ipkg-build"
"$TEMP_DIR/ipkg-build" -m "" "$TEMP_PKG_DIR" "$TEMP_DIR"
mv "$TEMP_DIR/${PKG_NAME}_${PKG_VERSION}_all.ipk" "$BASE_DIR/${PKG_NAME}_${PKG_VERSION}_javascript_all.ipk"
rm -rf "$TEMP_DIR"
@@ -1,61 +0,0 @@
name: Build ipk for luci-app-unblockneteasemusic
on:
push:
branches:
- 'js'
paths:
- 'htdocs/**'
- 'root/**'
- 'Makefile'
- '.github/**'
pull_request:
branch:
- 'js'
types:
- opened
- synchronize
- reopened
paths:
- 'htdocs/**'
- 'root/**'
- 'Makefile'
- '.github/**'
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source tree
uses: actions/checkout@v4
- name: Build ipk file
env:
RELEASE_TYPE: ${{ github.event_name }}
run: |
pushd .github
fakeroot bash build-ipk.sh
echo "ASSET_NAME=$(ls *.ipk)" >> $GITHUB_ENV
popd
- name: Publishing to GitHub Artifacts
uses: actions/upload-artifact@v4
if: github.event_name != 'release'
with:
name: ${{ env.ASSET_NAME }}
path: .github/*.ipk
- name: Publishing to GitHub Releases
uses: floralatin/upload-release-action@3688e13ae053ba3052eb4f0cfe03e78deb8f88d7
if: github.event_name == 'release'
with:
repo_token: ${{ github.token }}
file: .github/*.ipk
tag: ${{ github.ref }}
file_glob: true