From 66cbd2301369ae698e0b2c7128e52c5d8562e784 Mon Sep 17 00:00:00 2001 From: 2ndbeam <2ndbeam@disroot.org> Date: Fri, 19 Dec 2025 16:58:50 +0300 Subject: [PATCH 1/2] style: Changed name in license --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 4eee171..4e5488f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright 2025 (c) 2ndbeam +Copyright 2025 (c) Alexey Mirenkov <2ndbeam@disroot.org> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: From 0ab777d898edb986f6a9d68c9cbeca989f18bb4d Mon Sep 17 00:00:00 2001 From: 2ndbeam <2ndbeam@disroot.org> Date: Fri, 19 Dec 2025 17:15:13 +0300 Subject: [PATCH 2/2] build: Added unfinished build-deb.sh --- build-deb.sh | 23 +++++++++++++++++++++++ src/bin/deb.rs | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100755 build-deb.sh diff --git a/build-deb.sh b/build-deb.sh new file mode 100755 index 0000000..2c5b7a9 --- /dev/null +++ b/build-deb.sh @@ -0,0 +1,23 @@ +#!/bin/sh +cargo build --workspace --release + +install -dvm755 target/release/dpkg/etc/squad_quest target/release/dpkg/usr/bin target/release/dpkg/DEBIAN target/release/dpkg/usr/share/doc/squad-quest + +strip target/release/squad-quest-cli +strip target/release/squad-quest-discord +install -vm755 target/release/squad-quest-cli target/release/squad-quest-discord target/release/dpkg/usr/bin + +install -vm 644 LICENSE target/release/dpkg/usr/share/doc/squad-quest/copyright + +target/release/squad-quest-cli -qc nil init -i discord.toml -p target/release/dpkg/etc/squad_quest +cargo build --bin deb --release +target/release/deb > target/release/dpkg/DEBIAN/control + +echo -n "" > target/release/dpkg/DEBIAN/conffiles +for file in $(ls target/release/dpkg/etc/squad_quest); do + if [ -f target/release/dpkg/etc/squad_quest/$file ]; then + echo "/etc/squad_quest/$file" >> target/release/dpkg/DEBIAN/conffiles + fi +done + +dpkg-deb --root-owner-group --build target/release/dpkg target/release/squad-quest.deb diff --git a/src/bin/deb.rs b/src/bin/deb.rs index b4938d7..281d003 100644 --- a/src/bin/deb.rs +++ b/src/bin/deb.rs @@ -19,6 +19,7 @@ fn main() { Section: misc\n\ Priority: optional\n\ Homepage: {homepage}\n\ - Description: Simple RPG-like system for hosting events\n\ + Description: Simple RPG-like system for hosting events\n \ + Includes discord bot and CLI\n\ Maintainer: Alexey Mirenkov <2ndbeam@disroot.org>"); }