-
Notifications
You must be signed in to change notification settings - Fork 42
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
adapt new rust build standard #82
base: main
Are you sure you want to change the base?
Conversation
$(eval $(call smartdns-rust/templates)) | ||
define Package/smartdns-rust/install | ||
$(INSTALL_DIR) $(1)/usr/sbin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/target/$(RUSTC_TARGET_ARCH)/stripped/smartdns $(1)/usr/sbin/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$(1)
是 prefix 么?是的话 /usr
可以不要的。
例如,
- 当 prefix 是
/
时,这时二进制程序在/sbin
- 当 prefix 是
/usr/local
时,,这时二进制程序在/usr/local/sbin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需/usr,否则编译后安装的目录是/sbin/而不是/usr/sbin/
这种文件最好能够自动更新。例如上面的 hash。 例如,挂载到 git-hook 上,提交代码自动更新。 |
可以考虑用github的dependabot |
你能想办法,写个脚本自动生成那些版号,hash 之类的么?类似 c 语言里的 configure 命令,它也不是写死的,而是编译的时候自动创建的。 可以看这个 它在编译前,有个 autogen 命令。 |
autogen干了啥?
这个是做Makefile的,和rust兼容吗?感觉还是在github上用dependabot处理掉比较好 |
随意吧,反正是由脚本动态生成 makefile 文件。在构建前,先调脚本生成 makefile,不用每次都要跟随着版本号,改这个文件。倒也用不着 dependabot |
没操作过,如何做? |
cf07c81
to
9c7b741
Compare
9bcc81c
to
174f625
Compare
No description provided.