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
166 changes: 162 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,168 @@
name: VNAR Release Bootstrap
name: Build Beta Release

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

permissions:
contents: read

concurrency:
group: vnar-release-${{ github.ref }}
cancel-in-progress: false

env:
RELEASE_TAG: v1.0.0-beta.1.1

jobs:
waiting:
runs-on: ubuntu-latest
build-release:
runs-on: windows-latest

steps:
- run: echo "Bootstrap files are being prepared."
- name: Checkout
uses: actions/checkout@v4

- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x

- name: Restore
run: dotnet restore .\LocaleGameHub\LocaleGameHub.csproj

- name: Publish self-contained build
shell: pwsh
run: |
dotnet publish .\LocaleGameHub\LocaleGameHub.csproj `
-c Release `
-r win-x64 `
--self-contained true `
-p:PublishSingleFile=true `
-p:IncludeNativeLibrariesForSelfExtract=true `
-o .\dist\portable

if ($LASTEXITCODE -ne 0) { throw "dotnet publish failed" }

Copy-Item .\LICENSE .\dist\portable\LICENSE.txt
Copy-Item .\THIRD_PARTY_NOTICES.md .\dist\portable\THIRD_PARTY_NOTICES.md
Copy-Item .\README.md .\dist\portable\README.md
Copy-Item .\README.es.md .\dist\portable\README.es.md

# Debug symbols are not required by end users (Skia's PDB is large).
Get-ChildItem .\dist\portable -Recurse -Filter *.pdb | Remove-Item

- name: Include dependency licenses
shell: pwsh
run: |
$noticeRoot = New-Item .\dist\portable\licenses -ItemType Directory -Force
$dotnetNotices = New-Item (Join-Path $noticeRoot.FullName 'dotnet') -ItemType Directory -Force
Get-ChildItem $env:DOTNET_ROOT -File |
Where-Object { $_.Name -match '(?i)license|notice' } |
Copy-Item -Destination $dotnetNotices.FullName

$assets = Get-Content .\LocaleGameHub\obj\project.assets.json -Raw | ConvertFrom-Json
foreach ($packageRoot in $assets.packageFolders.PSObject.Properties.Name) {
foreach ($package in (Get-ChildItem $packageRoot -Directory | Where-Object { $_.Name -like 'skiasharp*' -or $_.Name -like 'microsoft.netcore.app.runtime.*' -or $_.Name -like 'microsoft.windowsdesktop.app.runtime.*' })) {
foreach ($notice in (Get-ChildItem $package.FullName -Recurse -File | Where-Object { $_.Name -match '(?i)license|notice' -and $_.Extension -in '.txt', '.md', '.html', '' })) {
$relative = [IO.Path]::GetRelativePath($packageRoot, $notice.FullName)
$target = Join-Path $noticeRoot.FullName $relative
New-Item (Split-Path $target -Parent) -ItemType Directory -Force | Out-Null
Copy-Item $notice.FullName $target
}
}
}
if (!(Get-ChildItem $dotnetNotices.FullName -File)) { throw 'Missing .NET license notices' }
Get-ChildItem $noticeRoot.FullName -Recurse -File | Select-Object FullName

- name: Create portable ZIP
shell: pwsh
run: |
Compress-Archive -Path .\dist\portable\* -DestinationPath .\dist\VNAR-Portable-win-x64.zip -Force

- name: Install Inno Setup
shell: pwsh
run: choco install innosetup --no-progress -y

- name: Build installer
shell: pwsh
run: |
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" .\installer\VNAR.iss
if ($LASTEXITCODE -ne 0) { throw "Installer compilation failed" }

- name: Verify packages and create checksums
shell: pwsh
run: |
foreach ($file in @('.\dist\portable\VNAR.exe', '.\dist\portable\Resources\VNARShortcut.ico', '.\dist\VNAR-Setup.exe', '.\dist\VNAR-Portable-win-x64.zip')) {
if (!(Test-Path $file) -or (Get-Item $file).Length -eq 0) { throw "Missing or empty package file: $file" }
}
Get-FileHash .\dist\VNAR-Setup.exe, .\dist\VNAR-Portable-win-x64.zip -Algorithm SHA256 |
ForEach-Object { "$($_.Hash.ToLower()) $(Split-Path $_.Path -Leaf)" } |
Set-Content .\dist\SHA256SUMS.txt -Encoding ascii

- name: Upload validated packages
uses: actions/upload-artifact@v4
with:
name: vnar-windows-packages
path: |
dist/VNAR-Setup.exe
dist/VNAR-Portable-win-x64.zip
dist/SHA256SUMS.txt
if-no-files-found: error

publish-release:
needs: build-release
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Download validated packages
uses: actions/download-artifact@v4
with:
name: vnar-windows-packages
path: dist

- name: Publish GitHub prerelease
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
$tag = "${{ env.RELEASE_TAG }}"
$notes = @"
## VNAR Beta 1.1

First public GitHub beta package.

### Downloads
- **VNAR-Setup.exe** — self-contained Windows installer.
- **VNAR-Portable-win-x64.zip** — self-contained portable build.
- **SHA256SUMS.txt** — package checksums.

Both packages store settings and artwork in `%LOCALAPPDATA%\VNAR`.
The executables are unsigned; Windows may display a SmartScreen warning.

See the repository README for setup instructions, features, and third-party notices.
"@

gh release view $tag 2>$null
if ($LASTEXITCODE -ne 0) {
gh release create $tag `
.\dist\VNAR-Setup.exe `
.\dist\VNAR-Portable-win-x64.zip `
.\dist\SHA256SUMS.txt `
--title "VNAR Beta 1.1" `
--notes $notes `
--prerelease --draft `
--target "${{ github.sha }}"
if ($LASTEXITCODE -ne 0) { throw "Release upload failed" }
gh release edit $tag --draft=false
if ($LASTEXITCODE -ne 0) { throw "Release publication failed" }
} else {
Write-Host "Release $tag already exists; keeping its original packages. Bump RELEASE_TAG for the next release."
}
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Changelog

## 1.0.0-beta.1.1

First public GitHub beta package.

Highlights:

- Locale Emulator profiles and first-run setup.
- Game library import, drag & drop, scanning, search, pagination, favorites, and developer grouping.
- English and Spanish UI.
- VNDB metadata and cover integration.
- Non-destructive cover editor with HQ export and multiple background modes.
- WebP normalization through SkiaSharp.
- Smart desktop shortcuts with selectable executable icons.
- Themed context menus and scrollbars.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 JAVCIF

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading