mirror of
https://github.com/kunkunsh/kunkun-ext-neohtop.git
synced 2025-04-11 17:29:45 +00:00
Merge pull request #59 from burhancodes/main
This commit is contained in:
commit
32bea15eb4
22
.github/workflows/linux-aarch64-nightly.yml
vendored
22
.github/workflows/linux-aarch64-nightly.yml
vendored
@ -135,6 +135,15 @@ jobs:
|
|||||||
for f in *.deb; do
|
for f in *.deb; do
|
||||||
echo "AARCH64_DEB_PATH=src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/deb/$f" >> $GITHUB_ENV
|
echo "AARCH64_DEB_PATH=src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/deb/$f" >> $GITHUB_ENV
|
||||||
done
|
done
|
||||||
|
|
||||||
|
- name: Build RPM Package
|
||||||
|
run: |
|
||||||
|
echo "Building RPM package for aarch64..."
|
||||||
|
npm run tauri build -- --target aarch64-unknown-linux-gnu --bundles rpm
|
||||||
|
cd src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/rpm/
|
||||||
|
for f in *.rpm; do
|
||||||
|
echo "AARCH64_RPM_PATH=src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/rpm/$f" >> $GITHUB_ENV
|
||||||
|
done
|
||||||
|
|
||||||
- name: Get version from package.json
|
- name: Get version from package.json
|
||||||
id: version
|
id: version
|
||||||
@ -160,4 +169,15 @@ jobs:
|
|||||||
upload_url: ${{ github.event.inputs.release_upload_url }}
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
asset_path: ${{ env.AARCH64_DEB_PATH }}
|
asset_path: ${{ env.AARCH64_DEB_PATH }}
|
||||||
asset_name: NeoHtop_${{ steps.version.outputs.version }}_aarch64.deb
|
asset_name: NeoHtop_${{ steps.version.outputs.version }}_aarch64.deb
|
||||||
asset_content_type: application/vnd.debian.binary-package
|
asset_content_type: application/vnd.debian.binary-package
|
||||||
|
|
||||||
|
- name: Upload RPM Package to Release
|
||||||
|
if: github.event.inputs.release_upload_url != ''
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
|
asset_path: ${{ env.AARCH64_RPM_PATH }}
|
||||||
|
asset_name: NeoHtop_${{ steps.version.outputs.version }}_aarch64.rpm
|
||||||
|
asset_content_type: application/x-rpm
|
22
.github/workflows/linux-x86_64-nightly.yml
vendored
22
.github/workflows/linux-x86_64-nightly.yml
vendored
@ -66,6 +66,15 @@ jobs:
|
|||||||
echo "DEB_PATH=src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/$f" >> $GITHUB_ENV
|
echo "DEB_PATH=src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/$f" >> $GITHUB_ENV
|
||||||
done
|
done
|
||||||
|
|
||||||
|
- name: Build RPM Package (x86_64)
|
||||||
|
run: |
|
||||||
|
echo "Building RPM package for x86_64..."
|
||||||
|
npm run tauri build -- --target x86_64-unknown-linux-gnu --bundles rpm
|
||||||
|
cd src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/rpm/
|
||||||
|
for f in *.rpm; do
|
||||||
|
echo "RPM_PATH=src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/rpm/$f" >> $GITHUB_ENV
|
||||||
|
done
|
||||||
|
|
||||||
- name: Get version from package.json
|
- name: Get version from package.json
|
||||||
id: version
|
id: version
|
||||||
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
|
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
|
||||||
@ -90,4 +99,15 @@ jobs:
|
|||||||
upload_url: ${{ github.event.inputs.release_upload_url }}
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
asset_path: ${{ env.DEB_PATH }}
|
asset_path: ${{ env.DEB_PATH }}
|
||||||
asset_name: NeoHtop_${{ steps.version.outputs.version }}_x86_64.deb
|
asset_name: NeoHtop_${{ steps.version.outputs.version }}_x86_64.deb
|
||||||
asset_content_type: application/vnd.debian.binary-package
|
asset_content_type: application/vnd.debian.binary-package
|
||||||
|
|
||||||
|
- name: Upload RPM Package to Release
|
||||||
|
if: github.event.inputs.release_upload_url != ''
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
|
asset_path: ${{ env.RPM_PATH }}
|
||||||
|
asset_name: NeoHtop_${{ steps.version.outputs.version }}_x86_64.rpm
|
||||||
|
asset_content_type: application/x-rpm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user