Skip to content

Commit 5fc0f9a

Browse files
author
JackBoosY
committed
Rename resource config, install resources
1 parent 3076fb0 commit 5fc0f9a

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

app/GithubChecker/CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@ target_compile_definitions(GithubChecker PRIVATE _CRT_SECURE_NO_WARNINGS)
1313

1414
target_link_libraries(GithubChecker PRIVATE dui::duilib grabber)
1515

16-
install(TARGETS GithubChecker RUNTIME DESTINATION bin)
16+
install(TARGETS GithubChecker RUNTIME DESTINATION bin)
17+
18+
file(GLOB APP_GRABBER_RESOURCES "${CMAKE_CURRENT_LIST_DIR}/*.png")
19+
list(APPEND APP_GRABBER_RESOURCES "${CMAKE_CURRENT_LIST_DIR}/checkerMainFrame.xml")
20+
21+
install(FILES ${APP_GRABBER_RESOURCES} DESTINATION bin)

app/GithubChecker/mainFrame.xml renamed to app/GithubChecker/checkerMainFrame.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<VerticalLayout height="253" pos="0,0,0,253" padding="0,0,0,0">
1010
<HorizontalLayout height="35" pos="0,0,0,35" padding="5,0,0,0">
1111
<Label text="repo" width="70" height="30" pos="0,0,70,30" />
12-
<Edit name="REPO_NAME" width="580" height="30" text="jackboos/githubgrabber" pos="0,0,580,30" bordersize="1" bordercolor="0xFFB4B4B4" />
12+
<Edit name="REPO_NAME" width="580" height="30" text="microsoft/vcpkg" pos="0,0,580,30" bordersize="1" bordercolor="0xFFB4B4B4" />
1313
</HorizontalLayout>
1414
<HorizontalLayout height="37" pos="0,0,0,37" padding="5,0,0,0">
1515
<Label text="用户名" width="70" height="30" pos="0,0,70,30" />

app/GithubChecker/mainFrame.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ CDuiString TestFrame::GetSkinFolder()
4444

4545
CDuiString TestFrame::GetSkinFile()
4646
{
47-
return _T("mainFrame.xml");
47+
return _T("checkerMainFrame.xml");
4848
}
4949

5050
LPCTSTR TestFrame::GetWindowClassName(void) const

app/GithubGrabber/CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@ target_compile_definitions(GithubGrabber PRIVATE _CRT_SECURE_NO_WARNINGS)
1313

1414
target_link_libraries(GithubGrabber PRIVATE dui::duilib grabber)
1515

16-
install(TARGETS GithubGrabber RUNTIME DESTINATION bin)
16+
install(TARGETS GithubGrabber RUNTIME DESTINATION bin)
17+
18+
file(GLOB APP_CHECKER_RESOURCES "${CMAKE_CURRENT_LIST_DIR}/*.png")
19+
list(APPEND APP_CHECKER_RESOURCES "${CMAKE_CURRENT_LIST_DIR}/grabberMainFrame.xml")
20+
21+
install(FILES ${APP_CHECKER_RESOURCES} DESTINATION bin)

app/GithubGrabber/mainFrame.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ CDuiString TestFrame::GetSkinFolder()
3838

3939
CDuiString TestFrame::GetSkinFile()
4040
{
41-
return _T("mainFrame.xml");
41+
return _T("grabberMainFrame.xml");
4242
}
4343

4444
LPCTSTR TestFrame::GetWindowClassName(void) const

0 commit comments

Comments
 (0)