Add CLI in deb package

This commit is contained in:
Adrien Bourmault 2021-07-15 16:31:53 +02:00
parent 89219f40c6
commit dee272db72
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
2 changed files with 6 additions and 4 deletions

View File

@ -93,7 +93,9 @@ $(BINDIR)/gem-graph-server.deb: all
mkdir -p gem-graph-server/DEBIAN mkdir -p gem-graph-server/DEBIAN
cp $(DEBDIR)/Manifest gem-graph-server/DEBIAN/control cp $(DEBDIR)/Manifest gem-graph-server/DEBIAN/control
cp $(BINDIR)/gem-graph-server gem-graph-server/usr/bin cp $(BINDIR)/gem-graph-server gem-graph-server/usr/bin
cp $(DEBDIR)/copyright gem-graph-server/usr/share/doc/gem-graph-server/copyright cp $(BINDIR)/gem-graph-ctl gem-graph-server/usr/bin
cp $(DEBDIR)/copyright \
gem-graph-server/usr/share/doc/gem-graph-server/copyright
dpkg-deb --build gem-graph-server dpkg-deb --build gem-graph-server
rm -rf gem-graph-server rm -rf gem-graph-server
@ -103,7 +105,7 @@ deb: $(BINDIR)/gem-graph-server.deb
install: install:
echo "Installing is not supported" echo "Installing is not supported"
# ---- Builder uses this target to run your application ---------------------- # # ---- Builder uses this target to run the application ----------------------- #
run: all run: all
bin/gem-graph-server bin/gem-graph-server
run-cli: all run-cli: all

View File

@ -49,8 +49,8 @@
#define C_SAVE_CURSORPOS "\e7" #define C_SAVE_CURSORPOS "\e7"
#define C_RESTORE_CURSORPOS "\e8" #define C_RESTORE_CURSORPOS "\e8"
#define C_COLOR_RED "\e[01;31m" #define C_COLOR_RED "\e[01;31m"
#define C_COLOR_YELLOW "\e[01;33m" #define C_COLOR_YELLOW "\e[00;33m"
#define C_COLOR_GREEN "\e[01;32m" #define C_COLOR_GREEN "\e[00;32m"
#define C_COLOR_BLUE "\e[01;34m" #define C_COLOR_BLUE "\e[01;34m"
#define C_COLOR_NORMAL "\e[0m" #define C_COLOR_NORMAL "\e[0m"