From 9cccaa460baa6a7ac0ae0bd04352da38910f0e10 Mon Sep 17 00:00:00 2001 From: notify Date: Sun, 5 Mar 2023 06:55:12 +0800 Subject: [PATCH] add icon for Win (#64) --- image/icon.ico | Bin 0 -> 9608 bytes image/icon.rc | 1 + src/CMakeLists.txt | 2 ++ 3 files changed, 3 insertions(+) create mode 100644 image/icon.ico create mode 100644 image/icon.rc diff --git a/image/icon.ico b/image/icon.ico new file mode 100644 index 0000000000000000000000000000000000000000..6b02991bff54e5460b3183ec6abd5f46ee81790d GIT binary patch literal 9608 zcmeI2Yitx%6vyw1rp5BX#M&l)5NR|iUzAqYR11dsXoJBQ#sm@QgI1~tL}Lu0)*4HU zFWO>E0~#Mx5;eB<1F4B0iV1?+8Vogt@QNf<#8_>LwE}6o$N&G%-rZr`+1;7#w%x?r z+@0>7d(ZiuGw0lUXJ(ZO;BV0)h0p8Nvo|W0r<5v0MU$#RWxFmnSO?#qbLJ|QTeLte ztbIV;(Y94B>)EXyIn=9G4-Tk$Ijz>qDCz{NxKy4S)qOdJV=1E)vM7_Xsbi|kHNgd{ zbk_@N)v12yA5%|*k97m;Q>ag(x--W<$1xmB8AcvuQwMcXXR77u;_FmJcRSer(mJTK z9@Q&rvi&KWI%rQlbW%4N{FGZ>u2FT9e}rYFkJ-&O+Cn?(CWjPRk}X+?zw)kDwNd+E z`njF<&EZ&c~9;JSKZt`-{H$YellS|Dyal7aJ1wStoKi_dFc$Cc}-tti4g) z_eF=^1IFqTudPPp?pBf0!y z4)+F_4{rV3+M)ZS?<7)|ya^fLy+n?q&z<%@IJfw9k-slSM97jiV#sjOubIKFR-ZW> z;PrFq=h_bad-{y-kSuM1jB1A*eBWcUv5b9aBgPhQ6B!;e<3$dh6uHua|1~q%G4Jrc z$rr!f|4X-r+3d2wZ||f1`FEEfBSr!j`l5gW9mBYbTFoxse$NAKq2j3M~FLE}Ce0C_x@?g8QhF$dxSg_`59tZzo&hKdZ;G5{U zbLXvfFohgQK7PP;?eil2r>ywBFdpR?`A1}E)N0@SDL6ULJNWhdUx{}3VCVkm*o(;N z-=fOe)9PXrZUX)_7bvx3ID(EXqexb<1OKK#u$9j)*Bss0PB}p7xEe>WKVwn zMBFoWwtSA*$GZCSP*neyM?`ib9~c|AGNu_r4*%;ln%9M~P8;CwroAFZk=HABTHih9 z0olE+U$8;1HLFBEjO1^a8EvW()iB26rwx>4`g)HY`e7uM{li=PqW<5~ZLwd5y%evJ z_HQD7+Feq{gb_x^?Y8NaZhe22*U z2SxV7|C~o&LQZD${tm1+HH&<8%$jR-Tyac_?0WnL$XV9Yk<$I6;Xs`0^@np#c;2CH zf%@=w<|h3zQT)B2u+ zzNQZ9qE7105BmH4fZe7%{rimuwRSN5zu#B`9i_V(6m?E@$(onG-_I0=e?LPV|Cbr? Fz`r=YCguPD literal 0 HcmV?d00001 diff --git a/image/icon.rc b/image/icon.rc new file mode 100644 index 00000000..2b6bb06f --- /dev/null +++ b/image/icon.rc @@ -0,0 +1 @@ +IDI_ICON1 ICON "icon.ico" diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a8ff8518..ff849101 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -44,6 +44,8 @@ if (WIN32) set(SQLITE3_LIB ${PROJECT_SOURCE_DIR}/lib/win/sqlite3.dll) set(CRYPTO_LIB OpenSSL::Crypto) set(GIT_LIB ${PROJECT_SOURCE_DIR}/lib/win/libgit2.dll) + set(app_icon_resource_windows "${PROJECT_SOURCE_DIR}/image/icon.rc") + list(APPEND freekill_SRCS ${app_icon_resource_windows}) elseif (ANDROID) set(LUA_LIB ${PROJECT_SOURCE_DIR}/lib/android/liblua54.so) set(SQLITE3_LIB ${PROJECT_SOURCE_DIR}/lib/android/libsqlite3.so)