chore: Windows setup.exe yeniden derlendi, Gitea CI Inno Setup adimi eklendi
This commit is contained in:
1 parent
171476d30b
commit
139ce5a8ae
4 files changed
+77
-6
No files matched your search
@@ -1,4 +1,4 @@
|
||||
name: Build Windows
|
||||
name: Build Windows Installer
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -11,15 +11,55 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: subosito/flutter-action@v2
|
||||
- name: Setup Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: stable
|
||||
|
||||
- run: flutter pub get
|
||||
- name: Get dependencies
|
||||
run: flutter pub get
|
||||
|
||||
- run: flutter build windows --release
|
||||
- name: Build Windows release
|
||||
run: flutter build windows --release
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- name: Install Inno Setup
|
||||
run: |
|
||||
choco install innosetup --no-progress -y
|
||||
|
||||
- name: Build Inno Setup installer
|
||||
shell: cmd
|
||||
run: |
|
||||
"C:\ProgramData\chocolatey\bin\ISCC.exe" windows\installer.iss
|
||||
|
||||
- name: Upload release artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: imajViewer-windows
|
||||
path: build/windows/x64/runner/Release/
|
||||
path: |
|
||||
build/windows/x64/runner/Release/
|
||||
dist/imajviewer_setup_*.exe
|
||||
|
||||
create-release:
|
||||
needs: build-windows
|
||||
runs-on: ubuntu-latest
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: imajViewer-windows
|
||||
path: release-artifacts/windows
|
||||
|
||||
- name: Create Gitea Release
|
||||
uses: nicojeske/mirror-gitea-release@v1
|
||||
with:
|
||||
gitea_url: https://git.softmediadesign.com
|
||||
repo: git_alhan/imajviewer
|
||||
tag_name: ${{ github.ref_name }}
|
||||
release_name: "imajViewer ${{ github.ref_name }}"
|
||||
body: "Windows installer and build artifacts"
|
||||
files: release-artifacts/windows/**
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
Reference in new issue
Block a user