diff --git a/.claude/settings.local.json b/.claude/settings.local.json new file mode 100644 index 0000000..c8bcd5d --- /dev/null +++ b/.claude/settings.local.json @@ -0,0 +1,11 @@ +{ + "permissions": { + "allow": [ + "Bash(*)", + "Bash(mkdir -p \"C:/Projects/ImageResize/.claude/tmp-icon-work\")", + "Bash(magick \"C:/Projects/ImageResize/ImageResize.ContextMenu/Assets/icon.ico[8]\" \"C:/Projects/ImageResize/.claude/tmp-icon-work/existing-256.png\")", + "Bash(rm -rf \"C:/Projects/ImageResize/.claude/tmp-icon-work\")", + "Bash(magick identify *)" + ] + } +} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b652d57..72eb508 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,7 +42,7 @@ jobs: - name: Test run: dotnet test ImageResize.Tests/ImageResize.Tests.csproj -c Release - context-menu: + context-menu-windows: name: ContextMenu (windows) runs-on: windows-latest steps: @@ -60,3 +60,35 @@ jobs: - name: Build run: dotnet build ImageResize.ContextMenu/ImageResize.ContextMenu.csproj -c Release --no-restore + + context-menu-macos: + name: ContextMenu (macos) + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '10.0.x' + + - name: Restore + run: dotnet restore ImageResize.ContextMenu/ImageResize.ContextMenu.csproj + + - name: Build + run: dotnet build ImageResize.ContextMenu/ImageResize.ContextMenu.csproj -c Release --no-restore + + - name: Install create-dmg + run: brew install create-dmg + + - name: Build universal .app + .dmg + run: ./build-macos.sh Release + + - name: Upload DMG artifact + uses: actions/upload-artifact@v4 + with: + name: ImageResize-ContextMenu-macOS + path: publish/installer/*.dmg + if-no-files-found: error diff --git a/Directory.Packages.props b/Directory.Packages.props index 5eb2d97..f632e31 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -23,6 +23,18 @@ + + + + + + + + + + + diff --git a/ImageResize.ContextMenu/AboutWindow.xaml b/ImageResize.ContextMenu/AboutWindow.axaml similarity index 55% rename from ImageResize.ContextMenu/AboutWindow.xaml rename to ImageResize.ContextMenu/AboutWindow.axaml index b004e13..6128bc9 100644 --- a/ImageResize.ContextMenu/AboutWindow.xaml +++ b/ImageResize.ContextMenu/AboutWindow.axaml @@ -1,22 +1,13 @@ - - - - - - - - - + WindowStartupLocation="CenterOwner"> + - - - github.com/YodasMyDad/ImageResize - - + Text="Minimal, cross-platform image-resize middleware for ASP.NET Core, plus a desktop companion app. Distributed under the MIT License." /> +