mirror of
https://github.com/janishutz/BiogasControllerApp.git
synced 2025-11-25 05:44:23 +00:00
[Build] Add build ressources
This commit is contained in:
21
PKGBUILD
Normal file
21
PKGBUILD
Normal 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"
|
||||
}
|
||||
58
biogascontrollerapp/BiogasControllerApp.spec
Normal file
58
biogascontrollerapp/BiogasControllerApp.spec
Normal 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'
|
||||
)
|
||||
BIN
biogascontrollerapp/BiogasControllerAppLogo.ico
Normal file
BIN
biogascontrollerapp/BiogasControllerAppLogo.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 118 KiB |
8
pkg/build
Executable file
8
pkg/build
Executable 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
7
pkg/deb/DEBIAN/control
Normal 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
|
||||
25
pkg/rpm-build/SPECS/biogascontrollerapp.spec
Normal file
25
pkg/rpm-build/SPECS/biogascontrollerapp.spec
Normal 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
|
||||
Reference in New Issue
Block a user