[Build] Add build ressources

This commit is contained in:
2025-05-20 11:23:06 +02:00
parent a77cc41b60
commit d4e64a3cec
6 changed files with 119 additions and 0 deletions

21
PKGBUILD Normal file
View File

@@ -0,0 +1,21 @@
# Maintainer: Janis Hutz <development@janishutz.com>
pkgname=biogascontrollerapp
pkgver=3.0
pkgrel=1
pkgdesc="Utility Software to control the Biogas plant of ENATECH at KSWO"
arch=('x86_64')
url="https://github.com/janishutz/BiogasControllerApp"
license=('GPL-3.0-or-later')
depends=('python')
makedepends=('pyinstaller' 'python-setuptools')
source=("biogascontrollerapp/biogascontrollerapp.py")
sha256sums=('SKIP') # Replace with actual checksum for production use
build() {
cd "$srcdir"
pyinstaller --onefile biogascontrollerapp.py
}
package() {
install -Dm755 "$srcdir/dist/myscript" "$pkgdir/usr/bin/myscript"
}

View File

@@ -0,0 +1,58 @@
# -*- mode: python ; coding: utf-8 -*-
from kivy_deps import sdl2, glew
block_cipher = None
a = Analysis(
['biogascontrollerapp.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='BiogasControllerApp',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='BiogasControllerAppLogo.ico',
)
coll = COLLECT(
exe,
Tree('.'),
a.binaries,
a.zipfiles,
a.datas,
*[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
strip=False,
upx=True,
name='biogascontrollerapp'
)

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

8
pkg/build Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
# Build deb
dpkg-deb --build deb
# Build rpm
rpmbuild -ba ./rpm-build/SPECS/biogascontrollerapp.spec

7
pkg/deb/DEBIAN/control Normal file
View File

@@ -0,0 +1,7 @@
Package: biogascontrollerapp
Version: 3.0
Section: education
Priority: optional
Architecture: amd64
Maintainer: Janis Hutz <development@janishutz.com>
Description: Utility Software to control the Biogas plant of ENATECH at KSWO

View File

@@ -0,0 +1,25 @@
Name: biogascontrollerapp
Version: 3.0
Release: 1%{?dist}
Summary: Utility Software to control the Biogas plant of ENATECH at KSWO
License: GPL
URL: http://github.com/janishutz/BiogasControllerApp
Source0: biogascontrollerapp-3.0.tar.gz
%description
Utility Software to control the Biogas plant of ENATECH at KSWO
%prep
%setup -q
%build
%install
mkdir -p %{buildroot}/usr/local/bin
cp biogascontrollerapp %{buildroot}/usr/local/bin/
%files
/usr/local/bin/biogascontrollerapp
%changelog