-DBG_CFLAGS = -Wall -Wextra -g -fsanitize=address
+DBG_CFLAGS = -Wall -Wextra -g
PROD_CFLAGS = -Wall -Wextra -Os
LIBS = -lzip -lcurl
-SRC = src/main.c src/cpu.c src/downloader.c src/cli.c src/unzip.c
-OBJ = build/main.o build/cpu.o build/downloader.o build/cli.o build/unzip.o
+SRC = src/main.c src/cpu.c src/downloader.c src/cli.c src/unzip.c src/path.c
+OBJ = build/main.o build/cpu.o build/downloader.o build/cli.o build/unzip.o build/path.o
RES = build/Thoryum
release: CFLAGS = $(PROD_CFLAGS)
printf("Patching .desktop file\n");
char *desktop_path = patch_desktop_file(install_loc);
- printf("Register that shit up\n");
+ printf("Register that shit up '%s'\n", desktop_path);
register_desktop(desktop_path);
+ printf("Cya gang ;D\n");
free(install_loc);
free(desktop_path);
- printf("Cya gang ;D\n");
}
void update(struct ctx *ctx) {
if (!ctx->silent) {
printf("Are you sure you want to procede with the installation of Thorium ? [y/n] ");
+ fflush(stdout);
char response;
scanf("%c", &response);
if (toupper(response) != 'Y') {
int len = strlen(sb.name);
path name = init_path(extract_loc);
- cat_path(name, (const path)sb.name);
+ name = cat_path(name, (const path)sb.name);
len = strlen(name);
+ printf("extracticng file '%s' to '%s'\n", sb.name, name);
if (name[len - 1] == '/')
safe_create_dir(name);