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
4 changes: 2 additions & 2 deletions CONTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ The csproj enables `ServerGarbageCollection`, `ConcurrentGarbageCollection`, `Ti
Use `release.bat` from the repository root to prepare a local release commit and tag:

```powershell
.\release.bat 0.1.1
.\release.bat 0.1.4
```

The script updates `<Version>` in `src\Jesnote.csproj`, builds the Release configuration, commits the current working-tree changes, and creates tag locally. It does not push anything automatically.

Review `git status` before running it because the script commits all current changes. When the local release looks correct, push the branch and tag manually:

```powershell
git push origin main v0.1.1
git push origin main v0.1.4
```

GitHub Actions will build and publish Windows x64 and Apple Silicon macOS release assets after the tag is pushed. The workflow publishes framework-dependent packages (`--self-contained false`), so end users need the .NET 8 Runtime installed.
Expand Down
4 changes: 2 additions & 2 deletions release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ setlocal EnableExtensions

if "%~1"=="" (
echo Usage: %~nx0 VERSION
echo Example: %~nx0 0.1.1
echo Example: %~nx0 0.1.4
exit /b 1
)

Expand Down Expand Up @@ -37,7 +37,7 @@ echo Updating src\Jesnote.csproj to %VERSION%...
powershell -NoProfile -ExecutionPolicy Bypass -Command ^
"$ErrorActionPreference='Stop';" ^
"$version=$env:VERSION;" ^
"if ($version -notmatch '^\d+\.\d+\.\d+([.-][A-Za-z0-9.-]+)?$') { throw 'Version must look like 0.1.1' }" ^
"if ($version -notmatch '^\d+\.\d+\.\d+([.-][A-Za-z0-9.-]+)?$') { throw 'Version must look like 0.1.4' }" ^
"$path='src\Jesnote.csproj';" ^
"$content=[IO.File]::ReadAllText($path,[Text.Encoding]::UTF8);" ^
"if ($content -notmatch '<Version>[^<]+</Version>') { throw 'Could not find <Version> in src\Jesnote.csproj' }" ^
Expand Down
4 changes: 2 additions & 2 deletions src/Jesnote.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<AssemblyTitle>Jesnote</AssemblyTitle>
<Company>Elykdez</Company>
<Description>A desktop app for viewing large JSON files.</Description>
<Version>0.1.2</Version>
<Version>0.1.4</Version>
<Copyright>(c) 2026 Elykdez</Copyright>

<ServerGarbageCollection>true</ServerGarbageCollection>
Expand All @@ -37,4 +37,4 @@
<EmbeddedResource Include="Resources\Icons\logo-dark.ico" LogicalName="Jesnote.Icons.Logo.ico" />
</ItemGroup>

</Project>
</Project>
Loading