Skip to content

Commit 2bc1759

Browse files
committed
fix: Clean YAML formatting (line length and trailing spaces)
1 parent 5747b60 commit 2bc1759

File tree

1 file changed

+23
-43
lines changed

1 file changed

+23
-43
lines changed

.github/workflows/build-installers.yml

Lines changed: 23 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
---
12
name: Build MarkAPI Installers
23

3-
on:
4+
"on":
45
push:
5-
branches: [ main, develop ]
6+
branches: [main, develop]
67
paths:
78
- 'distribution/**'
89
- '.github/workflows/build-installers.yml'
910
pull_request:
10-
branches: [ main ]
11+
branches: [main]
1112
paths:
1213
- 'distribution/**'
1314
workflow_dispatch:
@@ -29,19 +30,25 @@ jobs:
2930

3031
- name: Install Inno Setup
3132
run: |
32-
Invoke-WebRequest -Uri "https://files.jrsoftware.org/is/6/innosetup-6.2.2.exe" -OutFile "innosetup.exe"
33-
Start-Process -FilePath "innosetup.exe" -ArgumentList "/VERYSILENT", "/SUPPRESSMSGBOXES", "/NORESTART" -Wait
33+
$url = "https://files.jrsoftware.org/is/6/innosetup-6.2.2.exe"
34+
Invoke-WebRequest -Uri $url -OutFile "innosetup.exe"
35+
Start-Process -FilePath "innosetup.exe" `
36+
-ArgumentList "/VERYSILENT", "/SUPPRESSMSGBOXES", "/NORESTART" `
37+
-Wait
3438
3539
- name: Update version in setup script
3640
run: |
3741
$content = Get-Content "distribution/windows/setup.iss"
38-
$content = $content -replace '#define MyAppVersion ".*"', "#define MyAppVersion `"$env:APP_VERSION`""
42+
$pattern = '#define MyAppVersion ".*"'
43+
$replacement = "#define MyAppVersion `"$env:APP_VERSION`""
44+
$content = $content -replace $pattern, $replacement
3945
Set-Content "distribution/windows/setup.iss" $content
4046
shell: powershell
4147

4248
- name: Build Windows installer
4349
run: |
44-
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "distribution/windows/setup.iss"
50+
$inno = "C:\Program Files (x86)\Inno Setup 6\ISCC.exe"
51+
& $inno "distribution/windows/setup.iss"
4552
shell: powershell
4653

4754
- name: Upload Windows installer
@@ -121,41 +128,14 @@ jobs:
121128
markapi-universal-package/*
122129
body: |
123130
# MarkAPI v${{ env.APP_VERSION }}
124-
125-
## 📦 Downloads Disponíveis
126-
127-
### Windows
128-
- **MarkAPI-Setup-${{ env.APP_VERSION }}.exe**: Instalador completo para Windows 10+
129-
130-
### Linux
131-
- **markapi_${{ env.APP_VERSION }}_amd64.deb**: Pacote para Ubuntu/Debian
132-
- **MarkAPI-${{ env.APP_VERSION }}.AppImage**: Universal Linux (64-bit)
133-
134-
### Universal
135-
- **markapi-universal-${{ env.APP_VERSION }}.tar.gz**: Para qualquer sistema com Docker
136-
137-
## 🚀 Como Instalar
138-
139-
### Windows
140-
1. Baixe `MarkAPI-Setup-${{ env.APP_VERSION }}.exe`
141-
2. Execute como Administrador
142-
3. Use o atalho "MarkAPI" para iniciar
143-
144-
### Ubuntu/Debian
145-
```bash
146-
sudo dpkg -i markapi_${{ env.APP_VERSION }}_amd64.deb
147-
markapi start
148-
```
149-
150-
### Linux Universal (AppImage)
151-
```bash
152-
chmod +x MarkAPI-${{ env.APP_VERSION }}.AppImage
153-
./MarkAPI-${{ env.APP_VERSION }}.AppImage
154-
```
155-
156-
## 📋 Requisitos
157-
158-
- **Windows**: 10+ (64-bit), 8GB RAM, Docker Desktop
159-
- **Linux**: Docker, 8GB RAM, kernel 4.0+
131+
132+
Instaladores automatizados para Windows, Linux e Universal.
133+
134+
## Downloads
135+
136+
- Windows: MarkAPI-Setup-${{ env.APP_VERSION }}.exe
137+
- Ubuntu/Debian: markapi_${{ env.APP_VERSION }}_amd64.deb
138+
- Linux Universal: MarkAPI-${{ env.APP_VERSION }}.AppImage
139+
- Universal: markapi-universal-${{ env.APP_VERSION }}.tar.gz
160140
env:
161141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)