change the name of tunnel service to HiddifyService

This commit is contained in:
Hiddify
2024-02-03 16:54:21 +01:00
parent 3950d3349f
commit d331991575
3 changed files with 10 additions and 7 deletions

View File

@@ -170,11 +170,11 @@ class ConnectionPlatformSourceImpl
fullPath = "libcore";
}
if (Platform.isWindows) {
fullPath = p.join(fullPath, "hiddify-service.exe");
fullPath = p.join(fullPath, "HiddifyService.exe");
} else if (Platform.isMacOS) {
fullPath = p.join(fullPath, "hiddify-service");
fullPath = p.join(fullPath, "HiddifyService");
} else {
fullPath = p.join(fullPath, "hiddify-service");
fullPath = p.join(fullPath, "HiddifyService");
}
return "$binFolder/$fullPath";

View File

@@ -120,8 +120,11 @@ install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
install(FILES "../libcore/bin/libcore.so" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime)
install(FILES "../libcore/bin/hiddify-service" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime)
install(
FILES "../libcore/bin/HiddifyService"
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime
)
foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})
install(FILES "${bundled_library}"

View File

@@ -87,9 +87,9 @@ set(HIDDIFY_NEXT_LIB "../libcore/bin/libcore.dll")
install(FILES "${HIDDIFY_NEXT_LIB}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime RENAME libcore.dll)
set(HIDDIFY_NEXT_LIB "../libcore/bin/hiddify-service.exe")
set(HIDDIFY_NEXT_LIB "../libcore/bin/HiddifyService.exe")
install(FILES "${HIDDIFY_NEXT_LIB}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime RENAME hiddify-service.exe)
COMPONENT Runtime RENAME HiddifyService.exe)
if(PLUGIN_BUNDLED_LIBRARIES)