Initial Ginie project structure

This commit is contained in:
2025-11-17 21:55:31 +01:00
commit 8e9c9a09b4
10 changed files with 73 additions and 0 deletions

5
LICENSE Normal file
View File

@@ -0,0 +1,5 @@
MIT License
Copyright (c) 2025 <Dein Name>
Permission is hereby granted, free of charge, to any person obtaining a copy...

24
Makefile Normal file
View File

@@ -0,0 +1,24 @@
BINARY=ginie
VERSION=0.1.0
build:
go build -o $(BINARY) ./cmd/ginie
run:
go run ./cmd/ginie
clean:
rm -f $(BINARY)
rm -rf build
rm -f *.deb
deb: build
rm -rf build
mkdir -p build/usr/local/bin
cp $(BINARY) build/usr/local/bin/
fpm -s dir -t deb \
-n ginie \
-v $(VERSION) \
--description "Ginie Git Native Installer Engine" \
-C build \
.

20
README.md Normal file
View File

@@ -0,0 +1,20 @@
# Ginie
**Ginie Git Native Installer Engine**
Ein leichtgewichtiges Paketmanagement-Tool, das GitHub-Releases installiert,
aktualisiert und verwaltet.
### Features (geplant)
- Installieren von GitHub-Releases
- Automatische Updates
- Deinstallieren
- Erweiterbare Repository-Definitionen
### Installation
**Debian / Ubuntu (.deb Paket)**:
```sh
sudo dpkg -i ginie_<version>_amd64.deb

BIN
build/usr/local/bin/ginie Executable file

Binary file not shown.

17
cmd/ginie/main.go Normal file
View File

@@ -0,0 +1,17 @@
package main
import (
"fmt"
"os"
"gitea.home.musaberdem.de/musabe24/ginie/internal/version"
)
func main() {
if len(os.Args) > 1 && (os.Args[1] == "--version" || os.Args[1] == "-v") {
fmt.Println("ginie version", version.Version)
return
}
fmt.Println("Ginie Git Native Installer Engine")
}

BIN
ginie Executable file

Binary file not shown.

BIN
ginie_0.1.0_amd64.deb Normal file

Binary file not shown.

3
go.mod Normal file
View File

@@ -0,0 +1,3 @@
module gitea.home.musaberdem.de/musabe24/ginie
go 1.22.2

0
go.sum Normal file
View File

View File

@@ -0,0 +1,4 @@
package version
// Wird vom Build-Prozess überschrieben, falls gewünscht
var Version = "0.1.0"