diff --git a/README.md b/README.md index eaccd10..20ce1e4 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # imajViewer [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) -[![Build](https://github.com/alhan/imajviewer/actions/workflows/build.yml/badge.svg)](https://github.com/alhan/imajviewer/actions/workflows/build.yml) -[![Release](https://img.shields.io/github/v/release/alhan/imajviewer)](https://github.com/alhan/imajviewer/releases/latest) + +[Releases](https://git.softmediadesign.com/git_alhan/imajviewer/releases) Ultra-lightweight image viewer written in Flutter — Linux & Windows. @@ -41,7 +41,7 @@ Ultra-lightweight image viewer written in Flutter — Linux & Windows. ### Linux (.deb, recommended) No Flutter SDK needed — grab the latest `.deb` from the -[Releases page](https://github.com/alhan/imajviewer/releases/latest): +[Releases page](https://git.softmediadesign.com/git_alhan/imajviewer/releases): ```bash sudo dpkg -i imajviewer_*_amd64.deb @@ -53,7 +53,7 @@ After install, open an image with `xdg-open ` or double-click it. ### Windows (installer) Download `imajviewer_setup_*.exe` from the -[Releases page](https://github.com/alhan/imajviewer/releases/latest) and run it. +[Releases page](https://git.softmediadesign.com/git_alhan/imajviewer/releases) and run it. The installer: - Installs to Program Files @@ -100,11 +100,14 @@ folder including `imajviewer.exe` and all DLLs). | Ctrl + Q | Close window | | Ctrl + Shift + Q | Close all windows | -## CI / Releases +## Releases -GitHub Actions builds Linux `.deb` and Windows installer on every push to -`main`. Pushing a `v*` tag creates a GitHub Release with both installers as -assets. +Installers are published on the +[Gitea Releases page](https://git.softmediadesign.com/git_alhan/imajviewer/releases): + +- Linux `.deb` — `flutter build linux --release` + `bash dist/rebuild-deb.sh` +- Windows installer — on a Windows machine: `.\build-windows.ps1` + (Flutter + VS 2022 Build Tools + Inno Setup 6) ## Development diff --git a/build-windows.ps1 b/build-windows.ps1 index 3d9849b..71bd723 100644 --- a/build-windows.ps1 +++ b/build-windows.ps1 @@ -136,6 +136,11 @@ if (-not $SkipInno) { Write-Err "Installer scripti bulunamadi: $installerScript" } + # Installer surumunu pubspec.yaml'dan aynala (CI'daki adimla ayni) + $pubVersion = (Select-String -Path (Join-Path $ProjectRoot 'pubspec.yaml') -Pattern '^version:\s*([0-9]+\.[0-9]+\.[0-9]+)').Matches[0].Groups[1].Value + (Get-Content $installerScript -Raw) -replace '#define MyAppVersion "[^"]+"', "#define MyAppVersion `"$pubVersion`"" | Set-Content $installerScript + Write-Ok "Inno Setup surumu pubspec'ten: $pubVersion" + $distDir = Join-Path $ProjectRoot "dist" New-Item -ItemType Directory -Force -Path $distDir | Out-Null