Не большие изменения
This commit is contained in:
@@ -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
BIN
assets/logo.icns
Normal file
Binary file not shown.
20
makefile
20
makefile
@@ -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,7 +225,7 @@ 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
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user