diff --git a/.github/workflows/build-omega-mac.yml b/.github/workflows/build-omega-mac.yml new file mode 100644 index 0000000..f987110 --- /dev/null +++ b/.github/workflows/build-omega-mac.yml @@ -0,0 +1,72 @@ +name: Build Omega Mac + +on: + workflow_dispatch: + +jobs: + build: + runs-on: macos-15 + steps: + - uses: actions/checkout@v4 + + - name: Select Xcode + run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer + + - name: Resolve dependencies + working-directory: apps/omega-mac + run: swift package resolve + + - name: Build release + working-directory: apps/omega-mac + run: swift build -c release + + - name: Package .app bundle + working-directory: apps/omega-mac + run: | + mkdir -p OmegaMac.app/Contents/MacOS + mkdir -p OmegaMac.app/Contents/Resources + cp .build/release/OmegaMac OmegaMac.app/Contents/MacOS/OmegaMac + + cat > OmegaMac.app/Contents/Info.plist << 'PLIST' + + + + + CFBundleExecutable + OmegaMac + CFBundleIdentifier + com.tpmjs.omega-mac + CFBundleName + Omega + CFBundleDisplayName + Omega + CFBundleVersion + 1 + CFBundleShortVersionString + 1.0.0 + CFBundlePackageType + APPL + LSMinimumSystemVersion + 14.0 + NSHighResolutionCapable + + com.apple.security.app-sandbox + + com.apple.security.network.client + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + + + + PLIST + + codesign --force --sign - OmegaMac.app + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: OmegaMac + path: apps/omega-mac/OmegaMac.app diff --git a/apps/omega-mac/Package.swift b/apps/omega-mac/Package.swift index 0257a25..63f389b 100644 --- a/apps/omega-mac/Package.swift +++ b/apps/omega-mac/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "OmegaMac", - platforms: [.macOS(.v15)], + platforms: [.macOS(.v14)], dependencies: [ .package(url: "https://github.com/gonzalezreal/swift-markdown-ui", from: "2.4.0"), ],