qttranslation(如果不编译这个库,运行windeployqt会出现警告:Warning: Translations will not be available due to the following error. Cannot open C:/Qt/qt6release/translations/catalogs.json。但这个错误实际不影响程序的翻译状态,可以不编译)
6.2   环境配置和编译步骤
环境变量:确保系统PATH环境变量含有CMake和Ninja路径。
注意不能使用ninja直接构建源码,会报错:build.ninja not found。构建是使用CMake。
find .: Find anything in this directory, including its subdirectories, and anything in those subdirectories as well (recursion) -type f: Only return 'regular file' names. Exclude folder names from the results. -exec: Execute the following command for every result. Everything beyond this point should be treated as part of that command until the ; character is found. dos2unix: dos2unix will be executed with the following options... -k: Keep the date stamp of the output file the same as the input file -s: Skip binary files (images, archives, etc.). This option is included by default, but I use it anyway in case that default were different on some systems (e.g. OS X v. Debian v. CentOS v. Ubuntu v. ...). -o: Write the changes directly to the file, rather than creating a new file with the data in the new format. {}: This tells find to insert the filename it has found as a parameter of the dos2unix call. ';': Tell find that the params for dos2unix have ended. Anything beyond this point will again be treated as a parameter of find. 反斜杠\是用于转移分号; '{}' is a placeholder which indicates where in the command you want the filename(s) to be inserted, and '+' terminates the said command. You can also run dos2unix once for each filename (by changing '+' with ';'), but since dos2unix accepts an arbitrary number of input arguments, it’s better to use it (as it avoids spawning many processes).
# Rename the local branch to the new name git branch -m <old_name> <new_name>
# Delete the old branch on remote - where <remote> is, for example, origin git push <remote> --delete <old_name>
# Or shorter way to delete remote branch [:] git push <remote> :<old_name>
# 删除失败时,请更改默认分支
# Prevent git from using the old name when pushing in the next step. # Otherwise, git will use the old upstream name instead of <new_name>. git branch --unset-upstream <new_name>
# Push the new branch to remote git push <remote> <new_name>
# Reset the upstream branch for the new_name local branch git push <remote> -u <new_name>