Skip to content

Commit 9fa5b11

Browse files
committed
Main
Add flatpak-packages
1 parent b4132f7 commit 9fa5b11

10 files changed

Lines changed: 686 additions & 19 deletions

‎.github/workflows/ci-cd.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ env:
1616
PYTHON_VERSION: "3.9"
1717

1818
jobs:
19+
20+
debug-environment:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Print GitHub Context
24+
run: |
25+
echo "GitHub Context:"
26+
echo "Current Event Name: ${{ github.event_name }}"
27+
echo "Current Ref: ${{ github.ref }}"
1928
# Test-Job für verschiedene Python-Versionen
2029
test:
2130
runs-on: ubuntu-latest
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Build Flatpak Package
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
tags: [ 'v*' ]
7+
pull_request:
8+
branches: [ main ]
9+
workflow_dispatch:
10+
11+
jobs:
12+
build-flatpak:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Flatpak
20+
uses: flatpak/setup-flatpak@v1
21+
with:
22+
flatpak-version: latest
23+
24+
- name: Install Flatpak dependencies
25+
run: |
26+
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
27+
flatpak install -y flathub org.freedesktop.Platform//23.08
28+
flatpak install -y flathub org.freedesktop.Sdk//23.08
29+
30+
- name: Install Python dependencies
31+
run: |
32+
sudo apt-get update
33+
sudo apt-get install -y python3-pip python3-setuptools
34+
35+
- name: Build Flatpak package
36+
run: |
37+
chmod +x build_flatpak.sh
38+
./build_flatpak.sh
39+
40+
- name: Upload Flatpak bundle
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: bash-script-maker-flatpak
44+
path: build/flatpak/bash-script-maker.flatpak
45+
retention-days: 30
46+
47+
- name: Create Release (on tag)
48+
if: startsWith(github.ref, 'refs/tags/')
49+
uses: softprops/action-gh-release@v1
50+
with:
51+
files: build/flatpak/bash-script-maker.flatpak
52+
body: |
53+
## Flatpak Package
54+
55+
### Installation
56+
```bash
57+
flatpak install bash-script-maker.flatpak
58+
```
59+
60+
### Verwendung
61+
```bash
62+
flatpak run org.securebits.bashscriptmaker
63+
```
64+
65+
### Features
66+
- Vollständig sandboxed
67+
- Automatische Updates
68+
- Desktop-Integration
69+
- Keine System-Abhängigkeiten
70+
env:
71+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎README.md‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,33 @@ Ein benutzerfreundliches GUI-Programm zur Erstellung von Bash-Scripts mit visuel
6464
- Zenity (für Dialog-Funktionen)
6565
- Linux-Distribution mit apt, dnf, pacman oder ähnlichem Paketmanager
6666

67+
### Flatpak-Installation (Empfohlen)
68+
69+
**Flatpak ist die modernste und sicherste Installationsmethode:**
70+
71+
```bash
72+
# Flatpak installieren (falls noch nicht vorhanden)
73+
sudo dnf install flatpak # Fedora/RHEL
74+
sudo apt install flatpak # Ubuntu/Debian
75+
sudo pacman -S flatpak # Arch Linux
76+
77+
# Flathub-Repository hinzufügen
78+
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
79+
80+
# App installieren (wenn verfügbar)
81+
flatpak install flathub org.securebits.bashscriptmaker
82+
83+
# App starten
84+
flatpak run org.securebits.bashscriptmaker
85+
```
86+
87+
**Vorteile von Flatpak:**
88+
- ✅ Vollständig sandboxed und sicher
89+
- ✅ Automatische Updates
90+
- ✅ Keine System-Abhängigkeiten
91+
- ✅ Funktioniert auf allen Linux-Distributionen
92+
- ✅ Desktop-Integration inklusive
93+
6794
### Automatische Installation mit Desktop-Integration
6895

6996
**Empfohlene Methode (automatische Erkennung):**
@@ -87,6 +114,16 @@ Für Fedora/RHEL/CentOS-basierte Systeme:
87114
./install_dnf.sh
88115
```
89116

117+
### Flatpak-Paket selbst erstellen
118+
119+
```bash
120+
# Flatpak-Paket lokal erstellen
121+
./build_flatpak.sh
122+
123+
# Erstelltes Paket installieren
124+
flatpak install build/flatpak/bash-script-maker.flatpak
125+
```
126+
90127
### Nur Desktop-Integration installieren
91128

92129
Falls Sie die App bereits installiert haben und nur die Desktop-Integration hinzufügen möchten:

‎assets/bash-script-maker-16.png‎

1.72 KB
Loading

‎assets/bash-script-maker.svg‎

Lines changed: 88 additions & 19 deletions
Loading

0 commit comments

Comments
 (0)