chore: point README at Gitea releases; build-windows.ps1 mirrors pubspec version
This commit is contained in:
1 parent
3b1fad18fa
commit
8a80cba116
2 files changed
+16
-8
No files matched your search
@@ -1,8 +1,8 @@
|
||||
# imajViewer
|
||||
|
||||
[](LICENSE)
|
||||
[](https://github.com/alhan/imajviewer/actions/workflows/build.yml)
|
||||
[](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 <file>` 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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user