mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-26 22:56:46 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
9e353443c2 | |||
d02f3b4acb | |||
f2b1c81279 | |||
768617a129 |
@ -55,9 +55,9 @@ author = 'Jakob Kreuze'
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '0.11.0'
|
||||
version = '0.11.1'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '0.11.0'
|
||||
release = '0.11.1'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
|
@ -19,6 +19,8 @@ ifneq ($(AUDIO), disabled)
|
||||
ifneq ($(VIDEO), disabled)
|
||||
-include $(CHECKS_DIR)/video.mk
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
#check if we want to build with game support
|
||||
GAMES := $(shell if [ -z "$(DISABLE_GAMES)" ] || [ "$(DISABLE_GAMES)" = "0" ] ; then echo enabled ; else echo disabled ; fi)
|
||||
@ -26,9 +28,6 @@ ifneq ($(GAMES), disabled)
|
||||
-include $(CHECKS_DIR)/games.mk
|
||||
endif
|
||||
|
||||
endif
|
||||
endif
|
||||
|
||||
# Check if we want build sound notifications support
|
||||
SND_NOTIFY := $(shell if [ -z "$(DISABLE_SOUND_NOTIFY)" ] || [ "$(DISABLE_SOUND_NOTIFY)" = "0" ] ; then echo enabled ; else echo disabled ; fi)
|
||||
ifneq ($(SND_NOTIFY), disabled)
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Version
|
||||
TOXIC_VERSION = 0.11.0
|
||||
TOXIC_VERSION = 0.11.1
|
||||
REV = $(shell git rev-list HEAD --count 2>/dev/null || echo -n "error")
|
||||
ifneq (, $(findstring error, $(REV)))
|
||||
VERSION = $(TOXIC_VERSION)
|
||||
|
@ -131,11 +131,15 @@ mkdir -p "$BUILD_DIR"
|
||||
# Build Toxcore
|
||||
cd "$BUILD_DIR"
|
||||
|
||||
TOXCORE_VERSION="0.2.12"
|
||||
TOXCORE_HASH="30ae3263c9b68d3bef06f799ba9d7a67e3fad447030625f0ffa4bb22684228b0"
|
||||
# The git hash of the c-toxcore version we're using
|
||||
TOXCORE_VERSION="25a56c354937e9c8c4c50a64c3b4cfc099c34e29"
|
||||
|
||||
# The sha256sum of the c-toxcore tarball for TOXCORE_VERSION
|
||||
TOXCORE_HASH="8448752e6286c747130254571fde2db8e2fc073a8116f9fff489ed53af546c0a"
|
||||
|
||||
TOXCORE_FILENAME="c-toxcore-$TOXCORE_VERSION.tar.gz"
|
||||
|
||||
wget --timeout=10 -O "$TOXCORE_FILENAME" "https://github.com/TokTok/c-toxcore/archive/v$TOXCORE_VERSION.tar.gz"
|
||||
wget --timeout=10 -O "$TOXCORE_FILENAME" "https://github.com/TokTok/c-toxcore/archive/$TOXCORE_VERSION.tar.gz"
|
||||
check_sha256 "$TOXCORE_HASH" "$TOXCORE_FILENAME"
|
||||
tar -o -xf "$TOXCORE_FILENAME"
|
||||
rm "$TOXCORE_FILENAME"
|
||||
@ -160,8 +164,8 @@ cmake --build _build --target install
|
||||
# location with SSL_CERT_FILE env variable.
|
||||
cd "$BUILD_DIR"
|
||||
|
||||
CURL_VERSION="7.74.0"
|
||||
CURL_HASH="e56b3921eeb7a2951959c02db0912b5fcd5fdba5aca071da819e1accf338bbd7"
|
||||
CURL_VERSION="7.77.0"
|
||||
CURL_HASH="b0a3428acb60fa59044c4d0baae4e4fc09ae9af1d8a3aa84b2e3fbcd99841f77"
|
||||
CURL_FILENAME="curl-$CURL_VERSION.tar.gz"
|
||||
|
||||
wget --timeout=10 -O "$CURL_FILENAME" "https://curl.haxx.se/download/$CURL_FILENAME"
|
||||
@ -178,7 +182,8 @@ cd curl*
|
||||
--without-ca-path \
|
||||
--with-ca-fallback \
|
||||
--with-nghttp2 \
|
||||
--with-brotli
|
||||
--with-brotli \
|
||||
--with-openssl
|
||||
make
|
||||
make install
|
||||
sed -i 's|-lbrotlidec |-lbrotlidec-static -lbrotlicommon-static |g' $BUILD_DIR/prefix-curl/lib/pkgconfig/libcurl.pc
|
||||
@ -214,6 +219,7 @@ CFLAGS="-static" PKG_CONFIG_PATH="$BUILD_DIR/prefix-toxcore/lib64/pkgconfig:$BUI
|
||||
ENABLE_PYTHON=0 \
|
||||
ENABLE_RELEASE=1 \
|
||||
ENABLE_ASAN=0 \
|
||||
DISABLE_GAMES=0 \
|
||||
install
|
||||
|
||||
|
||||
@ -295,3 +301,4 @@ mv "$PREPARE_ARTIFACT_DIR" "$PREPARE_ARTIFACT_DIR/../$ARTIFACT_NAME"
|
||||
tar -cJf "$ARTIFACT_NAME.tar.xz" "$ARTIFACT_NAME"
|
||||
mv "$ARTIFACT_NAME.tar.xz" "$ARTIFACT_DIR"
|
||||
chmod 777 -R "$ARTIFACT_DIR"
|
||||
|
||||
|
@ -540,20 +540,20 @@ static void game_draw_border(const GameData *game, const int max_x, const int ma
|
||||
const int x = (max_x - game_max_x) / 2;
|
||||
const int y = (max_y - game_max_y) / 2;
|
||||
|
||||
wattron(win, A_BOLD | COLOR_PAIR(GAME_BORDER_COLOUR));
|
||||
wattron(win, COLOR_PAIR(GAME_BORDER_COLOUR));
|
||||
|
||||
mvwaddch(win, y, x, ' ');
|
||||
mvwhline(win, y, x + 1, ' ', game_max_x - 1);
|
||||
mvwvline(win, y + 1, x, ' ', game_max_y - 1);
|
||||
mvwvline(win, y, x - 1, ' ', game_max_y + 1);
|
||||
mvwaddch(win, y, x + game_max_x, ' ');
|
||||
mvwvline(win, y + 1, x + game_max_x, ' ', game_max_y - 1);
|
||||
mvwvline(win, y, x + game_max_x + 1, ' ', game_max_y + 1);
|
||||
mvwaddch(win, y + game_max_y, x, ' ');
|
||||
mvwhline(win, y + game_max_y, x + 1, ' ', game_max_x - 1);
|
||||
mvwaddch(win, y + game_max_y, x + game_max_x, ' ');
|
||||
mvwaddch(win, y, x, ACS_ULCORNER);
|
||||
mvwhline(win, y, x + 1, ACS_HLINE, game_max_x - 1);
|
||||
mvwvline(win, y + 1, x, ACS_VLINE, game_max_y - 1);
|
||||
mvwvline(win, y, x - 1, ACS_VLINE, game_max_y + 1);
|
||||
mvwaddch(win, y, x + game_max_x, ACS_URCORNER);
|
||||
mvwvline(win, y + 1, x + game_max_x, ACS_VLINE, game_max_y - 1);
|
||||
mvwvline(win, y, x + game_max_x + 1, ACS_VLINE, game_max_y + 1);
|
||||
mvwaddch(win, y + game_max_y, x, ACS_LLCORNER);
|
||||
mvwhline(win, y + game_max_y, x + 1, ACS_HLINE, game_max_x - 1);
|
||||
mvwaddch(win, y + game_max_y, x + game_max_x, ACS_LRCORNER);
|
||||
|
||||
wattroff(win, A_BOLD | COLOR_PAIR(GAME_BORDER_COLOUR));
|
||||
wattroff(win, COLOR_PAIR(GAME_BORDER_COLOUR));
|
||||
}
|
||||
|
||||
static void game_draw_status(const GameData *game, const int max_x, const int max_y)
|
||||
@ -561,7 +561,7 @@ static void game_draw_status(const GameData *game, const int max_x, const int ma
|
||||
WINDOW *win = game->window;
|
||||
|
||||
int x = ((max_x - game->game_max_x) / 2) - 1;
|
||||
int y = ((max_y - game->game_max_y) / 2) - 1;
|
||||
const int y = ((max_y - game->game_max_y) / 2) - 1;
|
||||
|
||||
wattron(win, A_BOLD);
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include "game_util.h"
|
||||
#include "windows.h"
|
||||
|
||||
#define GAME_BORDER_COLOUR BAR_TEXT
|
||||
#define GAME_BORDER_COLOUR BAR_SOLID
|
||||
|
||||
|
||||
/* Max size of a default square game window */
|
||||
|
@ -24,6 +24,7 @@
|
||||
#define GAME_UTIL
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <time.h>
|
||||
|
||||
typedef struct Coords {
|
||||
int x;
|
||||
|
@ -174,7 +174,7 @@ static void help_draw_global(ToxWindow *self)
|
||||
wprintw(win, " /decline <id> : Decline friend request\n");
|
||||
wprintw(win, " /requests : List pending friend requests\n");
|
||||
wprintw(win, " /connect <ip> <port> <key> : Manually connect to a DHT node\n");
|
||||
wprintw(win, " /status <type> <msg> : Set status with optional note\n");
|
||||
wprintw(win, " /status <type> : Set status (Online, Busy, Away)\n");
|
||||
wprintw(win, " /note <msg> : Set a personal note\n");
|
||||
wprintw(win, " /nick <nick> : Set your nickname\n");
|
||||
wprintw(win, " /nospam <value> : Change part of your Tox ID to stop spam\n");
|
||||
|
@ -383,6 +383,7 @@ static void init_term(void)
|
||||
init_pair(BLACK_BG, COLOR_BLACK, bar_bg_color);
|
||||
init_pair(PURPLE_BG, COLOR_MAGENTA, bar_bg_color);
|
||||
init_pair(BAR_TEXT, bar_fg_color, bar_bg_color);
|
||||
init_pair(BAR_SOLID, bar_bg_color, bar_bg_color);
|
||||
init_pair(BAR_ACCENT, bar_accent_color, bar_bg_color);
|
||||
init_pair(BAR_NOTIFY, bar_notify_color, bar_bg_color);
|
||||
init_pair(STATUS_ONLINE, COLOR_GREEN, bar_bg_color);
|
||||
|
@ -72,6 +72,7 @@ typedef enum {
|
||||
STATUS_BUSY,
|
||||
STATUS_AWAY,
|
||||
BAR_NOTIFY,
|
||||
BAR_SOLID,
|
||||
} C_COLOURS;
|
||||
|
||||
/* tab alert types: lower types take priority (this relies on the order of C_COLOURS) */
|
||||
|
Reference in New Issue
Block a user