Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Publish single-file executable
run: dotnet publish .\\solution\\ImageUiSlicer\\ImageUiSlicer.csproj -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true /p:IncludeAllContentForSelfExtract=true /p:EnableCompressionInSingleFile=true /p:DebugType=None /p:DebugSymbols=false /p:Version=${{ steps.tag.outputs.version }} /p:AssemblyVersion=${{ steps.tag.outputs.version }}.0 /p:FileVersion=${{ steps.tag.outputs.version }}.0 /p:InformationalVersion=${{ steps.tag.outputs.version }}

- name: Prepare verified release assets and notes
- name: Prepare release asset and notes
shell: pwsh
env:
RELEASE_TAG: ${{ steps.tag.outputs.tag }}
Expand All @@ -60,8 +60,6 @@ jobs:
}

Copy-Item -LiteralPath $publishedApp -Destination $releaseApp -Force
$hash = (Get-FileHash -LiteralPath $releaseApp -Algorithm SHA256).Hash.ToLowerInvariant()
"$hash PhotoCutter.exe" | Set-Content -LiteralPath '.\\release-assets\\PhotoCutter.exe.sha256' -Encoding ascii

$releaseNotes = ".\\docs\\releases\\$env:RELEASE_TAG.md"
if (-not (Test-Path -LiteralPath $releaseNotes)) {
Expand All @@ -80,4 +78,3 @@ jobs:
make_latest: true
files: |
release-assets/PhotoCutter.exe

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Purge stale checksum asset on release updates

When this workflow is rerun for a tag whose GitHub Release was already created by the previous workflow, omitting PhotoCutter.exe.sha256 here only stops uploading it again; it does not remove the existing asset. The action docs describe existing releases as being “updated with the release assets” (https://github.com/softprops/action-gh-release#%EF%B8%8F-uploading-release-assets), and the action only deletes/reuploads assets whose names match the files being uploaded, so the old checksum will still appear in Assets and the release will not have the intended single clear download unless a deletion step or manual cleanup is added.

Useful? React with 👍 / 👎.

release-assets/PhotoCutter.exe.sha256
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The labels are deliberately plain English. **Draw Around** is the freehand tool,
- Input: PNG, JPG/JPEG, BMP, GIF, and WEBP.
- Output: transparent PNG files at the intended source-image geometry.

Download the latest release, place `PhotoCutter.exe` wherever you prefer, and open it. The app is currently unsigned, so Windows SmartScreen may ask you to confirm the first launch. Use the SHA-256 file supplied with each release if you want to verify the download.
Download the latest release, place `PhotoCutter.exe` wherever you prefer, and open it. The app is currently unsigned, so Windows SmartScreen may ask you to confirm the first launch.

## Privacy

Expand Down
2 changes: 1 addition & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The format is based on Keep a Changelog and this project follows Semantic Versio
- Added a product-intent behaviour contract and structural regression gates so internal reorganisation cannot silently change exact-size shapes, source-pixel geometry, commit, preview, or export behaviour

### Changed
- Release pipeline now tests the complete solution before publishing `PhotoCutter.exe` and its SHA-256 checksum
- Release pipeline now tests the complete solution before publishing the single `PhotoCutter.exe` download
- Repository structure cleaned for a public app-facing layout
- Cutout geometry validation, fractional bounds, export size limits, and Windows filename handling are hardened
- Malformed project geometry, names, and duplicate IDs are repaired during load
Expand Down
2 changes: 1 addition & 1 deletion docs/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This repository publishes Photo Cutter through GitHub Releases.
- Run every regression check
- Publish a single-file Windows executable
- Create/update a GitHub Release
- Upload `PhotoCutter.exe` and its SHA-256 checksum
- Upload one clear download: `PhotoCutter.exe`

The release workflow is tag-only so the published executable always comes from the tagged commit.

Expand Down
31 changes: 8 additions & 23 deletions docs/releases/v1.2.0.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
# Photo Cutter v1.2.0

Photo Cutter v1.2.0 is a major usability, precision, and reliability update. It introduces a cleaner compact editor and stronger high-resolution cutting while preserving the familiar cut-out and workspace workflow.

## Highlights

- Cleaner compact header, side panels, resizable layout, and first-use guidance.
- Plain-English **Draw Around** and **Click Around** tools.
- Exact-size reusable shapes that can be named, placed, moved, committed, renamed, and deleted.
- Rename and reorder committed cut-outs before export.
- Five-level 5x–10x precision magnifier with the cutting line visible inside it.
- Native-resolution Fit behaviour, smooth enlarged previews, and switchable exact-pixel viewing.
- Remembered cutting-line colours and consistent dark and light appearances.
- High-resolution geometry, edge-refinement, preview, gallery, workspace, and export fixes.
- Reorganized editor components plus expanded automated regression coverage.

## Download

Download `PhotoCutter.exe` from the Assets section below. It is a portable, self-contained Windows 10/11 x64 app, so a separate .NET installation is not required.

The executable is currently unsigned, which means Windows SmartScreen may ask you to confirm the first launch. `PhotoCutter.exe.sha256` is included so you can verify the downloaded file.

All image processing remains on your computer. No account or upload is required.
- Cleaner, more compact header and side panels leave more room for large photos.
- Plain-English **Draw Around** and **Click Around** cutting tools.
- Reusable exact-size shapes can now be named, placed, moved, committed, renamed, and deleted.
- Committed cut-outs can now be renamed and reordered before export.
- Improved 5x–10x precision magnifier with the cutting line visible inside it.
- Native-resolution Fit viewing, smooth enlarged previews, and switchable exact-pixel viewing.
- Remembered cutting-line colours plus consistent dark and light appearances.
- High-resolution cutting, edge refinement, previews, gallery, workspace saving, and exports are more reliable.
Loading