tnie / exe-revision Goto Github PK
View Code? Open in Web Editor NEW给二进制可执行文件 exe/dll 打版本
给二进制可执行文件 exe/dll 打版本
Code | Replacement string |
---|---|
%C | The year divided by 100 and truncated to an integer, as a decimal number (00−99) |
%y | Year without century, as decimal number (00 - 99) |
%Y | Year with century, as decimal number |
前两者的区别在哪?
在实操中,发现当把系统时间人为地由 2020 年调整到 2021 年时,%C
依旧输出 20,而 %Y
输出 2021,%y
未测试
可行吗?需要测试
#!/bin/bash
if git describe --dirty ; then
version=$(git describe --dirty)
echo "namespace ims { const char* version() { return \"${version}\"; } }" > version.h
else
echo 'namespace ims { const char* version() { return "x.y.z"; } }' > version.h
fi
This is often used as part of the build process as a means of incorporating working tree information into the object you are building. Typically it might be used to include the revision number in an “About” box.
既然是 git/svn 联合的案例,就应该同时支持两者,以便完整地测试。
我暂时只了解如何使用 git 操作 svn 仓库,不了解如果通过 svn 操作 git 仓库。
所以 gvn 主干上,所有的提交都应该是向 svn 仓库提交后转化的 commit,message 中的关键词是 git-svn-id
如果禁止 message 不包含 git-svn-id
关键词的提交上传到 gvn 分支中?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.