new #71
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
name: Release | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
env: | |
VERSION: '9.0.0' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Remove unwanted files | |
run: | | |
rm -rf my_workspaces/.my_workspaces | |
rm -rf README.md | |
rm -rf README_EN.md | |
rm -rf .git | |
rm -rf .github | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.MY_TOKEN }} | |
with: | |
tag_name: ${{ env.VERSION }} | |
release_name: UY-Scuti ${{ env.VERSION }} | |
draft: false | |
prerelease: false | |
body: | | |
## 更新内容 | |
### 新的功能 | |
1. **ext 分区文件的提取更换**:现在提取 ext 分区文件时需要 ROOT 权限。 | |
2. **ext4 打包方式更新**:ext4 文件的打包方式已更改为使用 `mke2fs` 和 `e2fsdroid`,仅支持 Android 10 及更高版本。 | |
3. **super.img 打包添加加载动画**:在打包 `super.img` 时新增了加载动画。 | |
4. **不再支持 ext 和 f2fs 稀疏格式打包**:已移除对 ext 和 f2fs 稀疏格式的打包支持。 | |
5. **更新逻辑分离**:将 SELinux 配置与上下文内容的更新逻辑从打包逻辑中分离,便于代码阅读和维护。 | |
6. **其他优化**:进行了一些特性优化,以提高性能和可用性。 | |
## Release Notes | |
### New Features | |
1. **Extracting ext partition files now requires ROOT permissions**: The extraction of ext partition files has been updated and now requires ROOT access. | |
2. **ext4 packaging update**: The packaging method for ext4 partitions has been changed to use `mke2fs` and `e2fsdroid`, and is now supported only on Android 10 and higher. | |
3. **Loading animation for super.img packaging**: A loading animation has been added when packaging `super.img`. | |
4. **No longer supporting ext and f2fs sparse format packaging**: Support for packing ext and f2fs sparse formats has been removed. | |
5. **Separation of SELinux configuration and context update logic**: The logic for updating SELinux configurations and contexts has been separated from the packaging logic for better readability and maintenance. | |
6. **Other optimizations**: Several feature optimizations have been made to improve performance and usability. | |
- name: Archive project | |
run: zip -r UY-Sct_${{ env.VERSION }}.zip . | |
- name: Upload Release Asset | |
id: upload_release_asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.MY_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./UY-Sct_${{ env.VERSION }}.zip | |
asset_name: UY-Sct_${{ env.VERSION }}.zip | |
asset_content_type: application/zip | |