feat: support rpm package

This commit is contained in:
MystiPanda 2024-06-04 10:16:25 +08:00
parent 0a6fe382ac
commit 13babbf330
No known key found for this signature in database
4 changed files with 19 additions and 5 deletions

View File

@ -4,5 +4,5 @@ sed -i "s/#openssl/openssl={version=\"0.10\",features=[\"vendored\"]}/g" src-tau
if [ "$INPUT_TARGET" = "x86_64-unknown-linux-gnu" ]; then if [ "$INPUT_TARGET" = "x86_64-unknown-linux-gnu" ]; then
cargo tauri build --target $INPUT_TARGET cargo tauri build --target $INPUT_TARGET
else else
cargo tauri build --target $INPUT_TARGET -b deb cargo tauri build --target $INPUT_TARGET -b deb,rpm
fi fi

View File

@ -137,7 +137,9 @@ jobs:
body: "More new features are now supported." body: "More new features are now supported."
prerelease: true prerelease: true
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
files: src-tauri/target/${{ matrix.target }}/release/bundle/deb/*.deb files: |
src-tauri/target/${{ matrix.target }}/release/bundle/deb/*.deb
src-tauri/target/${{ matrix.target }}/release/bundle/rpm/*.rpm
alpha-for-fixed-webview2: alpha-for-fixed-webview2:
strategy: strategy:

View File

@ -129,7 +129,9 @@ jobs:
name: "Clash Verge Rev v${{env.VERSION}}" name: "Clash Verge Rev v${{env.VERSION}}"
body: "More new features are now supported." body: "More new features are now supported."
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
files: src-tauri/target/${{ matrix.target }}/release/bundle/deb/*.deb files: |
src-tauri/target/${{ matrix.target }}/release/bundle/deb/*.deb
src-tauri/target/${{ matrix.target }}/release/bundle/rpm/*.rpm
release-for-fixed-webview2: release-for-fixed-webview2:
strategy: strategy:

View File

@ -6,10 +6,20 @@
}, },
"bundle": { "bundle": {
"identifier": "io.github.clash-verge-rev.clash-verge-rev", "identifier": "io.github.clash-verge-rev.clash-verge-rev",
"targets": ["deb", "appimage", "updater"], "targets": ["deb", "rpm", "appimage", "updater"],
"deb": { "deb": {
"depends": ["openssl"], "depends": ["openssl"],
"desktopTemplate": "./template/clash-verge.desktop" "desktopTemplate": "./template/clash-verge.desktop",
"provides": ["clash-verge", "clash-meta"],
"conflicts": ["clash-verge", "clash-meta"],
"replaces": ["clash-verge", "clash-meta"]
},
"rpm": {
"depends": ["openssl"],
"desktopTemplate": "./template/clash-verge.desktop",
"provides": ["clash-verge", "clash-meta"],
"conflicts": ["clash-verge", "clash-meta"],
"obsoletes": ["clash-verge", "clash-meta"]
} }
} }
} }