1
1
mirror of https://github.com/neosubhamoy/pytubepp-helper.git synced 2026-02-04 11:22:22 +05:30

(ci/cd): fixed macOS cpu arch target for external binaries

This commit is contained in:
2024-12-17 21:14:28 +05:30
Verified
parent 270d3a38db
commit 17663aeb73
2 changed files with 7 additions and 2 deletions

View File

@@ -14,12 +14,16 @@ jobs:
include: include:
- platform: 'macos-latest' - platform: 'macos-latest'
args: '--target aarch64-apple-darwin' args: '--target aarch64-apple-darwin'
arch: 'aarch64-apple-darwin'
- platform: 'macos-latest' - platform: 'macos-latest'
args: '--target x86_64-apple-darwin' args: '--target x86_64-apple-darwin'
arch: 'x86_64-apple-darwin'
- platform: 'ubuntu-22.04' - platform: 'ubuntu-22.04'
args: '' args: ''
arch: ''
- platform: 'windows-latest' - platform: 'windows-latest'
args: '' args: ''
arch: ''
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:
@@ -55,6 +59,7 @@ jobs:
uses: tauri-apps/tauri-action@v0 uses: tauri-apps/tauri-action@v0
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TARGET_ARCH: ${{ matrix.arch }}
with: with:
tagName: ${{ github.ref_name }} tagName: ${{ github.ref_name }}
releaseName: ${{ github.event.repository.name }}-${{ github.ref_name }} releaseName: ${{ github.event.repository.name }}-${{ github.ref_name }}

View File

@@ -1,7 +1,7 @@
{ {
"build": { "build": {
"beforeDevCommand": "cargo build --manifest-path=./src-tauri/msghost/Cargo.toml && cargo build --manifest-path=./src-tauri/autostart/Cargo.toml && npm run dev", "beforeBuildCommand": "[[ -n \"$TARGET_ARCH\" ]] && ARCH=\"$TARGET_ARCH\" || ARCH=\"$(uname -m | sed 's/^arm64$/aarch64/')-apple-darwin\" && cargo build --release --target=$ARCH --manifest-path=./src-tauri/msghost/Cargo.toml && cargo build --release --target=$ARCH --manifest-path=./src-tauri/autostart/Cargo.toml && node copyMacFiles.js && npm run build",
"beforeBuildCommand": "cargo build --release --manifest-path=./src-tauri/msghost/Cargo.toml && cargo build --release --manifest-path=./src-tauri/autostart/Cargo.toml && node copyMacFiles.js && npm run build", "beforeDevCommand": "[[ -n \"$TARGET_ARCH\" ]] && ARCH=\"$TARGET_ARCH\" || ARCH=\"$(uname -m | sed 's/^arm64$/aarch64/')-apple-darwin\" && cargo build --target=$ARCH --manifest-path=./src-tauri/msghost/Cargo.toml && cargo build --target=$ARCH --manifest-path=./src-tauri/autostart/Cargo.toml && npm run dev",
"devPath": "http://localhost:1422", "devPath": "http://localhost:1422",
"distDir": "../dist" "distDir": "../dist"
}, },