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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "**.md"
|
- "**.md"
|
||||||
- "**.spec.js"
|
- "**.spec.js"
|
||||||
@@ -25,6 +27,11 @@ on:
|
|||||||
- ".gitignore"
|
- ".gitignore"
|
||||||
- ".github/**"
|
- ".github/**"
|
||||||
- "!.github/workflows/build.yml"
|
- "!.github/workflows/build.yml"
|
||||||
|
release:
|
||||||
|
types: [published, created]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -79,3 +86,13 @@ jobs:
|
|||||||
name: release_for_${{ matrix.package }}
|
name: release_for_${{ matrix.package }}
|
||||||
path: release/**/*.${{ matrix.package }}
|
path: release/**/*.${{ matrix.package }}
|
||||||
retention-days: 5
|
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"
|
- "libuuid1"
|
||||||
- "libsecret-1-0"
|
- "libsecret-1-0"
|
||||||
- "apm"
|
- "apm"
|
||||||
|
- "xdg-utils"
|
||||||
|
- "shared-mime-info"
|
||||||
rpm:
|
rpm:
|
||||||
afterInstall: "scripts/postinst.sh"
|
afterInstall: "scripts/postinst.sh"
|
||||||
afterRemove: "scripts/postrm.sh"
|
afterRemove: "scripts/postrm.sh"
|
||||||
@@ -55,3 +57,5 @@ rpm:
|
|||||||
- "libuuid"
|
- "libuuid"
|
||||||
- "libsecret"
|
- "libsecret"
|
||||||
- "amber-package-manager"
|
- "amber-package-manager"
|
||||||
|
- "xdg-utils"
|
||||||
|
- "shared-mime-info"
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
#!/usr/bin/bash
|
#!/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
|
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