本地化:统一使用 .localized 进行字符串本地化并更新本地化资源。 #27
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 AppPorts | |
| on: | |
| push: | |
| branches: [ "main", "develop" ] | |
| pull_request: | |
| branches: [ "main", "develop" ] | |
| jobs: | |
| build: | |
| name: Build macOS App | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Xcode version | |
| run: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer | |
| - name: Build App | |
| run: | | |
| # Build the app using xcodebuild | |
| # We use -derivedDataPath to easily locate the output | |
| xcodebuild clean build \ | |
| -scheme "AppPorts" \ | |
| -configuration Release \ | |
| -destination 'platform=macOS' \ | |
| -derivedDataPath build \ | |
| CODE_SIGN_IDENTITY="" \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| CODE_SIGN_ENTITLEMENTS="" \ | |
| CODE_SIGNING_ALLOWED=NO | |
| - name: Zip Application | |
| run: | | |
| cd build/Build/Products/Release | |
| # Zip the .app bundle to preserve permissions and symlinks | |
| zip -r ../../../../AppPorts.zip AppPorts.app | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: AppPorts-Unsigned | |
| path: AppPorts.zip | |
| retention-days: 5 |