mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-09 18:02:52 +08:00
build: 添加应用程序图标资源并更新构建配置
- 新增 PathEditor.ico 图标文件及对应的资源脚本 resources.rc - 更新 Makefile,将图标资源编译链接到最终的可执行文件中 - 更新 Inno Setup 安装脚本,为安装程序设置图标
This commit is contained in:
@@ -19,7 +19,8 @@ LDFLAGS = -L$(LIB_DIR) -liup -liupcd -lgdi32 -lcomdlg32 -lcomctl32 -luuid -lole3
|
||||
|
||||
# Source
|
||||
SRC = src/main.c src/utils.c src/registry.c src/callbacks.c
|
||||
OBJ = $(OBJ_DIR)/main.o $(OBJ_DIR)/utils.o $(OBJ_DIR)/registry.o $(OBJ_DIR)/callbacks.o
|
||||
RES = ico/resources.rc
|
||||
OBJ = $(OBJ_DIR)/main.o $(OBJ_DIR)/utils.o $(OBJ_DIR)/registry.o $(OBJ_DIR)/callbacks.o $(OBJ_DIR)/resources.o
|
||||
EXE = $(BIN_DIR)/PathEditor.exe
|
||||
|
||||
all: $(BIN_DIR) $(OBJ_DIR) $(EXE)
|
||||
@@ -45,6 +46,9 @@ $(OBJ_DIR)/registry.o: src/registry.c
|
||||
$(OBJ_DIR)/callbacks.o: src/callbacks.c
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
$(OBJ_DIR)/resources.o: ico/resources.rc
|
||||
$(WINDRES) -i $< -o $@
|
||||
|
||||
clean:
|
||||
if exist $(OBJ_DIR)\*.o del /Q $(OBJ_DIR)\*.o
|
||||
if exist $(BIN_DIR)\*.exe del /Q $(BIN_DIR)\*.exe
|
||||
Binary file not shown.
Vendored
+1
@@ -27,6 +27,7 @@ OutputBaseFilename=PathEditorSetup
|
||||
Compression=lzma
|
||||
SolidCompression=yes
|
||||
WizardStyle=modern
|
||||
SetupIconFile=d:\Code\doing_exercises\programs\PathEditor\ico\PathEditor.ico
|
||||
|
||||
[Languages]
|
||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 138 KiB |
@@ -0,0 +1 @@
|
||||
IDI_ICON1 ICON "PathEditor.ico"
|
||||
Reference in New Issue
Block a user