build: github acik kaynak hazirligi — LICENSE/CI/topluluk dosyalari eklendi, binary'ler takipten cikarildi, README EN, kok dokumanlar docs/'a tasindi

This commit is contained in:
Alhan
2026-08-06 05:49:43 +03:00
parent cd3f573f57
commit 8972ef7225
35 changed files with 560 additions and 151 deletions

30
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@@ -0,0 +1,30 @@
---
name: Bug report
about: Report a bug to help us improve
title: "[Bug] "
labels: bug
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To reproduce**
Steps to reproduce the behavior:
1. Open '...'
2. Click on '...'
3. See error
**Expected behavior**
What you expected to happen.
**Screenshots / screen recording**
If applicable, add screenshots to help explain your problem.
**Environment**
- OS / distro: [e.g. Ubuntu 24.04, Windows 11]
- imajViewer version: [e.g. 1.1.0 — from `pubspec.yaml` or release name]
- Desktop environment / GPU: [e.g. XFCE + llvmpipe, or NVIDIA driver]
**Additional context**
Anything else relevant (log output, image that triggers the bug, etc.)

View File

@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for imajViewer
title: "[Feature] "
labels: enhancement
assignees: ''
---
**Is your feature request related to a problem?**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
Other approaches or workarounds you've tried.
**Additional context**
Screenshots, mockups, or any other context about the feature request.

18
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,18 @@
## Description
<!-- What does this PR do? What problem does it solve? -->
## Related issue
<!-- Link the issue this PR closes, e.g. Closes #12 -->
## Changes
- [ ] Feature / fix implemented
- [ ] `flutter test` passes
- [ ] `flutter analyze` shows no new issues
- [ ] Changelog updated (if user-facing change)
## Screenshots (if applicable)
<!-- Before/after or new UI -->

113
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,113 @@
name: Build & Release
on:
push:
branches: [main]
tags: ['v*']
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install packaging tools
run: |
sudo apt-get update
sudo apt-get install -y patchelf fakeroot dpkg
- name: Get dependencies
run: flutter pub get
- name: Build Linux release
run: flutter build linux --release
- name: Build .deb package
run: bash dist/rebuild-deb.sh
- name: Upload .deb artifact
uses: actions/upload-artifact@v4
with:
name: imajviewer-linux
path: dist/imajviewer_*.deb
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Get dependencies
run: flutter pub get
- name: Build Windows release
run: flutter build windows --release
- name: Install Inno Setup
run: |
choco install innosetup --no-progress -y
- name: Sync version from pubspec.yaml
shell: pwsh
run: |
$version = (Select-String -Path pubspec.yaml -Pattern '^version:\s*([0-9]+\.[0-9]+\.[0-9]+)').Matches[0].Groups[1].Value
(Get-Content windows/installer.iss -Raw) -replace '#define MyAppVersion "[^"]+"', "#define MyAppVersion `"$version`"" | Set-Content windows/installer.iss
Write-Host "Inno Setup version: $version"
- name: Build Inno Setup installer
shell: cmd
run: |
"C:\ProgramData\chocolatey\bin\ISCC.exe" windows\installer.iss
- name: Upload installer artifact
uses: actions/upload-artifact@v4
with:
name: imajviewer-windows
path: |
build/windows/x64/runner/Release/
dist/imajviewer_setup_*.exe
create-release:
needs: [build-linux, build-windows]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Download Linux artifacts
uses: actions/download-artifact@v4
with:
name: imajviewer-linux
path: release-artifacts
- name: Download Windows artifacts
uses: actions/download-artifact@v4
with:
name: imajviewer-windows
path: release-artifacts/windows
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
name: "imajViewer ${{ github.ref_name }}"
body: |
imajViewer ${{ github.ref_name }}
See the [changelog](CHANGELOG.md) for details.
### Downloads
- Linux: `.deb` package (Ubuntu/Debian)
- Windows: Inno Setup installer
files: |
release-artifacts/imajviewer_*.deb
release-artifacts/windows/dist/imajviewer_setup_*.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}