Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
5 of 7 tasks
chenrui9119 opened this issue Nov 28, 2024 · 7 comments
Open
5 of 7 tasks

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

chenrui9119 opened this issue Nov 28, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@chenrui9119
Copy link

Verify Steps

  • Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • Branch 我知道 OpenClash 的 Dev 分支切换开关位于插件设置-版本更新中,或者我会手动下载并安装 Dev 分支的 OpenClash
  • Latest 我已经使用最新 Dev 版本测试过,问题依旧存在
  • Relevant 我知道 OpenClash 与 内核(Core)、控制面板(Dashboard)、在线订阅转换(Subconverter)等项目之间无直接关系,仅相互调用
  • Definite 这确实是 OpenClash 出现的问题
  • Contributors 我有能力协助 OpenClash 开发并解决此问题
  • Meaningless 我提交的是无意义的催促更新或修复请求

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/x86_64/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

@chenrui9119 chenrui9119 added the bug Something isn't working label Nov 28, 2024
@fejeIaqbhbv
Copy link

用dev

@chenrui9119
Copy link
Author

用dev

谢谢,我切到dev分支看看

@unijiang
Copy link

unijiang commented Dec 4, 2024

怎么编译 apk 包?我按照 Readme 上 build 出来是 ipk 包。

@fejeIaqbhbv
Copy link

怎么编译 apk 包?我按照 Readme 上 build 出来是 ipk 包。

Readme 中SDK是15.05的现在是24.10,肯定没有apk。
要不自己换sdk链接或直接编译进固件
要不就用作者编译的自己上传手动安装
https://github.com/vernesong/OpenClash/raw/668e156f65e829931d00817c6c6df41875e83196/dev/luci-app-openclash-0.46.057.apk

@unijiang
Copy link

unijiang commented Dec 5, 2024

@fejeIaqbhbv
Copy link

我下载 https://downloads.openwrt.org/releases/24.10.0-rc2/targets/qualcommax/ipq807x/ 里的 openwrt-sdk-24.10.0-rc2-qualcommax-ipq807x_gcc-13.3.0_musl.Linux-x86_64.tar.zst SDK,build 成功了 但是是 ipk 安装包

刚看了下
目前 APK 仅供 master 分支
24.10分支继续用IPK
openwrt/openwrt@2c3d036

所以你不能用releases
https://downloads.openwrt.org/snapshots/targets/qualcommax/ipq807x/openwrt-sdk-qualcommax-ipq807x_gcc-13.3.0_musl.Linux-x86_64.tar.zst


另外我刚发现README有个问题
git remote add -f origin https://github.com/vernesong/OpenClash.git
这个-f是不能加的,否则会立刻强制拉整个仓库,几百G就没了
作者看见了麻烦改一下吧
git remote add origin https://github.com/vernesong/OpenClash.git

@chenrui9119
Copy link
Author

另外我刚发现README有个问题 git remote add -f origin https://github.com/vernesong/OpenClash.git 这个-f是不能加的,否则会立刻强制拉整个仓库,几百G就没了 作者看见了麻烦改一下吧 git remote add origin https://github.com/vernesong/OpenClash.git

点赞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants