🐛 fix config file read on startup #58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 \ | |
| -configuration Release \ | |
| ONLY_ACTIVE_ARCH=NO | |
| - 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 |