-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[更新CI/CD流程和包重命名脚本]: 更新了GitHub Actions工作流,增加了包重命名的shell脚本,以自动化发布流程。
- 更新了`cmake.yml`工作流,移除了下载字体的步骤,改为检出代码和下载构建产物。 - 新增了`rename_package.sh`脚本来重命名打包的文件,使其包含标签名,以便于识别。 - 修改了`cmake.yml`工作流,调用`rename_package.sh`脚本来重命名包。 - 移除了`cmake.yml`中根据标签重命名文件的步骤,因为现在由`rename_package.sh`脚本处理。 - 在`rename_package.sh`脚本中,下载了旧版本的字体文件。
- Loading branch information
Showing
2 changed files
with
58 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash -ex | ||
|
||
cd "$(dirname "$0")" | ||
cd .. | ||
project_dir="$(pwd)" | ||
echo "Current directory: ${project_dir}" | ||
|
||
releases_dir="${project_dir}/packaging/releases" | ||
TAG_NAME="${GITHUB_REF#refs/tags/}" | ||
|
||
cd ${releases_dir} | ||
ls -al | ||
|
||
cd windows* | ||
mv *.7z Qt-App_${TAG_NAME}_windows_x86_64.7z | ||
mv *.exe Qt-App_${TAG_NAME}_x86_64.exe | ||
mv * ${releases_dir}/ | ||
cd .. | ||
|
||
cd ubuntu* | ||
mv *.7z Qt-App_${TAG_NAME}_ubuntu_x86_64.7z | ||
mv *.AppImage Qt-App_${TAG_NAME}_x86_64.AppImage | ||
mv *.deb Qt-App_${TAG_NAME}_x86_64.deb | ||
mv * ${releases_dir}/ | ||
cd .. | ||
|
||
cd macos*x86* | ||
mv *.7z Qt-App_${TAG_NAME}_macos_x86_64.7z | ||
mv *.dmg Qt-App_${TAG_NAME}_x86_64.dmg | ||
mv *.pkg Qt-App_${TAG_NAME}_x86_64.pkg | ||
mv * ${releases_dir}/ | ||
cd .. | ||
|
||
cd macos*arm* | ||
mv *.7z Qt-App_${TAG_NAME}_macos_aarch64.7z | ||
mv *.dmg Qt-App_${TAG_NAME}_aarch64.dmg | ||
mv *.pkg Qt-App_${TAG_NAME}_aarch64.pkg | ||
mv * ${releases_dir}/ | ||
cd .. | ||
|
||
cd ${releases_dir} | ||
wget -nv "https://github.com/RealChuan/Qt-App/releases/download/0.0.1/fonts.7z" | ||
|
||
ls -al | ||
|
||
exit 0 |