-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_deb.sh
More file actions
executable file
·64 lines (52 loc) · 1.59 KB
/
build_deb.sh
File metadata and controls
executable file
·64 lines (52 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env bash
set -e
PKG="kdeteleprompter"
VERSION="1.0.2"
ARCH="all"
BUILD_DIR="${PKG}_${VERSION}_${ARCH}"
DEB="${BUILD_DIR}.deb"
echo "Building ${DEB}..."
# Clean previous build
rm -rf "$BUILD_DIR" "$DEB"
# Directory structure
mkdir -p "$BUILD_DIR/DEBIAN"
mkdir -p "$BUILD_DIR/usr/bin"
mkdir -p "$BUILD_DIR/usr/lib/$PKG"
mkdir -p "$BUILD_DIR/usr/share/applications"
# DEBIAN/control
cat > "$BUILD_DIR/DEBIAN/control" << EOF
Package: $PKG
Version: $VERSION
Architecture: $ARCH
Maintainer: Eduardo Collado
Depends: python3 (>= 3.10), python3-pyqt6, python3-pyaudio, python3-numpy, libportaudio2
Section: utils
Priority: optional
Description: Frameless teleprompter for KDE Plasma
A lightweight, always-on-top teleprompter for Linux / KDE Plasma.
Built with PyQt6 — no Electron, no browser, no bloat.
.
Features smooth 60 fps scrolling, hover-revealed controls, drag to move,
script editor with file-load support, voice-activated scrolling via microphone,
and a Catppuccin Mocha colour scheme.
EOF
# Application script
cp kdeteleprompter.py "$BUILD_DIR/usr/lib/$PKG/"
# Wrapper at /usr/bin
cat > "$BUILD_DIR/usr/bin/$PKG" << 'WRAPPER'
#!/bin/sh
exec python3 /usr/lib/kdeteleprompter/kdeteleprompter.py "$@"
WRAPPER
# Desktop entry
cp kdeteleprompter.desktop "$BUILD_DIR/usr/share/applications/"
# Permissions
find "$BUILD_DIR" -type d -exec chmod 755 {} \;
find "$BUILD_DIR" -type f -exec chmod 644 {} \;
chmod 755 "$BUILD_DIR/usr/bin/$PKG"
# Build
dpkg-deb --build --root-owner-group "$BUILD_DIR"
# Clean build dir
rm -rf "$BUILD_DIR"
echo ""
echo "Done: $DEB"
echo "Install with: sudo dpkg -i $DEB"