Skip to content

💚 fix xcodebuild command #50

💚 fix xcodebuild command

💚 fix xcodebuild command #50

Workflow file for this run

name: Build dmg On Push
on:
push:
branches:
- master
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@1.84
with:
targets: aarch64-apple-darwin,x86_64-apple-darwin
- name: Build xcframework
run: sh build-xcframework.sh
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.2'
- name: Xcode build
run: |
cd ui
xcodebuild archive \
-scheme iPortForwarder \
-archivePath build.xcarchive
- name: Make dmg
run: |
brew install graphicsmagick imagemagick
npm install --global create-dmg
# Ignore the failure since there is no code signing identity,
# the DMG is still created and fine.
create-dmg 'ui/build.xcarchive/Products/Applications/iPortForwarder.app' || true
mv iPortForwarder*.dmg iPortForwarder.dmg
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: iPortForwarder
path: ${{ github.workspace }}/iPortForwarder.dmg