Initial Ginie project structure
This commit is contained in:
5
LICENSE
Normal file
5
LICENSE
Normal 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
24
Makefile
Normal 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
20
README.md
Normal 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
BIN
build/usr/local/bin/ginie
Executable file
Binary file not shown.
17
cmd/ginie/main.go
Normal file
17
cmd/ginie/main.go
Normal 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_0.1.0_amd64.deb
Normal file
BIN
ginie_0.1.0_amd64.deb
Normal file
Binary file not shown.
3
go.mod
Normal file
3
go.mod
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
module gitea.home.musaberdem.de/musabe24/ginie
|
||||||
|
|
||||||
|
go 1.22.2
|
||||||
4
internal/version/version.go
Normal file
4
internal/version/version.go
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
package version
|
||||||
|
|
||||||
|
// Wird vom Build-Prozess überschrieben, falls gewünscht
|
||||||
|
var Version = "0.1.0"
|
||||||
Reference in New Issue
Block a user