Skip to content

Commit

Permalink
feat: generate macos universal binary
Browse files Browse the repository at this point in the history
  • Loading branch information
hcavarsan committed Dec 12, 2023
1 parent d210954 commit 628206b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-darwin
if: matrix.platform == 'macos-latest'

- uses: dtolnay/rust-toolchain@stable
if: matrix.platform != 'macos-latest'

- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
Expand Down Expand Up @@ -74,19 +82,16 @@ jobs:
releaseDraft: true
prerelease: false

- name: Add Mac Universal Target
if: matrix.platform == 'macos-latest'
run: rustup target add aarch64-apple-darwin

- name: Tauri Build and Release (MacOS Universal Build)
- name: Build Tauri App
uses: tauri-apps/tauri-action@v0
if: matrix.platform == 'macos-latest'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: v__VERSION__
releaseName: "Kftray v__VERSION__"
args: "--target universal-apple-darwin"
releaseBody: "See the assets to download this version and install."
releaseName: 'Kftray IDE v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
updaterJsonKeepUniversal: true
args: ${{ matrix.platform == 'macos-latest' && ' --target universal-apple-darwin --verbose' || '--verbose' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_OPTIONS: --max-old-space-size=6000
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<img src="https://img.shields.io/badge/React-v18.2.0-brightgreen.svg" alt="react version">
</a>
</p>
<a href="https://www.rust-lang.org/">
<img src="https://img.shields.io/badge/Rust-v1.74.0-brightgreen.svg" alt="rust version">
</a>
</p>

<h1 align="center"> KFtray </h1>
<h3 align="center">A tray application that manages port forwarding in Kubernetes.</h3>
Expand Down

0 comments on commit 628206b

Please sign in to comment.