fix: 设置默认com有问题 #199
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: AutoPkg | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: write # 确保具有写权限 | |
env: | |
TAG_NAME: "auto" | |
SOFTWARE_NAME: "lfy" | |
jobs: | |
build-lfy: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prepare | |
run: | | |
sudo apt-get update | |
sudo apt-get install python-gi-dev cmake make meson gobject-introspection libadwaita-1-dev gettext desktop-file-utils libxml2-utils appstream-util flatpak-builder rpm python3-build | |
- name: Build deb package | |
run: | | |
make BUILD_TYPE=gtk test-deb | |
make BUILD_TYPE=qt test-deb | |
- name: Build flatpak package | |
run: | | |
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo | |
sudo flatpak install flathub org.gnome.Platform//46 org.gnome.Sdk//46 -y | |
make BUILD_TYPE=gtk test-flatpak | |
- name: Build rpm package | |
run: | | |
make BUILD_TYPE=gtk test-rpm | |
make BUILD_TYPE=qt test-rpm | |
- name: Build whl package | |
run: | | |
make BUILD_TYPE=qt test-pip | |
- name: Build archlinux package | |
uses: ldrfy/arch-makepkg-action@master | |
with: | |
scripts: | | |
make test-aur && make BUILD_TYPE=gtk test-aur | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ env.TAG_NAME }} | |
prerelease: true | |
draft: false | |
body_path: data/release.md | |
files: | | |
dist/* |