Added .deb and .rpm package build step
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
1
src/build/changelog.txt
Normal file
1
src/build/changelog.txt
Normal file
@ -0,0 +1 @@
|
||||
# Check https://git.metaunix.net/bitgoblin/dragoon/releases for the current changelog
|
8
src/build/deb/etc/dragoon/config.example.toml
Normal file
8
src/build/deb/etc/dragoon/config.example.toml
Normal file
@ -0,0 +1,8 @@
|
||||
# This example transcodes footage to DNxHD 1080p60 for use in video editors like DaVinci Resolve.
|
||||
[transcoder]
|
||||
repo_path = '~/videos' # location of the videos to transcode
|
||||
video_format = 'mov' # video container format
|
||||
video_codec = 'dnxhd' # video codec to use
|
||||
video_parameters = 'scale=1920x1080,fps=60,format=yuv422p' # video extra format parameters flag - this will be broken later into separate attributes
|
||||
video_profile = 'dnxhr_hq' # DNxHD has multiple presets for various video qualities
|
||||
audio_codec = 'pcm_s16le' # audio codec to use
|
11
src/build/deb/etc/systemd/system/dragoon.service
Normal file
11
src/build/deb/etc/systemd/system/dragoon.service
Normal file
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Dragoon video transcoder service
|
||||
|
||||
[Service]
|
||||
User=dragoon
|
||||
Group=dragoon
|
||||
ExecStart=/usr/bin/java -jar '/opt/dragoon/dragoon.jar'
|
||||
SuccessExitStatus=143
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
23
src/build/scripts/postinstall.sh
Normal file
23
src/build/scripts/postinstall.sh
Normal file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
GETENT_USER=$(getent passwd dragoon)
|
||||
GETENT_GROUP=$(getent group dragoon)
|
||||
|
||||
# Create the dragoon user if it doesn't already exist
|
||||
if [ "$GETENT_USER" = "" ]; then
|
||||
useradd -r dragoon
|
||||
else
|
||||
echo "The 'dragoon' user already exists, skipping creation."
|
||||
fi
|
||||
|
||||
# Create the dragoon group if it doesn't already exist
|
||||
if [ "$GETENT_GROUP" = "" ]; then
|
||||
groupadd dragoon
|
||||
usermod -aG dragoon dragoon
|
||||
else
|
||||
echo "The 'dragoon' group already exists, skipping creation."
|
||||
fi
|
||||
|
||||
# Change the directory ownership of /opt and /etc
|
||||
chown -R dragoon:dragoon /etc/dragoon
|
||||
chown -R dragoon:dragoon /opt/dragoon
|
Reference in New Issue
Block a user