Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cwensley/monomac
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: chequer-io/monomac
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 10 commits
  • 5 files changed
  • 3 contributors

Commits on May 2, 2023

  1. Add build script

    fix
    cooper-oh committed May 2, 2023
    Copy the full SHA
    fd3b4cc View commit details

Commits on May 3, 2023

  1. Fix Package ID

    cooper-oh committed May 3, 2023
    Copy the full SHA
    78aed55 View commit details
  2. Copy the full SHA
    df77360 View commit details

Commits on Aug 25, 2023

  1. Copy the full SHA
    2e717a9 View commit details
  2. Copy the full SHA
    50c66e8 View commit details
  3. Copy the full SHA
    000b043 View commit details
  4. Copy the full SHA
    4423ff0 View commit details
  5. Copy the full SHA
    22877c5 View commit details
  6. Copy the full SHA
    5a568ef View commit details

Commits on Aug 26, 2023

  1. Copy the full SHA
    8ec7de9 View commit details
Showing with 134 additions and 0 deletions.
  1. +71 −0 .github/workflows/codeql-analysis.yml
  2. +50 −0 .github/workflows/release.yml
  3. +6 −0 .gitignore
  4. +6 −0 README → README.md
  5. +1 −0 src/MonoMac.csproj
71 changes: 71 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: 🔍 CodeQL

on:
pull_request:
# The branches below must be a subset of the branches above
branches: [ 'master' ]
schedule:
- cron: '0 20 * * 0'
workflow_dispatch:
push:
branches: [ 'master' ]

jobs:
analyze:
name: Analyze
runs-on: [self-hosted, querypie]
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: '${{ secrets.DEV_CHEQUER_GITHUB_TOKEN }}'
submodules: true
lfs: true

- name: "Setup SDK"
uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

- name: Build
run: |
dotnet restore
dotnet build -c Release src/MonoMac.csproj
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release MonoMac
on:
workflow_dispatch:
inputs:
version:
description: 'Version'
required: true

jobs:
release:
name: Release
runs-on: [ self-hosted, Linux ]
steps:
- uses: actions/checkout@v3

- uses: rickstaa/action-create-tag@v1
with:
tag: ${{ inputs.version }}

- name: Show version
run: echo '## Release ${{ inputs.version }}' >> $GITHUB_STEP_SUMMARY

- uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'

- name: Add NuGet source (Private Nexus)
id: add-nuget-source
run: |
dotnet nuget remove source Nexus | true
dotnet nuget add source ${{ secrets.PRIVATE_NUGET_SOURCE }} \
--name Nexus \
--username ${{ secrets.PRIVATE_AGENT_NEXUS_USERNAME }} \
--password ${{ secrets.PRIVATE_AGENT_NEXUS_PASSWORD }} \
--store-password-in-clear-text | true # When host runner already have, it fails. ignore
- name: Build
run: |
dotnet restore
dotnet pack -c Release -o pack -p:Version=${{ inputs.version }} src/MonoMac.csproj
- name: Upload
run: |
dotnet nuget push pack/*.nupkg \
--source ${{ secrets.PRIVATE_NUGET_SOURCE }} \
--api-key ${{ secrets.PRIVATE_NUGET_SOURCE_API_KEY }}
- name: Remove NuGet source (Private Nexus)
if: ${{ always() && steps.add-nuget-source.conclusion == 'success' }}
run: dotnet nuget remove source Nexus | true
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -6,3 +6,9 @@ artifacts/
*.dll
src/generated_sources
.vs

# Jetbrains
.idea/

# Pack
pack/
6 changes: 6 additions & 0 deletions README → README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

https://github.com/AvaloniaUI/monomac 프로젝트가 arm64 cocoa를 지원하지 않기에 커스텀 빌드하여 사용합니다.

`src/generator.csproj`에서 AfterBuild 매직을 부립니다. M1 Mac에서 arch가 꼬이는 경우 빌드가 실패할 수 있습니다. 참고해주세요.

---

This is a fork of MonoMac but with .NET Standard support so it can run on .NET Core.

This will be maintained until such time as Xamarin.Mac runs on .NET Core as it is a much more mature runtime for macOS.
1 change: 1 addition & 0 deletions src/MonoMac.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<PackageId>CHEQUER.MonoMac</PackageId>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<BaseDefines Condition="$(BaseDefines) == ''">MONOMAC;MAC64;SDCONVERT</BaseDefines>
<Version>0.0.1</Version>