vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
17.76k stars 3.2k forks source link

[Bug] 无法编译出APK包,显示版本号invalid。 #4202

Open chenrui9119 opened 2 days ago

chenrui9119 commented 2 days ago

Verify Steps

OpenClash Version

v0.46.050-rbeta

Bug on Environment

Official OpenWrt

OpenWrt Version

openwrt v6.6.63

Bug on Platform

Linux-amd64-v3(x86-64)

Describe the Bug

新版openwrt切换到了apk包管理器,在编译apk软件包时,报错ERROR: info field 'version' has invalid value: package version is invalid。请求解决方案。

/home/parallels/openwrt/staging_dir/host/bin/fakeroot /home/parallels/openwrt/staging_dir/host/bin/apk mkpkg --info "name:luci-app-openclash" --info "version:0.46.050-rbeta" --info "description:A LuCI support for clash" --info "arch:noarch" --info "license:" --info "origin:feeds/base/luci-app-openclash/luci-app-openclash" --info "url:" --info "maintainer:vernesong" --info "provides:" --script "post-install:/home/parallels/openwrt/build_dir/target-x86_64_musl/luci-app-openclash/apk-all/luci-app-openclash/post-install" --script "pre-deinstall:/home/parallels/openwrt/build_dir/target-x86_64_musl/luci-app-openclash/apk-all/luci-app-openclash/pre-deinstall" --script "post-deinstall:/home/parallels/openwrt/build_dir/target-x86_64_musl/luci-app-openclash/apk-all/luci-app-openclash/postrm" --info "depends:libc dnsmasq-full coreutils coreutils-nohup bash curl ca-certificates ip-full libcap libcap-bin ruby ruby-yaml kmod-tun unzip" --files "/home/parallels/openwrt/build_dir/target-x86_64_musl/luci-app-openclash/ipkg-all/luci-app-openclash" --output "/home/parallels/openwrt/bin/packages/x8664/base/luci-app-openclash-0.46.050-rbeta.apk" --sign "/home/parallels/openwrt/private-key.pem" ERROR: info field 'version' has invalid value: package version is invalid_ ERROR: failed to create package: /home/parallels/openwrt/bin/packages/x86_64/base/luci-app-openclash-0.46.050-rbeta.apk: package version is invalid make[3]: [Makefile:191: /home/parallels/openwrt/bin/packages/x86_64/base/luci-app-openclash-0.46.050-rbeta.apk] Error 99 make[3]: Leaving directory '/home/parallels/openwrt/package/luci-app-openclash/luci-app-openclash' time: package/luci-app-openclash/luci-app-openclash/compile#0.92#0.64#1.57 ERROR: package/luci-app-openclash/luci-app-openclash failed to build. make[2]: [package/Makefile:185: package/luci-app-openclash/luci-app-openclash/compile] Error 1 make[2]: Leaving directory '/home/parallels/openwrt' make[1]: [package/Makefile:179: /home/parallels/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/parallels/openwrt' make: [/home/parallels/openwrt/include/toplevel.mk:248:world] 错误 2

To Reproduce

make package/luci-app-openclash/luci-app-openclash/compile V=99

OpenClash Log

编译过程,不存在运行日志

OpenClash Config

No response

Expected Behavior

能够正常编译出包

Additional Context

No response

fejeIaqbhbv commented 2 days ago

用dev

chenrui9119 commented 2 days ago

用dev

谢谢,我切到dev分支看看