Не большие изменения

This commit is contained in:
2026-05-06 12:31:42 +03:00
parent 855bdcc3f9
commit 74412ad368
7 changed files with 15 additions and 10 deletions

View File

@@ -49,8 +49,5 @@ lto = true
codegen-units = 1 codegen-units = 1
strip = true strip = true
[target.'cfg(windows)'.dependencies]
winres = "0.1"
[build-dependencies] [build-dependencies]
winres = "0.1" winres = "0.1"

Binary file not shown.

BIN
assets/logo.icns Normal file

Binary file not shown.

View File

@@ -67,15 +67,14 @@ define measure_time
$(2); \ $(2); \
end=$$(date +%s); \ end=$$(date +%s); \
duration=$$((end - start)); \ duration=$$((end - start)); \
echo "$(1): $$duration сек" >> $(TIMING_FILE); \
if [ $$duration -ge 60 ]; then \ if [ $$duration -ge 60 ]; then \
min=$$((duration / 60)); \ min=$$((duration / 60)); \
sec=$$((duration % 60)); \ sec=$$((duration % 60)); \
time_str="$${min}m $${sec}s"; \ echo "$(GREEN)$(1) завершён за $${min}m $${sec}s$(NC)"; \
else \ else \
time_str="$${duration}s"; \ echo "$(GREEN)$(1) завершён за $${duration}s$(NC)"; \
fi; \ fi
echo "$(1): $$time_str" >> $(TIMING_FILE); \
echo "$(GREEN)$(1) завершён за $$time_str$(NC)"
endef endef
define print_timing_summary define print_timing_summary
@@ -136,6 +135,15 @@ favicon:
@$(IMAGEMAGICK) assets/logo.png -define icon:auto-resize=48,32,16 src/static/favicon.ico @$(IMAGEMAGICK) assets/logo.png -define icon:auto-resize=48,32,16 src/static/favicon.ico
@echo "$(GREEN) ✓ src/static/favicon.ico$(NC)" @echo "$(GREEN) ✓ src/static/favicon.ico$(NC)"
# ============================================
# ИКОНКА ДЛЯ WINDOWS
# ============================================
windows-icon:
@if [ ! -f assets/logo.ico ]; then \
echo "$(YELLOW)logo.ico не найден, запускаю генерацию...$(NC)"; \
$(MAKE) icons; \
fi
# ============================================ # ============================================
# ОПРЕДЕЛЕНИЕ ПЛАТФОРМЫ # ОПРЕДЕЛЕНИЕ ПЛАТФОРМЫ
# ============================================ # ============================================
@@ -217,10 +225,10 @@ build-mac:
@echo "$(GREEN)🍎 Сборка для macOS...$(NC)" @echo "$(GREEN)🍎 Сборка для macOS...$(NC)"
@time cargo build --release @time cargo build --release
build-windows: build-windows: windows-icon
@echo "$(GREEN)🪟 Сборка для Windows x86_64...$(NC)" @echo "$(GREEN)🪟 Сборка для Windows x86_64...$(NC)"
@time cargo build --target x86_64-pc-windows-gnu --release @time cargo build --target x86_64-pc-windows-gnu --release
build-linux: build-linux:
@echo "$(GREEN)🐧 Сборка для Linux x86_64 (GNU)...$(NC)" @echo "$(GREEN)🐧 Сборка для Linux x86_64 (GNU)...$(NC)"
@time cargo build --target x86_64-unknown-linux-gnu --release @time cargo build --target x86_64-unknown-linux-gnu --release