mirror of
https://github.com/kunkunsh/kunkun-ext-neohtop.git
synced 2025-04-20 05:29:14 +00:00
commit
eaa9eba5f3
80
.github/workflows/linux-nightly.yml
vendored
Normal file
80
.github/workflows/linux-nightly.yml
vendored
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
name: Linux (x86_64) Nightly Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch: # Allows manual triggering
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Linux Packages
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 'lts/*'
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Install Rust
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
|
- name: Install Linux Dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y \
|
||||||
|
build-essential \
|
||||||
|
pkg-config \
|
||||||
|
libgtk-3-dev \
|
||||||
|
libayatana-appindicator3-dev \
|
||||||
|
librsvg2-dev \
|
||||||
|
libglib2.0-dev \
|
||||||
|
libjavascriptcoregtk-4.0-dev \
|
||||||
|
libsoup-3.0-dev \
|
||||||
|
libwebkit2gtk-4.1-dev
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
|
||||||
|
- name: Build Frontend
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Build AppImage (x86_64)
|
||||||
|
run: |
|
||||||
|
echo "Building AppImage for x86_64..."
|
||||||
|
npm run tauri build -- --target x86_64-unknown-linux-gnu --bundles appimage
|
||||||
|
|
||||||
|
- name: Build Debian Package (x86_64)
|
||||||
|
run: |
|
||||||
|
echo "Building Debian package for x86_64..."
|
||||||
|
npm run tauri build -- --target x86_64-unknown-linux-gnu --bundles deb
|
||||||
|
|
||||||
|
- name: Upload AppImage
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: linux-appimage
|
||||||
|
path: src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage
|
||||||
|
|
||||||
|
- name: Upload Debian Package
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: linux-deb
|
||||||
|
path: src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
if: github.event_name == 'schedule' # Only create release for scheduled builds
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
name: Linux Nightly Build ${{ github.sha }}
|
||||||
|
tag_name: linux-nightly-${{ github.sha }}
|
||||||
|
files: |
|
||||||
|
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage
|
||||||
|
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb
|
||||||
|
prerelease: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
80
.github/workflows/macos-nightly.yml
vendored
Normal file
80
.github/workflows/macos-nightly.yml
vendored
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
name: MacOS (x86_64/arm) Nightly Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch: # Allows manual triggering
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build MacOS Apps
|
||||||
|
runs-on: macos-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 'lts/*'
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Install Rust
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
rustup target add x86_64-apple-darwin
|
||||||
|
rustup target add aarch64-apple-darwin
|
||||||
|
npm install
|
||||||
|
|
||||||
|
- name: Set up keychain
|
||||||
|
run: |
|
||||||
|
security create-keychain -p "" build.keychain
|
||||||
|
security default-keychain -s build.keychain
|
||||||
|
security unlock-keychain -p "" build.keychain
|
||||||
|
echo "$MACOS_CERTIFICATE" | base64 --decode > /tmp/certificate.p12
|
||||||
|
security import /tmp/certificate.p12 -k build.keychain -P "$MACOS_CERTIFICATE_PASSWORD" -T /usr/bin/codesign
|
||||||
|
security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain
|
||||||
|
env:
|
||||||
|
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
|
||||||
|
MACOS_CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build Frontend
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Build for Intel Mac
|
||||||
|
run: |
|
||||||
|
echo "Building for x86_64..."
|
||||||
|
npm run tauri build -- --target x86_64-apple-darwin --bundles dmg
|
||||||
|
|
||||||
|
- name: Build for Apple Silicon
|
||||||
|
run: |
|
||||||
|
echo "Building for aarch64..."
|
||||||
|
npm run tauri build -- --target aarch64-apple-darwin --bundles dmg
|
||||||
|
|
||||||
|
- name: Upload Intel Build
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: macos-intel-build
|
||||||
|
path: src-tauri/target/x86_64-apple-darwin/release/bundle/dmg/*.dmg
|
||||||
|
|
||||||
|
- name: Upload Apple Silicon Build
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: macos-apple-silicon-build
|
||||||
|
path: src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/*.dmg
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
if: github.event_name == 'schedule' # Only create release for scheduled builds
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
name: Nightly Build ${{ github.sha }}
|
||||||
|
tag_name: nightly-${{ github.sha }}
|
||||||
|
files: |
|
||||||
|
src-tauri/target/x86_64-apple-darwin/release/bundle/dmg/*.dmg
|
||||||
|
src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/*.dmg
|
||||||
|
prerelease: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
59
.github/workflows/windows-nightly.yml
vendored
Normal file
59
.github/workflows/windows-nightly.yml
vendored
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
name: Windows (x86_64) Nightly Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch: # Allows manual triggering
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Windows Executable
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 'lts/*'
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Install Rust
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
|
- name: Install WebView2
|
||||||
|
run: |
|
||||||
|
$WebView2InstallPath = "$env:TEMP\MicrosoftEdgeWebview2Setup.exe"
|
||||||
|
Invoke-WebRequest "https://go.microsoft.com/fwlink/p/?LinkId=2124703" -OutFile $WebView2InstallPath
|
||||||
|
Start-Process -FilePath $WebView2InstallPath -Args "/silent /install" -Wait
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
|
||||||
|
- name: Build Frontend
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Build Windows Executable
|
||||||
|
run: |
|
||||||
|
echo "Building Windows executable..."
|
||||||
|
npm run tauri build
|
||||||
|
|
||||||
|
- name: Upload Executable
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: windows-exe
|
||||||
|
path: src-tauri/target/release/*.exe
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
if: github.event_name == 'schedule' # Only create release for scheduled builds
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
name: Windows Nightly Build ${{ github.sha }}
|
||||||
|
tag_name: windows-nightly-${{ github.sha }}
|
||||||
|
files: src-tauri/target/release/*.exe
|
||||||
|
prerelease: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user