mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 01:10:16 +08:00
refactor: 更新构建配置,添加对发布事件的支持;更新依赖项以确保兼容性
This commit is contained in:
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@@ -3,6 +3,8 @@ name: Build
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
tags:
|
||||
- "*"
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- "**.spec.js"
|
||||
@@ -25,6 +27,11 @@ on:
|
||||
- ".gitignore"
|
||||
- ".github/**"
|
||||
- "!.github/workflows/build.yml"
|
||||
release:
|
||||
types: [published, created]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -79,3 +86,13 @@ jobs:
|
||||
name: release_for_${{ matrix.package }}
|
||||
path: release/**/*.${{ matrix.package }}
|
||||
retention-days: 5
|
||||
|
||||
- name: Upload to GitHub Release
|
||||
if: github.event_name == 'release' || startsWith(github.ref, 'refs/tags/')
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: ${{ github.ref_name }}
|
||||
files: |
|
||||
release/**/*.deb
|
||||
release/**/*.rpm
|
||||
generate_release_notes: true
|
||||
@@ -41,6 +41,8 @@ deb:
|
||||
- "libuuid1"
|
||||
- "libsecret-1-0"
|
||||
- "apm"
|
||||
- "xdg-utils"
|
||||
- "shared-mime-info"
|
||||
rpm:
|
||||
afterInstall: "scripts/postinst.sh"
|
||||
afterRemove: "scripts/postrm.sh"
|
||||
@@ -55,3 +57,5 @@ rpm:
|
||||
- "libuuid"
|
||||
- "libsecret"
|
||||
- "amber-package-manager"
|
||||
- "xdg-utils"
|
||||
- "shared-mime-info"
|
||||
@@ -1,3 +1,5 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
cp -fv /opt/apm-app-store/extras/store.spark-app.amber-pm-store.policy /usr/share/polkit-1/actions/store.spark-app.amber-pm-store.policy
|
||||
xdg-mime default apm-app-store.desktop x-scheme-handler/apmstore
|
||||
update-mime-database /usr/share/mime || true
|
||||
Reference in New Issue
Block a user