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
|
# imajViewer
|
||||||
|
|
||||||
[](LICENSE)
|
[](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.
|
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)
|
### Linux (.deb, recommended)
|
||||||
|
|
||||||
No Flutter SDK needed — grab the latest `.deb` from the
|
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
|
```bash
|
||||||
sudo dpkg -i imajviewer_*_amd64.deb
|
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)
|
### Windows (installer)
|
||||||
|
|
||||||
Download `imajviewer_setup_*.exe` from the
|
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:
|
The installer:
|
||||||
|
|
||||||
- Installs to Program Files
|
- Installs to Program Files
|
||||||
@@ -100,11 +100,14 @@ folder including `imajviewer.exe` and all DLLs).
|
|||||||
| Ctrl + Q | Close window |
|
| Ctrl + Q | Close window |
|
||||||
| Ctrl + Shift + Q | Close all windows |
|
| Ctrl + Shift + Q | Close all windows |
|
||||||
|
|
||||||
## CI / Releases
|
## Releases
|
||||||
|
|
||||||
GitHub Actions builds Linux `.deb` and Windows installer on every push to
|
Installers are published on the
|
||||||
`main`. Pushing a `v*` tag creates a GitHub Release with both installers as
|
[Gitea Releases page](https://git.softmediadesign.com/git_alhan/imajviewer/releases):
|
||||||
assets.
|
|
||||||
|
- 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
|
## Development
|
||||||
|
|
||||||
|
|||||||
@@ -136,6 +136,11 @@ if (-not $SkipInno) {
|
|||||||
Write-Err "Installer scripti bulunamadi: $installerScript"
|
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"
|
$distDir = Join-Path $ProjectRoot "dist"
|
||||||
New-Item -ItemType Directory -Force -Path $distDir | Out-Null
|
New-Item -ItemType Directory -Force -Path $distDir | Out-Null
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user