diff --git a/.github/build-for-linux/build.sh b/.github/build-for-linux/build.sh index 101ba27..0a7a4bc 100644 --- a/.github/build-for-linux/build.sh +++ b/.github/build-for-linux/build.sh @@ -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 cargo tauri build --target $INPUT_TARGET else - cargo tauri build --target $INPUT_TARGET -b deb + cargo tauri build --target $INPUT_TARGET -b deb,rpm fi diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index ad19f61..846d845 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -137,7 +137,9 @@ jobs: body: "More new features are now supported." prerelease: true 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: strategy: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0493daf..00f3e5c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -129,7 +129,9 @@ jobs: name: "Clash Verge Rev v${{env.VERSION}}" body: "More new features are now supported." 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: strategy: diff --git a/src-tauri/tauri.linux.conf.json b/src-tauri/tauri.linux.conf.json index ec1e7b5..6300207 100644 --- a/src-tauri/tauri.linux.conf.json +++ b/src-tauri/tauri.linux.conf.json @@ -6,10 +6,20 @@ }, "bundle": { "identifier": "io.github.clash-verge-rev.clash-verge-rev", - "targets": ["deb", "appimage", "updater"], + "targets": ["deb", "rpm", "appimage", "updater"], "deb": { "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"] } } }