From e1486acba05e0983327198caa939416ff89a17c4 Mon Sep 17 00:00:00 2001 From: Hiddify Date: Fri, 9 Feb 2024 18:36:27 +0100 Subject: [PATCH] fix: windows build --- Makefile | 7 +++++++ dependencies.properties | 2 +- windows/CMakeLists.txt | 7 +++---- windows/packaging/exe/make_config.yaml | 3 +-- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 400eaae0..a865a8d2 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,14 @@ windows-prepare: get-geo-assets get gen translate windows-libs ios-prepare: get-geo-assets get gen translate ios-libs macos-prepare: get-geo-assets get gen translate macos-libs linux-prepare: get-geo-assets get gen translate linux-libs +linux-appimage-prepare:linux-prepare +linux-rpm-prepare:linux-prepare +linux-deb-prepare:linux-prepare + android-prepare: get-geo-assets get gen translate android-libs +android-apk-prepare:android-prepare +android-aab-prepare:android-prepare + linux-install-dependencies: diff --git a/dependencies.properties b/dependencies.properties index ed250c79..7258ef63 100644 --- a/dependencies.properties +++ b/dependencies.properties @@ -1 +1 @@ -core.version=0.13.1 \ No newline at end of file +core.version=0.14.0 \ No newline at end of file diff --git a/windows/CMakeLists.txt b/windows/CMakeLists.txt index 7bca9452..01966e1b 100644 --- a/windows/CMakeLists.txt +++ b/windows/CMakeLists.txt @@ -83,12 +83,11 @@ install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" # install(FILES "../libcore/bin/libcore.dll" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" # COMPONENT Runtime) -set(HIDDIFY_NEXT_LIB "../libcore/bin/libcore.dll") -install(FILES "${HIDDIFY_NEXT_LIB}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + +install(FILES "../libcore/bin/libcore.dll" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" COMPONENT Runtime RENAME libcore.dll) -set(HIDDIFY_NEXT_LIB "../libcore/bin/HiddifyService.exe") -install(FILES "${HIDDIFY_NEXT_LIB}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" +install(FILES "../libcore/bin/HiddifyService.exe" DESTINATION "${CMAKE_INSTALL_PREFIX}" COMPONENT Runtime RENAME HiddifyService.exe) diff --git a/windows/packaging/exe/make_config.yaml b/windows/packaging/exe/make_config.yaml index 78f61e98..abb3c636 100644 --- a/windows/packaging/exe/make_config.yaml +++ b/windows/packaging/exe/make_config.yaml @@ -10,8 +10,7 @@ setup_icon_file: ..\..\windows\runner\resources\app_icon.ico locales: - en - fa - - zh - ru - pt - tr -#script_template: inno_setup.sas \ No newline at end of file +#script_template: inno_setup.sas