mirror of
https://github.com/kunkunsh/kunkun-ext-neohtop.git
synced 2025-04-12 09:49:45 +00:00
fixing asset_path for platform workflows
This commit is contained in:
parent
67eb5188eb
commit
a0763a4ae6
12
.github/workflows/linux-aarch64-nightly.yml
vendored
12
.github/workflows/linux-aarch64-nightly.yml
vendored
@ -122,11 +122,19 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Building AppImage for aarch64..."
|
echo "Building AppImage for aarch64..."
|
||||||
npm run tauri build -- --target aarch64-unknown-linux-gnu --bundles appimage
|
npm run tauri build -- --target aarch64-unknown-linux-gnu --bundles appimage
|
||||||
|
cd src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/appimage/
|
||||||
|
for f in *.AppImage; do
|
||||||
|
echo "AARCH64_APPIMAGE_PATH=src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/appimage/$f" >> $GITHUB_ENV
|
||||||
|
done
|
||||||
|
|
||||||
- name: Build Debian Package
|
- name: Build Debian Package
|
||||||
run: |
|
run: |
|
||||||
echo "Building Debian package for aarch64..."
|
echo "Building Debian package for aarch64..."
|
||||||
npm run tauri build -- --target aarch64-unknown-linux-gnu --bundles deb
|
npm run tauri build -- --target aarch64-unknown-linux-gnu --bundles deb
|
||||||
|
cd src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/deb/
|
||||||
|
for f in *.deb; do
|
||||||
|
echo "AARCH64_DEB_PATH=src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/deb/$f" >> $GITHUB_ENV
|
||||||
|
done
|
||||||
|
|
||||||
- name: Get version from package.json
|
- name: Get version from package.json
|
||||||
id: version
|
id: version
|
||||||
@ -139,7 +147,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.inputs.release_upload_url }}
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
asset_path: src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/appimage/*.AppImage
|
asset_path: ${{ env.AARCH64_APPIMAGE_PATH }}
|
||||||
asset_name: NeoHtop_${{ steps.version.outputs.version }}_aarch64.AppImage
|
asset_name: NeoHtop_${{ steps.version.outputs.version }}_aarch64.AppImage
|
||||||
asset_content_type: application/x-executable
|
asset_content_type: application/x-executable
|
||||||
|
|
||||||
@ -150,6 +158,6 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.inputs.release_upload_url }}
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
asset_path: src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/deb/*.deb
|
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
|
16
.github/workflows/linux-x86_64-nightly.yml
vendored
16
.github/workflows/linux-x86_64-nightly.yml
vendored
@ -52,12 +52,20 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Building AppImage for x86_64..."
|
echo "Building AppImage for x86_64..."
|
||||||
npm run tauri build -- --target x86_64-unknown-linux-gnu --bundles appimage
|
npm run tauri build -- --target x86_64-unknown-linux-gnu --bundles appimage
|
||||||
|
cd src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/
|
||||||
|
for f in *.AppImage; do
|
||||||
|
echo "APPIMAGE_PATH=src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/$f" >> $GITHUB_ENV
|
||||||
|
done
|
||||||
|
|
||||||
- name: Build Debian Package (x86_64)
|
- name: Build Debian Package (x86_64)
|
||||||
run: |
|
run: |
|
||||||
echo "Building Debian package for x86_64..."
|
echo "Building Debian package for x86_64..."
|
||||||
npm run tauri build -- --target x86_64-unknown-linux-gnu --bundles deb
|
npm run tauri build -- --target x86_64-unknown-linux-gnu --bundles deb
|
||||||
|
cd src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/
|
||||||
|
for f in *.deb; do
|
||||||
|
echo "DEB_PATH=src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/$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
|
||||||
@ -69,7 +77,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.inputs.release_upload_url }}
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
asset_path: src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage
|
asset_path: ${{ env.APPIMAGE_PATH }}
|
||||||
asset_name: NeoHtop_${{ steps.version.outputs.version }}_x86_64.AppImage
|
asset_name: NeoHtop_${{ steps.version.outputs.version }}_x86_64.AppImage
|
||||||
asset_content_type: application/x-executable
|
asset_content_type: application/x-executable
|
||||||
|
|
||||||
@ -80,6 +88,6 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.inputs.release_upload_url }}
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
asset_path: src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb
|
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
|
18
.github/workflows/macos-nightly.yml
vendored
18
.github/workflows/macos-nightly.yml
vendored
@ -52,9 +52,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Building for Intel Mac..."
|
echo "Building for Intel Mac..."
|
||||||
npm run tauri build -- --target x86_64-apple-darwin --bundles dmg
|
npm run tauri build -- --target x86_64-apple-darwin --bundles dmg
|
||||||
# Rename the Intel build
|
# Rename the Intel build and store the filename
|
||||||
cd src-tauri/target/x86_64-apple-darwin/release/bundle/dmg/
|
cd src-tauri/target/x86_64-apple-darwin/release/bundle/dmg/
|
||||||
for f in *.dmg; do mv "$f" "intel-$f"; done
|
for f in *.dmg; do
|
||||||
|
mv "$f" "intel-$f"
|
||||||
|
echo "INTEL_DMG_PATH=src-tauri/target/x86_64-apple-darwin/release/bundle/dmg/intel-$f" >> $GITHUB_ENV
|
||||||
|
done
|
||||||
env:
|
env:
|
||||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||||
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
||||||
@ -64,9 +67,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Building for aarch64..."
|
echo "Building for aarch64..."
|
||||||
npm run tauri build -- --target aarch64-apple-darwin --bundles dmg
|
npm run tauri build -- --target aarch64-apple-darwin --bundles dmg
|
||||||
# Rename the Apple Silicon build
|
# Rename the Apple Silicon build and store the filename
|
||||||
cd src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/
|
cd src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/
|
||||||
for f in *.dmg; do mv "$f" "silicon-$f"; done
|
for f in *.dmg; do
|
||||||
|
mv "$f" "silicon-$f"
|
||||||
|
echo "SILICON_DMG_PATH=src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/silicon-$f" >> $GITHUB_ENV
|
||||||
|
done
|
||||||
env:
|
env:
|
||||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||||
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
||||||
@ -83,7 +89,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.inputs.release_upload_url }}
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
asset_path: src-tauri/target/x86_64-apple-darwin/release/bundle/dmg/intel-*.dmg
|
asset_path: ${{ env.INTEL_DMG_PATH }}
|
||||||
asset_name: intel-NeoHtop_${{ steps.version.outputs.version }}_x64.dmg
|
asset_name: intel-NeoHtop_${{ steps.version.outputs.version }}_x64.dmg
|
||||||
asset_content_type: application/x-apple-diskimage
|
asset_content_type: application/x-apple-diskimage
|
||||||
|
|
||||||
@ -94,6 +100,6 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.inputs.release_upload_url }}
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
asset_path: src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/silicon-*.dmg
|
asset_path: ${{ env.SILICON_DMG_PATH }}
|
||||||
asset_name: silicon-NeoHtop_${{ steps.version.outputs.version }}_aarch64.dmg
|
asset_name: silicon-NeoHtop_${{ steps.version.outputs.version }}_aarch64.dmg
|
||||||
asset_content_type: application/x-apple-diskimage
|
asset_content_type: application/x-apple-diskimage
|
3
.github/workflows/windows-nightly.yml
vendored
3
.github/workflows/windows-nightly.yml
vendored
@ -44,6 +44,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Building Windows executable..."
|
echo "Building Windows executable..."
|
||||||
npm run tauri build
|
npm run tauri build
|
||||||
|
echo "WIN_EXE_PATH=src-tauri/target/release/NeoHtop.exe" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Get version from package.json
|
- name: Get version from package.json
|
||||||
id: version
|
id: version
|
||||||
@ -57,6 +58,6 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.inputs.release_upload_url }}
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
asset_path: src-tauri/target/release/NeoHtop.exe
|
asset_path: ${{ env.WIN_EXE_PATH }}
|
||||||
asset_name: NeoHtop_${{ steps.version.outputs.version }}_x64.exe
|
asset_name: NeoHtop_${{ steps.version.outputs.version }}_x64.exe
|
||||||
asset_content_type: application/vnd.microsoft.portable-executable
|
asset_content_type: application/vnd.microsoft.portable-executable
|
Loading…
x
Reference in New Issue
Block a user